【发布时间】:2018-06-14 14:43:23
【问题描述】:
我想使用模板创建 JIRA 变更请求单。 我使用 JIRA API 端点“/rest/api/2/issue”。
以下是发送到 JIRA 的数据格式。
有人可以帮忙吗?
payload =
{ fields:
{ project: { key: "CRQ"},
customfield_15630: "SampleTemplateName",
summary: "Testing",
customfield_17679: "N.A" ,
customfield_14530:"2018-06-17T00:00:00.0+0000 ",
customfield_14531: "2018-06-17T00:00:00.0+0000 " } }
这是我想在问题单中使用的模板的 XML 格式。
<item>
<title>[TMPL-167] NTW-8 [Network_Interface_configuration]</title>
<link>https://jiraqa.com/browse/TMPL-167</link>
<project id="15980" key="TMPL">Templates</project>
<description>Test</description>
<environment />
<key id="492895">TMPL-167</key>
<summary>NTW-8 [Network_Interface_configuration]</summary>
</item>
【问题讨论】:
-
据我所知,您提供的用于创建 JIRA 票证的参数还不够……还需要其他参数,例如
TYPE等!
标签: jira jira-rest-api