Dev_FullStack
Dev_FullStack

Reputation: 33

Issue Type code for "TASK" in a JIRA ticket

I am trying to create a JIRA ticket using JIRA SDK.

Want to know the code for issue type "TASK"- for a "BUG" it is 18.

Thank you for your time.

Upvotes: 0

Views: 152

Answers (1)

GauravJ
GauravJ

Reputation: 2282

I can see that you are using jira-rest-api. From the jira developer docs, I can see,

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

with data as,

{
    "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
       }
   }
}

In general, you can inspect meta data first like explained in this page.

Upvotes: 1

Related Questions