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
Community showcase
Posted Thursday in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

46 views 0 0
View post

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