Hello,I'm using the search version of the API and traversing our projects and then iterating across the issues using maxResults and StartAt options via python.
https://jirap.corp.companyName.com/rest/api/latest/search?jql=project={p}&maxResults={batch_size}&startAt={start}
How do I return the labels for the issues at the same time when using jql? All the documentation suggests I cannot use JQL and would have to use the the issues api such as this labels example :
GET /rest/api/3/issue/ABC-123?fields=labels
Hi @Scott Nasello
Welcome to the Community!!
You will get all the fields when you search via API
To make sure to get the labels field add fields=*all to the API you are calling as below
https://jirap.corp.companyName.com/rest/api/latest/search?jql=project={p}&maxResults={batch_size}&startAt={start}&fields=*all
Ref here
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get
Thanks,Pramodh
This is great, thanks for the tip!For the next person this is the key :
['issues']['fields']['labels']
It looks like you're new here. Sign in or register to get started.