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

Timothy Harris February 20, 2015

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

0 votes
SanaS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2015

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