unable to create issue in Jira using API

Sharveshwaran Ramesh 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

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

Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events