It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Filter Issues that are Open+Blocking OR Blocked by Open Issues Edited

Marc Moroz Dec 21, 2017

Hi

We have ScriptRunner available, if it helps.  We're trying to find issues that are:

  1. Open AND Blocking Open Issues (don't show issue if only blocking Done issues)
  2. Open AND Blocked by Open Issues (don't show issue if blocking issues are Done)

 

In other words, my current search returns an issue that is "blocked" but the blocking item is done.  In this case, I don't consider the issue to be blocked anymore because the blocker is Done.

 

Current Filter

issueFunction in hasLinks("is blocked by") or issueFunction in hasLinks("blocks") 

 

1 answer

0 votes
Andrew Heinzer Atlassian Team Dec 22, 2017 • edited

So, I think you're about half way there.  The hasLinks JQL function provided by scriptrunner can help you find those issues.  But you then also need to lookup the status of those linked issues to be able to make sure you don't include blocked issues that are already in a status of "Done".   Fortunately, it looks like scriptrunner does have another function called linkedIssueOf that can help here.

(issueFunction in hasLinks("is blocked by") AND issueFunction in linkedIssuesOf("status != Done", "blocks")) OR (issueFunction in hasLinks("blocks") AND issueFunction in linkedIssuesOf("status != Done", "is blocked by"))

I think that this JQL query, with scriptrunner of course, can help with locating the issues you are wanting to see here.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Software

Demo Den Ep. 5: Meet Jira Mobile

See how to use Jira on the go! Demo Den Episode 5 is here: meet Jira Mobile with  Jira  Product Manager Rayen Magpantay.  Demo Den is in our monthly series where a Jira PM demonstrates...

245 views 1 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you