The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

unable to create issue in Jira using API

Sharveshwaran Ramesh
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!
November 23, 2020

I'm trying to create an issue using the REST API and I get, “parent”: “Could not find the issue by id or key.”

This is my payload,

{ "fields": { "summary": "Test incident", "parent": { "key": "INC" }, "issuetype": { "id": "10546" }, "components": [ { "id": "11173" } ], "project": { "id": "11353" }, "description": "This is a test incident", "reporter": { "id": "5e9711b8756u3c0c151bf369" }, "priority": { "id": "5" } } }

This is my metadata,

"self": "https://mycompany.atlassian.net", "id": "11353", "key": "INC", "name": "Incident Management", "issuetypes": [ { "id": "10546", "description": "", "name": "Incident", "untranslatedName": "Incident", "subtask": false } ]

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Douglas.Swartz
November 23, 2020

In your example,  "key":"INC" should be  "key": "INC-123"

INC identifies the project. You need to identify the individual parent issue.

Sharveshwaran Ramesh
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!
November 23, 2020

Thanks

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events