Friday, 17 February 2017

Explain how to create an issue in Jira via rest api?

POST to this URL
https://<JIRA_HOST>/rest/api/2/issue/

This data:
{
"fields": {
   "project":
   {
      "key": "<PROJECT_KEY>"
   },
   "summary": "REST EXAMPLE",
   "description": "Creating an issue via REST API",
   "issuetype": {
      "name": "Bug"
   }
  }
}

In received answer will be ID and key of your ISSUE:
{"id":"83336","key":"PROJECT_KEY-4","self":"https://<JIRA_HOST>/rest/api/2/issue/83336"}
Don't forget about authorization. I used HTTP-Basic one.

Click here to read original article


WHAT OTHERS ARE READING/RELATED TO THIS:

0 comments:

Post a Comment

Find job here...