Hello Experts,
We have a recurring activity happening every month. So we create Stories and Sub-Tasks to track those actions. I am currently trying to configure a rule, which should create 'N' sub-tasks under a story. The 'N' dynamically keeps varying.
There are stories where I have only 3sub-tasks under a story and the Automation should create the Story and 3sub-tasks. Likewise, sub-tasks keep changing 4,5. (below 8). Is there a way to configure the rule such that I don't need to hardcode the sub-task creation 'N' times.
I am looking for options in Jira Data center. Thanks in Advance!!
Hi @Rishi -- Welcome to the Atlassian Community!
Yes, there are at least two ways to do this: counter with advanced branch, and a web request.
First thing: how is the number of subtasks to create determined?
Let's assume you have a custom number field with the value. That could use the rightPad() function to create a string of values, split them, and then use an advanced branch to iterate, adding the sub-tasks one by one. There is a variation of that technique if you need the number whilst creating the issue (e.g., 5)
The other method is to set up some callbacks using web requests. That requires multiple rules and seeing success / failures takes more effort.
Here are some earlier posts describing both methods:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.