How to return issues where linked issue is not in a filter?

Hi,

I have a filter, using script runners linkedIssueOf() function to return all the epics linked to user stories for a project. 

I have another filter which will do the same for another issue type.

Now I want to combine the filters to check issues where the epic is not the same.

Example:

Story 1 is linked to Epic A

Bug 3, which is caused by Story 1, is linked to Epic B.

So something like 

where issues linkedIssueOf(has Epic) and not in filter1 or filter2

Anybody got any ideas as to how to do this?

I guess I am looking for a for statement, sigh...

1 answer

This will be a convoluted query, but what you could do is that you can have a filter similar to this:

(issues in filter 1 AND not in filter 2) OR (issues in filter 2 AND not in filter 1)

I hope you get my point... the idea is to exclude those issues that have the same epic link

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,305 views 12 19
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