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
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

78 views 0 3
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