issue.update(fields={'customfield_10100': {'value','Two'}})
I have a multiselect list and below error occurs if i try to update
"response text = {"errorMessages":[],"errors":{"Custom_field":"data was not an array"}}"
Hi Amar,
I was able to set the field values for a multi-select field by correcting the syntax of the code you provided. I used the REST API Example as a guide. If you change the code to read as
issue.update(fields={'customfield_10100': [{'value':'Two'}]})
I believe it should work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey i need to modify single select field (drop down) i tried below code.
1. issue.update(fields={'customfield_11104': 'Staging'})
2. issue.update(fields={'customfield_11104': [{'value': 'Staging'}]})
3. I tried this one also issue.update(fields={'customfield_11104':[{'value':'46707'}]})
but got the error like
response text = {"errorMessages":[],"errors":{"customfield_11104":"Could not find valid 'id' or 'value' in the Parent Option object."}}
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.
The metadata for my single select dropdown field includes "set", "value" and "id" and I found that only "id" worked as follows:
issue.update(fields={'customfield_11104': {'id':'10034'}})
I found the "id" for my field as follows:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.