Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL Check if label is the same as in linked issue

Leandra I'm New Here Oct 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

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 I'm New Here Oct 30, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

5,301 views 22 36
Read article

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