Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Issue via REST API

tammo.dirksen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2020

Hello,
I want to create an issue in a Jira project using the REST API. I used a working url + the following ending provided by Atlassian: "/rest/api/2/issue" for POST.

Since the project is different to the sample data provided in Atlassian´s guide (https://docs.atlassian.com/software/jira/docs/api/REST/8.5.0/#api/2/issue-createIssue)

I shortened it to make it suitable for my project and used XYZ in here. The real project has a different key.

{
"fields": {
"project": {
"key": "XYZ"
},
"summary": "something's wrong",
"issuetype": {
"name": "Incoming Invoice"
},
"reporter": {
"name": "smithers"
}
}
}

 

If I wanted to create the issue using the UI it looks like this. 

 

As an error I get the following: message: "{\"errorMessages\":[\"Unexpected character ('f' (code 102)): was expecting a colon to separate field name and value\\n"

This isn´t that relevant but I used UIPath to connect to Jira via Rest Api.

issue.png

0 answers

Suggest an answer

Log in or Sign up to answer