问题JIRA票证中“TASK”的类型代码

时间:2017-08-01 15:30:16

标签: c# rest jira jira-rest-api

我正在尝试使用JIRA SDK创建JIRA票证。

想知道问题类型代码“ TASK ” - 对于“ BUG ”,它是18。

感谢您的时间。

1 个答案:

答案 0 :(得分:1)

我可以看到你正在使用jira-rest-api。从jira developer docs,我可以看到,

curl -D- -u fred:fred -X POST --data {see below} -H "Content-Type: application/json" http://localhost:8090/rest/api/2/issue/

数据为,

{
    "fields": {
       "project":
       { 
          "key": "TEST"
       },
       "summary": "REST ye merry gentlemen.",
       "description": "Creating of an issue using project keys and issue type names using the REST API",
       "issuetype": {
          "name": "Bug" //You should specify it as Task
       }
   }
}

通常,您可以首先检查元数据,如此page中所述。

相关问题