Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can you use automation to set due dates based on other fields in different tickets?

I am wanting to know if automation can work in this scenario:

  • A due date is added to a task
  • This triggers sub-tasks to adopt a due date 2 weeks in the future from the parents due date

or 

  • A Task has a Due Date Set
  • A Subtask has a custom field called "Phase" that determines which phase the issue is in
  • Can the sub-task then adopt a "2 weeks before the task due date" based on the phase? Like:
    • Task Due date is 10/1/2020
    • Sub-task is in Phase 2 which means it's due 2 weeks before the Task Due Date
    • Sub-Task gets a Due Date of 9/17/2020

@John Funk Any info you can provide would be much appreciated! 

1 answer

1 accepted

0 votes
Answer accepted
John Funk Community Leader Sep 10, 2020

Hi Lesly - thanks for creating a new question!

1. Create an Automation rule with a Field Value Changed trigger.

2. Select Due Date field and save.

3. Add a Branch rule/ Related issues component and select Sub-tasks and save.

4. Add a New Action component under the branch.

5. Select Edit Issue

6. Select Due Date

7. In the value field put in {{triggerIssue.duedate.plusDays(14)}}

Be sure to run a test scenario!!

Thank you so much for the quick reply and the step by step instructions! I will try this out and let you know how it goes :) 

Like John Funk likes this

Hi @John Funk ,

So I followed the steps and was able to get the rule to execute. However, I ran into a date issue. 

automation.JPGIn the case above, the End Date on the parent is set to Feb 1, 2021. So, I would expect the Due Date on the Sub-task to say Nov 9, 2020 based on the 12 week period. But it kept saying Aug 17, 2020. Do you happen to know what error I made here?

 

Thank you!

John Funk Community Leader Sep 14, 2020

Hey Lesly - You said the "End Date" is Feb 1, 2021, but your rule is using the "Due Date' of the parent. Do you have both fields? And what are the values for those? Are you really wanting to use End Date? If so then just sub that out in your rule for Due Date. 

Right now I have End Date and Due Date both set to Feb 1, so in this case it shouldnt matter. It still gives me the incorrect 12 weeks date of Aug 17.

Sorry, but I can't troubleshoot further without seeing your data. You should probably go ahead and open a support ticket with Atlassian. Please post the solution back here so we can close this one out.

https://support.atlassian.com/contact/#/

@Lesly Cracchiolo 

It wouldn't let me add a new answer, so lets try an edit here:

 

Try: {{issue.parent.End Date.jiraDate}}

Where End Date is the exact name of the field, including case. 

Hi @John Funk,

Is it possible to use this configuration? (see screenshot). If yes, what do I need to put into the due date box to have it trigger from the parent's End Date field? 

Thanks! :) one.JPGtwo.JPG

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

209 views 3 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you