I'm trying to figure out how to add, edit checklist items using python via the api. Using the jira api package there are some functions like .update() and .add_field_value().
It seems like there is not a ton of documentation from the jira api or python -jira package about how to handle this.
When using either of these functions the error returned is. Where #### is just some number.
"response text = {"errorMessages":[],"errors":{"customfield_#####":"Field 'customfield_#####' cannot be set. It is not on the appropriate screen, or unknown."}}"
This is what I've found.
1) It seems like because the checklist is not inside of the box when you click on a JIRA tickets "edit" button it cannot be edited using the update() function.
2) It also seems like when I look at issue.fields.customfield__#### (checklist variable) that it will do a concatenation of the text fields, checklist boxes, completions etc. when the var is put together for viewing.
3) trying to index into the checklist fields using update or add_field_value doesn't work -- doing something like {fields={'customfield_####':{'item':{'text':'asdfalsdf'}}}}
TBH I don't understand half of the text in your question and what checklist solution do you use but
`Field 'customfield_#####' cannot be set. It is not on the appropriate screen, or unknown.`
means that you need to add the custom field to a screen in Jira (edit issue) to be allowed to edit it.
You can find screen configuration in the project settings in Jira.
I hope it helps.
Cheers,
Jack
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.