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, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events