Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,944
Community Members
 
Community Events
165
Community Groups

How do I find all labels in Jira?

I would like to see a list of all labels that are currently in use in Jira. How might I do that?

3 answers

1 accepted

6 votes
Answer accepted

Hi @An Le Nguyen you can use REST API endpoint:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-labels/#api-rest-api-3-label-get

Your request can look like

You need to use pagination if you have more than 1000 labels, so just let me know if it is your case and we can work on it

@Martin Bayer _MoroSystems_ s_r_o__ 

Thanks for the link to the REST API endpoint! It solved my problem. I do have a couple of areas where that article could be improved, though. (I also left this as feedback on that page.)

For cURL, please add some notes for Windows users:

  1. cURL in Windows must use double quotes (") not single quotes (')! Single quotes will not work with in Windows!!
  2. Remove the \ before copy and pasting. No newlines allowed.
  3. Be aware that <API_TOKEN> should be removed ENTIRELY, including the less than and greater than signs (< >).

It took a bit if of futzing around for me to figure this out. The article got me 95% of the way there, but the last bits were slowing me down.

Oh, also:

  1. To generate an API token
    1. https://id.atlassian.com/manage-profile/security
    2. Click on "Create and manage API tokens"
    3. Click "Create API Token"
    4. Name it
    5. Copy the API token somewhere safe
Like # people like this
Like Michael Hart likes this

I'm glad you figured something out, but honestly, we should not need to learn how to use REST API endpoints to get a list of what labels are in Jira.

Like Bonnie Nordvedt likes this
1 vote
Jack Brickey Community Leader Aug 23, 2021

Here is one thing you could do - use this JQL labels is not empty  to find all issues that have a label. Export this list, I recommend removing as many columns as possible if you have a large database. Then use excel formulas such as pivot table to find up every unique label. Not glamorous but it will work.

Hi @Martin Bayer _MoroSystems_ s_r_o__ , 

Can you share how to use pagination if you have more than 1000 labels?

Thank you in advance for your assistance on this!

Hi @Magdalena Zhisheva you need to use query parameters

  • startAt
  • maxResults

For example if your page has two elements you need to invoke

  • {URL}/rest/api/3/label?startAt=0&maxResults=2 -  get first and second label
  • {URL}/rest/api/3/label?startAt=2&maxResults=2 -  get third and second fourth
  • ...
Like Magdalena Zhisheva likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you