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.
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.
{
"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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"casenumber" is not the id of the field, you'll need to use the id instead.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"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."
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.