Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

JQL filter for sub-tasks blocking cousin sub-tasks (has different parent)

Hi,

I'm struggling to create a query that will return a list of sub-tasks that are blocking other sub-tasks that have a different parent.  For example:

  • Task A
    • Sub-task A1 - blocks Sub-task B1
    • Sub-task A2 - blocks Sub-task A3
    • Sub-task A3 - is blocked by Sub-task A2
  • Task B
    • Sub-task B1 - is blocked by Sub-task A1

Result should be Sub-task A1 since it's blocking Sub-task B1.  Sub-task A2 would not be included in the result since it's blocking a sub-task with the same parent.

I have ScriptRunner installed.

Thought we were on the right track with the following query, but it doesn't return results:

project = ProjectXYZ AND resolution = Unresolved AND issueLinkType = blocks AND parent not in parentsOf("issueFunction in linkedIssuesOf('issueType = Sub-task', 'is blocked by')") ORDER BY priority DESC

Any suggestions appreciated!

1 answer

I haven't worked out the right query, but I can tell you why the one you have doesn't return any results.

The first part of your query

project = ProjectXYZ AND resolution = Unresolved AND issueLinkType = blocks 

...will return Sub-task A1 and Sub-task A2 because those both have the "blocks" link type.

 

This part of your query

("issueFunction in linkedIssuesOf('issueType = Sub-task', 'is blocked by')"

...will return Sub-task A3 and Sub-task B1 because they each have a link of "is blocked by".

 

So then

parenstsOf(Sub-task A3, Sub-task B1)

... will return Task A and Task B, which leaves you with

parent not in (Task A, Task B)

 

The first part of your query returned Sub-task A1 and Sub-task A2. Their parent is Task A. But the second half of your query discards these Sub-tasks, because their parent (Task A) is in the "parent not in (Task A, Task B)" criteria.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

153 views 2 1
Read article

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