Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

JQL Compare issue count

vishal Rising Star Sep 07, 2022

Hi Guys,

I have a special situation where I am creating sub-tasks at each step of the worflow for a custom issue type. The creation of the sub-tasks using automation for jira is not a big deal. However, I need to transition the parent issue to next step of workflow for this I need compare how many sub-tasks are closed & based on that move the parent tickets.

Is there a way to use a jql to find out how many subtasks are done & base on that transition the parent issue ?

Thank you.

1 answer

0 votes
Mark Segall Community Leader Sep 07, 2022

Hi @vishal 

Can you please share your rule so we can have added context?  I see you're on Jira server which will make this a little complex, but may still be doable with a broader picture of what you're trying to accomplish.

vishal Rising Star Sep 07, 2022

Hi @Mark Segall

So, here is the rule that I am currently using, this works perfectly but the problem with this is it jumps multiple status at once, so the best solution that I can think of is if I manage to count how many sub-tasks are completed & based on that transition the parent ticket. Provided if we can could the subtatsks completed.


Mark Segall Community Leader Sep 07, 2022

I think I understand.  You should be able to be more explicit on your issue trigger so that the rule only fires when the sub-task transitions to a specific status.  That way it won't care if it transitions a bunch prior to the transition you're looking for.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events