Create issue with status, label and fixVersoin validation errors.

Working on Jira integratoin with REST Api, i am finding that I am unable to create a an issue.

When i post the following JSON :

{"fields":{"summary":"TestRelease","description":"||Col1|col2||\r\n|1|2|","issuetype":{"self":null,"id":"3","name":null,"description":null,"iconUrl":null,"subtast":false},"status":null,"priority":null,"labels":[],"project":{"id":"10106","key":null},"components":null,"fixVersions":null}}

I get the following error message back from our system:

{"errorMessages":[],"errors":{"status":"Field 'status' cannot be set. It is not on the appropriate screen, or unknown.","labels":"Field 'labels' cannot be set. It is not on the appropriate screen, or unknown.","fixVersions":"Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown."}}

This issue still remains even if i remove the null elements from the JSON. Many of similar questions on this site pointed to premissions issues, however the user that is authenticating against the rest service has full administrative rights to the project.

Any suggestions on what could be causing the REST service to deny my issue requets?

1 answer

This widget could not be displayed.

Hello Sergei,

The error displayed suggests that the fields are not in the screen. If you manually go in JIRA's UI and hit the create issue button, do you see the fields in the "Create issue" screen? If not, you must add them there.

Please take a look at our documentation with an example of a create issue rest call:

https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Create+Issue

I hope this helps!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

226 views 3 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you