Forums

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

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

Ujwala mane
July 30, 2018

Hi,

 

I am using postman to create issue in JIRA. i created one custom field in JIRA. It is available when i create issue. But when i try to create issue using postman it is giving me this error. I am new to JIRA, have very basic knowledge. what is the problem not getting.

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 Champions.
July 30, 2018

Either you have got the wrong name in your REST call, or you are trying to create the issue in a project/issuetype that does not have the field on the create screen.

Ujwala mane
July 30, 2018

{
"fields":
{"project":
{ "key": "IN"},
"summary": "projectsummary",
"description": "projectdesc",
"casenumber":"casenumber",
"issuetype": {"name": "Bug"}
}
}

 

This is the rest call body.

 

And i can see casenumber field on create issue screen and edit screen also 

still i am getting this error

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 Champions.
July 30, 2018

"casenumber" is not the id of the field, you'll need to use the id instead.

Ujwala mane
July 30, 2018

"summary": "projectsummary",
"description": "projectdesc",
"10023":"casenumber",
"issuetype": {"name": "Bug"}

as you suggested i changed casenumber with its id(id i got in the url when edit case number field). still i am getting below error

 

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

Ujwala mane
July 30, 2018

i put wrong id for casenumber.. i used "https://.../rest/api/2/field" endpoint on postman then i come to know actual id of custom field.. 

You were right when i put id of custom field i am able to make successful api call

Thank you so much Nic  Brough

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events