You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Using jira-python to acccess the REST API, I can't work out how to extract the mapping of "English" names to the customer field numbers, so I can look at the testcase ID for any of the results of my query
OK, so I worked out my own answer:
from jira.client import JIRA def import_jira_bugs: jira=JIRA(your_args_here) resp=jira.fields() fmap = { } for i in resp.json(): field_name=i[u'name'].encode('ascii','ignore') field_id=i[u'id'].encode('ascii','ignore') fmap[field_name]=field_id pprint.pprint(fmap)
REST API has a mentod to retrieve all fields with its name, id etc. See https://docs.atlassian.com/jira/REST/latest/#d2e393
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, I've seen that already. If I wanted to delve into manually parsing stuff from the REST API directly, I wouldn't be using jira-python: is there a way to get this info from within jira-python?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found something in documentation that could be helpful to others...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.