I need to find the list of labels being used in the project. Some suggested to use the gadgets but i cant find the gadgets(maybe they are not enabled) to get the list, can someone suggest a better way.
It is called Labels Gadget. You can add it to your dashboard and filter labels for a project in the settings of the gadget.
Usually Jira does not load all gadgets when you try to add a gadget. there is a button on the adding screen "Load all gadgets". Click it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Labels Gadget lists all the labels used in the project. How to search labels listed in issuetype = Test only?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Yunhua Hu you can always just do a normal search and use a jql like:
issuetype = test and labels is not EMPTY
You can save that filter, use it in a dashboard or just export your results
*to note - this does not mean that some of the labels are NOT used in other types as well, so be mindful of that*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you could also just do a filter, if you didn't want to build a Dashboard.
Query would be similar to this:
Project = "ProjectName" and labels != EMPTY
You can limit the columns to whatever you want/don't want to see, and voila. Quick and easy, you can export it if you want to csv, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my case exporting didn't work with a "403 - Forbidden" error saying that at most 2000 results are allowed - while I had more. So, I needed to split the result by doing two searches
project = MyProject and labels is not EMPTY and key < MyProject-2000
followed by
project = MyProject and labels is not EMPTY and key >= MyProject-2000
Of course, this also required me to manually merge the results from both exports.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, export to CSV seems easier than Excel as it internally splits multi-label cases in columns, so that I ended up with columns "Labels", "Labels_1", "Labels_2", etc. and each column contained only on label.
Of course, only "Labels" always contained a label. With "Labels_1", etc. there were empty fields if the ticket didn't have that many labels set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can get a list of all labels as json file from the REST API, see the answers in this thread:
https://community.atlassian.com/t5/Jira-questions/How-do-I-find-all-labels-in-Jira/qaq-p/1784796
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This might work for Jira Cloud, but I don't think that API exists for Jira Server?
No mention of "labels" anywhere on this page: https://docs.atlassian.com/software/jira/docs/api/REST/9.5.0/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a hard-code solution - SQL query to database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.