Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API - error when creating an issue

Sharon Mon November 29, 2018

Hello,

I fail to create an issue, both on Jira Cloud, and through REST API under the following scenario:

1. I create a custom field (customfield_10033). Make it required and available on screens in a certain project.

2. I create a new issue on a different project ( screens for this project are not associated with the required field).

3. Fill out the form with all required fields for that issue.

4. Click the create button -> I get an error message : customfield_10033: my_number is required. 

That customfield_10033 field is not related to the project & issue type  I chose for the new issue!!!

 

I also get the same error using REST API - followed instructions on how to create an issue in Jira after retrieving its metadata:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-api-3-issue-createmeta-get

 

Would appreciate any inputs on that. 

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2018

You have made the field required in a "field configuration scheme" that applies to several projects - both the one you intended to and the one where the error occurs.

Your field IS "related" to the project because you've configured it to be mandatory in the other project.

Sharon Mon November 29, 2018

Thanks ! 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events