Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to write JQL to search for item with one of its labels as "SYNC"?

Ianna April 26, 2021

I added some labels to one issue, how can I search it out by its labels I set? 

For example, I set two labels to 1 issue, they are: SYNC, IVI. How can I search out the issues containing the label as SYNC? Can some one show me the JQL?

2 answers

2 accepted

0 votes
Answer accepted
Alex Koxaras _Relational_
Community Champion
April 26, 2021

@Ianna try out 

labels = sync and labels != ivi 

Let me know if that helps.

 

Regards,

Alex 

Ianna April 27, 2021

Thanks Alex, this can't work. But I found a way to realize my request as below.

 issueFunction in issueFieldMatch("project in (RIBBON, CPPJANUS)", labels, "SYNC")

This can help to filter out the issues whose labels contains "SYNC".  

0 votes
Answer accepted
Alexis Robert
Community Champion
April 26, 2021

Hi @Ianna , 

 

you can use the following JQL to search for labels : 

 

labels = SYNC

 

Let me know if this helps,

 

--Alexis

Ianna April 26, 2021

Thanks Alexis, but it doesn't work. If the labels of the issue only have 1, this can work, but if there are several labels for one issue, we cannot use"=". 

Ianna April 27, 2021

 I found a way to realize my request as below.

 issueFunction in issueFieldMatch("project in (RIBBON, CPPJANUS)", labels, "SYNC")

This can help to filter out the issues whose labels contains "SYNC". 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events