Update customfield

SEB July 10, 2020

Hello, i have a short question.

I have a question field and i wanna change the value with the python rest api.

This field is in the issue:

"customfield_13211":"123",

When i try to change the value, i get this error:

"errorMessages":[],"errors":{"customfield_13211":"Field 'customfield_13211' cannot be set. It is not on the appropriate screen, or unknown."}}

The command is:

issue = jira.issue('Ticketnumber')
#issue.update(fields={'customfield_13211': '64'})

Can someone help me?  

2 answers

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 10, 2020

This is what it says it is.

Imagine a human user looking at the issue you are wanting to edit.  They log in, go to the issue view and click "edit".  They'll get a screen with a list of fields they can change.

The field with id 13211 is not on that screen.  (The numeric id is the number you'd find in the database as the unique and immutable identifier of that custom field, rather than its display name or object-code)

0 votes
Angel July 15, 2020

Hi 

Is that a field with combo box? 

You need de ID value of the customfield, you would try with this line:

 

jiraIssue.update(fields={"customfield_13211":{'id':'[your new id]'}})

 

if you want to know the ID value, use the rest api 

Suggest an answer

Log in or Sign up to answer