Forums

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

How to automate a custom date field of a subtask using that same subtasks due date field

Josiah Ekong August 14, 2023

I have an automation that creates 3 different subtasks when a new issue is created. Each subtasks automates a due date based on different formulas.

 

I also want to automate adding a custom field date, which i named "results due", to each subtasks and want the custom field date to be 5 weeks before the due date for that subtask. 

 

I tried using the smart values: {{issue.dueDate.plusDays(35)}} but when I make a new issue the results due field is blank for all subtasks.

 

Any help?

1 answer

1 accepted

0 votes
Answer accepted
David Blank
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 14, 2023 edited

Hi @Josiah Ekong ! 

Would you be willing to share a screenshot that shows where you are setting your custom date field?

I wonder if you are setting the custom date when you are creating the subtask, and it is possibly pulling the due date from the Task rather than the Subtask? Can you also confirm where you are wanting to pull the due date from(task or subtask)?

Josiah Ekong August 14, 2023

Sure, here's a screenshot.image1.JPG

 

The due date is being set for the subtask and I want to pull the due date from the created subtask to calculate a date for Results Due Date

Like • David Blank likes this
David Blank
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 14, 2023

@Josiah Ekong , it is possible that the Re-Fetch Issue Data Action could help here.

I would try adding the Re-Fetch Issue Data Action after your Create Issue, and then a branch, and then update the issue with your Result Due Date value. 

I'll try in my sandbox and report back.

David Blank
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 14, 2023

@Josiah Ekong I confirmed the assumption above. If you add a Re-Fetch Issue Data after you create the subtask and then create a branch rule for "Most Recently Created Issue" after that, you can update your custom date field.

Here's a screenshot of how I did it in my sandbox:

Screenshot 2023-08-14 at 5.26.10 PM.png

 

Note: I used Start Date in my example where you should use your custom date field.

Josiah Ekong August 15, 2023

This worked.

 

Thanks for your help

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events