How to return unblocked issues in an issue filter?

Zak Taccardi March 23, 2014

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

1 vote
Answer accepted
JamieA
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.
March 24, 2014

> 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 (...)"

2 votes
Zak Taccardi March 24, 2014

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"))

1 vote
JamieA
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.
March 23, 2014

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.

Zak Taccardi March 23, 2014

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

Zak Taccardi March 23, 2014

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.

David Bisone April 6, 2018

Never mind, wrong post.

Suggest an answer

Log in or Sign up to answer