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

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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events