【问题标题】:Issue Type code for "TASK" in a JIRA ticketJIRA 票证中“TASK”的问题类型代码
【发布时间】:2018-01-08 13:31:27
【问题描述】:

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

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

感谢您的宝贵时间。

【问题讨论】:

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


    【解决方案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 中所述。

    【讨论】:

      猜你喜欢
      • 2022-10-26
      • 1970-01-01
      • 2016-07-12
      • 2016-08-27
      • 2023-02-19
      • 2012-05-05
      • 1970-01-01
      • 1970-01-01
      • 2017-05-07
      相关资源
      最近更新 更多