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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

113 views 0 2
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