hello,
my problem is, after I've use:
issue.update(fields={"customfield_10925":[{"0":"OC CS FI Customer Service (OC-6792)"}]})
customfield_10925 get null value, and should be
"customfield_10925":{
0:"OC CS FI Customer Service (OC-6792)"
}
I wonder how to fix it, is it problem with spacebars? How to get it right?
What field type are you trying to update? You mentioned list type but can you give the field type name as its shown from your custom field configuration from Setting > Issues > custom field? That will enable us to know what is the expected data type you're to post.
Hi @Maria Kowalsa , how do you update the field? In Automation? Script runner postfunction?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, whole python script looks like:
from jira import JIRA
HOST={'server':'https://.../'}
PASSWORD='...'
USER='...'
j = JIRA(basic_auth=(USER,PASSWORD),options=HOST)
issue = j.issue('CM-90')
issue.update(fields={'customfield_10925': [{'0':'OC CS FI Customer Service (OC-6792)'}]})
I'm able to modify fields like: summary, description, but customfield_10925 it is a list type, not a text, and I'm not sure where I'm makeing a misstake.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry @Maria Kowalsa but I'm not python developer, but at least your question is specified better :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm updating custom field like this:
issue.update(fields={'customfield_10925': [{"key" : "OC-6792"}]}), and it works.
The problem was key value, I shouldn't use whole string''OC CS FI Customer Service (OC-6792)'', but the reference to databasa 'OC-6792'.
Thank you :)
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.