The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to count the subtask with a specific status for a custom field ?

Aurélie Pilette
Contributor
December 22, 2023

Hello,

On the ticket parent, I would like to create a custom field named "Subtask open"

==> it is ok for that, I know how to ake that

I would like to initialize an automation rule in order to calculate how many subtask are on a specific status like "dev done" or "to test"

I already use this calculation : {{issue.subtasks.size}}

but i don't know how to update with a specific status.

Do you know if it is possible please ?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Sayed Bares [ServiceRocket]
Community Champion
December 22, 2023

@Aurélie Pilette I suggest using something like this:

{{issue.subtasks.status.name.match(".*(Done).*").size}}

 Replace Done with your status name.

I hope it helps