Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,576
Community Members
 
Community Events
168
Community Groups

Unable to create Issue via Jira API

Hello,

I am testing creating a Jira issue via the APIs using the endpoint rest/api/2/issue.

When I POST this payload '{"fields":{"summary":"Main order flow broken","issuetype":{"name":"Story","subtask":false},"project":{"id":"13000","key":"XYZ","name":"XYZ","projectTypeKey":"software","projectCategory":{"id":"10008"}},"description":"Entering a Story via API"}}'

 

I get the following response:  {"errorMessages":[],"errors":{"summary":"Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.","description":"Field 'description' cannot be set. It is not on the appropriate screen, or unknown."}}

 

Any idea what I am doing wrong? My user does have admin access to the target project

2 answers

0 votes

I will suggest reviewing your permission scheme after checking your field screens to ensure those fields exist there.

0 votes
Alex Community Leader Sep 06, 2022

Hi @David Whitlock 

Please ensure your project exists, the Story issue type is assigned to the project, and the screen assigned to the create issue operation under the Issue Type Screen Scheme has all of the fields (summary and description) you are adding to the payload of your request.

Cheers,

Alex

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.10
TAGS

Atlassian Community Events