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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,331 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot