It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Rest API Issue - related to Failure Criteria , Additional Details and Custom Fields

Hi All ,

can some one help . how to override the screen whether the field was there or not the value should set ?

I am working on integration :  i am getting this error "customfield_10303" cannot be set . it is not on the appropriate screen or unknow" .

 

What i am doing and why i am getting this error :

 

through rest api . i am creating a story . when i am creating a story i want to send failure criteria data to jira .

 

1 answer

0 votes
Andy Heinzer Atlassian Team Oct 28, 2019

Hi Padmabhushan,

I understand that you are getting this error when trying to create an issue via the REST API in Jira.  This error tends to happen because one or more of the fields you are trying to define in your REST payload does not actually exist on the create issue screen for this issuetype in this project.  Our documentation on Defining a screen explains when you can find issue fields on a screen:

For example, on the Create Issue dialog box, users will only see issue fields that:

  1. are present on the screen associated with the issue's Create Issue issue operation
  2. are also not hidden in the field configuration applicable to the issue (as defined by the project's field configuration scheme)
  3. the user has permission to edit (e.g. the Due Date field can only be edited by users with the Schedule Issues project permission)

In those cases the clearest way forward is to simply add that custom field to the create screen for this issue type.

To the best of my knowledge the REST API for Jira Server and Jira Cloud do not have any means to simply override these screen/field configuration settings within a project.  If the field already exists on this create screen, then it is also possible that this error can be generated because the user account making the REST API call does not have permissions to create issues in this project.  In which case, you would want to make sure that your account has the create issue permission for this project.

On a side note, there are other related threads to this error message in Community that might also be of benefit to you here.  Such as,

I hope this helps. 

Andy

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

275 views 1 2
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you