How to get CustomerField information on bulk

Sai Krishna September 27, 2021

I've been trying to get custom filed information via 'jira.search_issue'.

 

Here's my code snippet for your reference:

jira_searchjira.search_issues(jql, fields="issuetype, created, resolutiondate, reporter, assignee, status, comment , expand='changelog')

For example, adding "expand='changelog'" in above expression has brought me history log data. 

Please note that I'm aware of https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-contexts/ but as mentioned above, I'm trying to get customfield information along with all other information in bulk.

Thanks.

1 answer

1 accepted

1 vote
Answer accepted
Sai Krishna September 30, 2021
Got it!!

Adding desired "customfield_<ID>" in 'fields' will suffice. I've been trying with cf[ID] format which is not correct.

Eg:
jira_search = jira.search_issues(jql,
fields="issuetype, created, resolutiondate, reporter, assignee, status, comment, customfield_12345",expand='changelog')


Thanks.

Suggest an answer

Log in or Sign up to answer