Is it possible to programatically export a list of labels, specifically the custom field of "label" type? We want to publish the current lables to an internal wiki page. Thanks!
You would need to run a sql query on your JIRA database
select distinct label from label where fieldid = <YourCustomFieldID>;
Another option - if you don't know fieldid:
select distinct LABEL.LABEL
from CUSTOMFIELD, LABEL
where (customfieldtypekey = 'com.atlassian.jira.plugin.system.customfieldtypes:labels')
and (CUSTOMFIELD.ID=LABEL.FIELDID)
order by LABEL.LABEL;
Here is how I did mine, without having access to the JIRA Database.
Hope that helps.
https://www.xxx.com/rest/api/latest/search?fields=labels
This only works if you have a small number of 1ssues. If you have 15000+ issues you have no hope of getting a list of all your labels
It looks like you're new here. Sign in or register to get started.