Possible to export list of labels?

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!

4 answers

1 accepted

You would need to run a sql query on your JIRA database

select distinct label from label where fieldid = <YourCustomFieldID>;

Here is how I did mine, without having access to the JIRA Database.

  1. Do an advanced search for: labels is not EMPTY
  2. Export ALL results
  3. Remove all columns apart from Labels column
  4. From the labels column, remove all duplicates using this guide:
    1. https://support.office.com/en-us/article/Filter-for-unique-values-or-remove-duplicate-values-ccf664b0-81d6-449b-bbe1-8daaec1e83c2

Hope that helps.

 

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;

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

78 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you