Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automating Creation of Scheduled Daily Parent Task & Associated Child/Sub Tasks

Genevieve_Green August 5, 2022

Using "Scheduled Issues" we have created a scheduled Task to be created daily, along with child tasks linked to it.


However, we also wanted to include the Smart Values in the ticket Summary's to auto-generate the date, so each ticket is unique in Summary :

Main Task:

Summary: {{now.format("dd/MM/yyyy")}} - Daily Tasks

 

Main goal here is to have a Parent task ticket, and 3 linked Child SubTask tickets, each day (M-F) which have unique names from including the date of creation in the Summary.

 

 

It appears the Smart Values do not work in "Scheduled Issues", so we next looked at setting this up instead in "Automation for Jira".

 

The Smart Values DO return the correct dates, which is great, but we can't figure out how to configure the Automation to create a Main Task each day, and 3 SubTasks, which are automatically linked as children to the Main Task Parent.

 

We've tried as 1 Automation:

Trigger= When/Scheduled (Mon-Fri, 6am)

Action= Create a New Task, Create a New SubTask (x3)

However, we cannot see a way to link the SubTasks as Children to the Task created within the automation. It appears we can only link them if the Parent is part of the Trigger, so, we tried 2 Automations:

1) Daily Task Creation - works fine.

2) Then to create the SubTasks as Children of the Task created in Automation1:

Trigger is Creation of a ticket with the Condition of the Summary contains text or description from the Task created in Automation1, where the Action is the creation of 3x SubTask.

But this does not trigger, despite numerous Tasks being made which meets the condition set up (tried both Summary contains (string) and Description contains (string).

 

Could someone please outline the steps required to make this possible?

2 answers

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2022

Hi @Genevieve_Green 

To add subtasks to the newly created task, please add a branch to the most recently created issue.  That helps the rule understand which issue is needed for subtask linking. 

For example:

  • trigger: scheduled
  • action: create issue for the Task
  • branch: to most recently created issue
    • action: create subtask, with the parent as "current issue"
    • ...

Kind regards,
Bill

Genevieve_Green August 8, 2022

Thanks @Bill Sheboy that worked perfectly!
I wasn't too sure how the Branches worked in Automation so didn't attempt to use them previously.
We've got this all set up and working as intended now so I appreciate the quick reply!

Like Bill Sheboy likes this
0 votes
John Funk
Community Champion
August 5, 2022

Hi Genevieve,

Can you post the actual automation for Jira rule that you have so far (screenshot)? Then we can help you from there. 

Genevieve_Green August 8, 2022

Thanks @John Funk , Bill's answer confirmed everything we needed to get this working as required.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events