Forums

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

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

Tu Pham
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!
September 25, 2020

I use the REST API to create Jira tickets.

Previously it worked well (I did create the issue including this custom field with REST API successfully), but the error 

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

suddenly happens recently, don't really know why.

 

I did check:

- When I create the Jira ticket manually, the field is there on the issue layout.

- When I call the rest API to GET the issues' info, the custom field (customfield_10399) is returned in the JSON result.

- When I use the rest API to GET all the fields of the workspace, the custom field customfield_10399 is also returned in the custom fields list. (the URL is https:/MY_WORKSPACE/rest/api/2/field/)

 

I'm thinking the configuration of the project might be the cause but cannot find the info anywhere else. Thank you for your support.

 

 

1 answer

0 votes
Niranjan
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.
September 26, 2020

Hi @Tu Pham ,

What is the field type of customfield_10399? What is the value that you are trying to set to the field? 

Tu Pham
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!
September 26, 2020

Hi @Niranjan

The field type is string, I tried to post something like this 

'fields':{
'project': {'key': project_key},
'summary': summary,
'description': description,
'issuetype': {'name': issuetype_name},
'priority': {'id': priority_id},
'customfield_10399': 'this_is_a_string'
}

 

(without the customfield_10399, the request is successful.)

Niranjan
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.
September 26, 2020

Hi @Tu Pham ,

Can you try with this?

 

"fields" : {

"project": {"key": project_key},
"summary": summary,
"description": description,
"issuetype": {"name": issuetype_name},
"priority": {"id": priority_id},
"customfield_10399" :
{"value" : "this_is_a_string"}
}

 

If the above doesn't work, just try with this "customfield_10399": "this_is_a_string"

Suggest an answer

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

Atlassian Community Events