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

1 vote

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

1 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

773 views 2 19
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