Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

0 votes
Sayed Bares [ServiceRocket]
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

Log in or Sign up to answer