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

1 vote
Accepted answer

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


where (customfieldtypekey = 'com.atlassian.jira.plugin.system.customfieldtypes:labels')


order by LABEL.LABEL;

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,223 views 5 10
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