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,
Max
You can not do this out of the box. The easiest way is via ScriptRunner's expression JQL function.
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)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
https://gist.github.com/jechlin/08b6b73d6e2be52ddad5d3f37736a63d
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.