Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Bjarke Røjgaard Jensen November 24, 2020

Hi

I am creating af custom form in another system to create JIRA issues and to do so i use the Rest API, which i have used multiple times with great success.

I am facing a very strange issues. I recently added a custom select field to the default Jira screen of our service desk project. When i try to create an issue through the API where i include the custom field, i get the following error: "Field 'CustomField_10136' cannot be set. It is not on the appropriate screen, or unknown.". I've read a couple of post adressing this issue, but none of them gives a viable solution.

  • The field is visable and editable on the screen. I've actualy added the field to all screens in the project..
  • The API Key is created with a global admin account and the account has access to all screens and has can create issues and set this field in the portal.

I have done the exact same thing for another customer without any issues.

 

I use the following endpoint and json. If i remove "CustomField_10136" it is succesfully created.

$"{CustomerUrl}/rest/api/3/issue/{key}"

sdfsdfsdfsdf.PNGsdfwgwg.PNG

2 answers

1 accepted

2 votes
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2020

hi @Bjarke Røjgaard Jensen  could you try to use customfield_10136 instead of CustomField_10136

Bjarke Røjgaard Jensen November 24, 2020

Thank you. You are my hero! Used 5 hours last night trying to figure it out! :)

I am facepalming a lot right now ;)

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 24, 2020

@Bjarke Røjgaard Jensen it was my pleasure to help :)

Deleted user October 28, 2022

I am using the "customfield_10058", however getting the same error. What can be the reason. Same code is working with different Project however it is giving error for another project. Tried from Postman too, however getting same error:

{
    "errorMessages": [],
    "errors": {
        "customfield_10058""Field 'customfield_10058' cannot be set. It is not on the appropriate screen, or unknown."
    }
}
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 10, 2022

Hi @[deleted] , welcome on the community. Most of the time it means you do not have your field on "Edit" screen. Check https://confluence.atlassian.com/adminjiraserver/defining-a-screen-938847288.html "Edit screen's details".

Lukasz Grobelny
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.
July 25, 2023

Wow @Martin Bayer _MoroSystems_ s_r_o__  I owe you a beer, been struggling with the customField for the last few hours...

0 votes
Hayden Chudy June 2, 2023

For those attempting to set a custom field of type labels through the REST API that are getting this issue. Try moving the configuration outside of the fields key and into update, like so:

```
{
"fields": {
// your other fields
},
"update": {
"customfield_10029": [
{ "add": "ANY_VALUE" }
]
}
}
```

That did the trick for me.

bhagyashree_patil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2024

this did not work for me. Any more solutions

Lukasz Grobelny
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.
January 22, 2024

What are you trying to accomplish?

bhagyashree_patil
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2024

Mine was not working as the Jira admin has removed the fields in screen configuration. Its working now. Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events