Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

howt to get selectable top down custom field vale

Sungho Choe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2022

I have a jira project that has double drop down selectable custom fields.

I trid to get value with python but None type

allfields = jira.fields()

nameMap = {jira.field['name']:jira.field['id'] for jira.field in allfields}
product_name = getattr(issue.fields, nameMap["Product"])
print('product_name: ', product_name)
this shows all selectable values not selected value
allowedValues = meta['fields']['customfield_22070']['allowedValues']
for options in allowedValues:
     if options['id'] == '29111':
         print(options['value'])
         productlistP.append(options['value'])
-------------------------------
this code success
for result in jira.search_issues(JQL, startAt = 0, maxResults = 15):
issue = jira.issue(result.key)
product_name = issue.fields.customfield_22070.value

0 answers

Suggest an answer

Log in or Sign up to answer