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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

708 views 6 13
Read article

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