简体   繁体   中英

How to add comment with JIRA REST Api to issue Subversion tab

I have a problem with jira post adding. I'want my added comments to be in Subversion or Commits tab, but I've only managed to put in the comments section.

If it is not possible I would like to ask how to edit the html of the certain comment

提交标签是从Subversion或Git获取数据的,因此您不能仅在其中添加注释

From the JIRA REST API documentation:

https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-addWorklog

you should be able to add entries to the "work log".

Basically (Perl-ish pseudo code):

$content = q/{ "comment": "I did some work here.", "visibility": { "type": "group", "value": "jira-developers" }, "started": "2016-09-28T15:37:31.449+0000", "timeSpentSeconds": 12000 } /;

$resp = httprequest(HTTP_POST, "/rest/api/2/issue/$issueID/worklog", $content);

(updated to add sample pseudo code)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM