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

Issue Type code for "TASK" in a JIRA ticket

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

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

感谢您的宝贵时间。

我看到您正在使用 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 中所述。