Hello folks, i hope you can help me.
I am trying to get the value of customfield option that is selected in Jira software in python. However when i select forexample "candidates and Intern members" on the list and print in python i get the output bellow.
[<JIRA CustomFieldOption: value='Intern members, id='10005'>, <JIRA CustomFieldOption: value='Candidates (recruits)', id='10006'>]
I would like to to get only string of the values. example
"intern members" and "Candidates".
Is there anyway to get them that way?
i prisiate all help i can get!
It seems you're getting this object as a list of dictionary items and the representation is what you see when printed. I believe you can do something like this
values = customFieldOptions
for value in values:
print(value.get("value")) # get the name
print(value.get("id") # get the id
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.