[英]How to add comment with JIRA REST Api to issue Subversion tab
我在添加jira帖子時遇到問題。 我希望添加的評論位於“ Subversion”或“提交”選項卡中,但我僅設法在“評論”部分中添加了評論。
如果不可能,我想問一下如何編輯特定注釋的html。
提交標簽是從Subversion或Git獲取數據的,因此您不能僅在其中添加注釋
從JIRA REST API文檔中:
https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-addWorklog
您應該能夠將條目添加到“工作日志”中。
基本上(Perl-ish偽代碼):
$ content = q / {“ comment”:“我在這里做了一些工作。”,“ 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);
(已更新以添加示例偽代碼)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.