How to return unblocked issues in an issue filter?

Hi,

Is there any way to use Script Runner to return any issues that are unblocked? This would need to include issues where the blocking issue has been resolved.

EDIT: I basically want to just take the default "My Open Issues" filter, and remove any issues returned from that query that are currently blocked by another issue.

3 answers

1 accepted

> but resolved isn't an actual resolution recognized by the above - what is the right term I need here?

"resolution is not empty"
> I basically want to just take the default "My Open Issues" filter, and remove any issues from that query that are being blocked by another issue.
so you can take that filter, and add "and not issuefunction in (...)"

If you broke this down into its component parts you could work it out... it sounds like you are looking for issues that are linked by a "Blocks" link type, and the blocking issue has been resolved in the last 7 days or something?

So you could do that with: issueFunction in linkedIssuesOf ("resolved > -7d", "blocks")

untested.

Thanks!

I'm actually looking for the following

issueFunction in linkedIssuesOf ("resolution = resolved", "is blocked by")

but resolved isn't an actual resolution recognized by the above - what is the right term I need here?

EDIT: I think I'm wrong about this, see below

I basically want to just take the default "My Open Issues" filter, and remove any issues from that query that are being blocked by another issue.

Never mind, wrong post.

Got it, thanks!

resolution = unresolved AND assignee = currentUser() AND (issueFunction in linkedIssuesOf("resolution is not empty", blocks) OR issueFunction not in hasLinks("is blocked by"))

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,636 views 18 21
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