How to write a filter to get only issues whose linked issues all have a specific version?

I'm trying to write a filter (or set of filters) where I want only issues that have links of a specific type that all have a specific version assigned and I do not want any issues if there are more of that kind of link but to a different version.

I need only the hazard issues (haz project) that have linked requirements (req project) where every requirement linked to it has a specific affectedVersion. And I don't want any hazard issues where there may be more requirements but they have a different affectedVersion. AND, for those requirements, I want only those requirements used that have linked tests (test project) where every test linked has a specific affectedVersion. And I don't wnat any requirement issues where there may be more test linked but those tests have a different affectedVersion.

I tried using nested filters but it's not working. We have JQL Tricks and ScriptRunner and I'm just not getting it.

I can get issues where at least one of the linked issues has the affectedVersion. What I want is the issues where there are only linked issues with that affectedVersion.

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

64 views 0 11
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