Forums

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

Screen Error: Unable to create issue with custom fields but can edit those fields value

RAlam September 30, 2022

Hello All,

 

I am using rest API to edit a few custom fields in a Jira issue. I can do it successfully.

Method: PUT

Body:

{"fields": {"customfield_32456":{"value": "Follow-up"}}}

 

But when I create an issue of the same issueType with the same custom fields, I'm getting a screen error.

Method: POST

Error:

{

"errorMessages": [],

"errors": {

"customfield_32466": "Field 'customfield_32466' cannot be set. It is not on the appropriate screen, or unknown.",

"customfield_32457": "Field 'customfield_32457' cannot be set. It is not on the appropriate screen, or unknown.",

"customfield_32456": "Field 'customfield_32456' cannot be set. It is not on the appropriate screen, or unknown.",

"customfield_32830": "Field 'customfield_32830' cannot be set. It is not on the appropriate screen, or unknown.",

"customfield_32458": "Field 'customfield_32458' cannot be set. It is not on the appropriate screen, or unknown."

}

}


Like most of you, I thought the Edit screen might have those fields but create not. But I was wrong. Both, the Edit Screen and the Create Screen have exactly the same fields allowed. 

 

Further to that, we have a dev replica of the prod JIRA. It also has the same custom fields and screens. But there, I can create an issue with the above custom fields. I'm using the same request body for both dev & prod requests.

Does anyone have any further leads on it so that I can follow that to resolve this issue?

1 answer

1 accepted

1 vote
Answer accepted
RAlam September 30, 2022

Facepalm moment.

While editing the value of a field (system or custom) we don't need to specify any project ID.

However, to create an issue, we have to. I used the project ID from the dev JIRA while requesting the prod one. 

 

That was the reason editing was successful and creation not.

Suggest an answer

Log in or Sign up to answer