How to have a running number on each created sub-task?

Kelvin Teng July 24, 2024

Hi all,

I've created an automation loop to create sub-tasks based on the number specified in a number field and it is working fine. My automation is based on this article How to create a Dynamic Loop in Automation for Jira (atlassian.com)

I am wondering how to set a running number on each sub-task created. For example, when the first sub-task is created, the summary would be Sub-task 1. On subsequent sub-task, it'll be Sub-task 2, Sub-task 3 and so forth.

Our creation of sub-task can be more than 10 and sometimes more than 100. So we need to set a number on each sub-task to differentiate them.

Thank you in advance.

 

1 answer

1 accepted

1 vote
Answer accepted
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 24, 2024

HI @Kelvin Teng

I would suggest you have a custom field that is hidden in the view screen.  Every time a new subt-task is created you would add the count via automation.

Then copy the number and add it to the summary of the newly created subtask with: {{issue.customfield_xxx}} - {{issue.summary}}

Regards,

Fabian

Kelvin Teng July 25, 2024

Hi Fabian,

Thank you for the idea. I've managed to make this work now.

Kind regards,

Kelvin

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events