JQL Check if label is the same as in linked issue

Leandra October 30, 2020

Hey Everyone!
I want to filter my issues for incorrect labels in tests.

The test are supposed to have the same label as the issue they are testing and linked with. 
So I need to get the issue they are linked with, get its label and then compare it to my original issues label. 
Is there a way to do it in JQL? Because I'm struggling to actually get the labels and compare them.

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted
Muhammad Ramzan(Atlassian Certified Master)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 30, 2020

You cannot achieve it by built in queries, you need a third party plugin like scriptrunner or JQL Search Extensions for Jira & reports 

 

Example

following will get all issues where your curernt issue lable=abc and linked issues label=abc

issue in linkedBy(label=abc") and label=abc

 

Reference:

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/30497099/JQL+Reference+Server#JQLReference(Server)-Links(jql-query,linktype)

Leandra October 30, 2020

I was afraid this would be the case. 
Thanks for your answer!

Suggest an answer

Log in or Sign up to answer