Hey everyone,

I'm having a little problem with filtering issues in JIRA. I want to filter all issues that have the priority equal to the priority of another issue with a given issue key. Something like: "Priority = Priorityof(TEST-XY).

How can I solve this and does the solution depend on wether I have a custom field or not?


Best regards,



3 answers

1 accepted

Accepted Answer
1 vote

You can not do this out of the box. The easiest way is via ScriptRunner's expression JQL function.

0 votes

It's probably easiest to write your own, here is one that gets the priority of the provided issue. Just drop it in the directory as per https://scriptrunner.adaptavist.com/latest/jira/custom-jql-functions.html#_quick_start


Not sure why you would want to do this - could you not simply ensure that all issues have the correct priority and then search for all issues for a given priority e.g. priority in (high, highest)?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

184 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you