Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,671
Community Members
 
Community Events
184
Community Groups

Set Start Date from Linked Issue's Due Date with Smart Values

Hello! I'm trying to create a template for creating an Epic with several tasks underneath it, all linked together and set with cascading start and due dates, meaning when Task 1's due date then sets Task 2's start date to be the same day, and so on. I have the automation working perfectly for creating all tasks and linking them together within the Epic as child Tasks, but I am not able to pull the start date based on the linked issue's due date. I'm thinking I'm trying to use incorrect smart values. Here is what I've tried so far, in the "set start date" field in the automation:

 

{{issue.issuelinks.inwardIssue.issue.dueDate}}

{{issue.issuelinks.outwardIssue.issue.dueDate}}

{{issue.issuelinks.inwardIssue.issuedueDate}}

{{issue.issuelinks.outwardIssue.issuedueDate}}

 

...All the tasks are being created and linked, no errors on the automation log, but under no circumstances are the start dates being updated at all. The first task is able to be (because I can reference the "trigger issue" in the automation for the first task), but the additional tasks have no way of referencing "most recently created issue" with smart values, which is why I'm trying to reference the linked issue's with smart values instead.


Any help would be greatly appreciated!

 

2 answers

1 accepted

0 votes
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.
Apr 18, 2023 • edited

Hi @Eric Younkin 

When you have an Epic with child Tasks, they normally do not use linking that way.  Instead the Tasks all just have the same Parent (or Epic Link) value to point to the Epic.  Why are you using links to connect them?

Next thing: for a question like this, please post images of your complete automation rule and the audit log details showing the execution.  Those will provide context for the community to offer suggestions.  Thanks!

Until we see those...I suspect you can do what you ask by using a chain of updates, referencing the last created issue, such as this:

  • action: create issue 1, setting the first start date and due date
  • action: create issue 2, setting the start date to {{createdIssue.duedate}} and so on

Kind regards,
Bill

@Bill Sheboy ,

Thanks for the quick response. The reason for the linking of child Tasks is to create a waterfall dependency structure for Project Management (I know, agile is the way to go, but we have constraints with these groups). It allows for automation to automatically adjust start dates when tasks go over, like so:Waterfall Dependencies.png

 

Here is the automation for the first 2 tasks. I tried your last suggestion but that doesn't seem to help. I've tried branching but can't get anything to reference the due date of the last created task at all.:

Automation Rule.png

 

Here is Task 1 in detail. This is working, because I can reference the trigger issue for the start date:

Task 1 Detail.png

Here is the detail for the second task automation, which is the one that is NOT working:

Task 2 Detail.png

The end result is below - the tasks are created and linked correctly, the first task has the correct start/end date, but the 2nd task is not catching a start date at all, no matter what I try:

Automation Result.png

Thanks again for your help!

Eric

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.
Apr 18, 2023

Thanks for that information.

Next thing to try: smart values are name, spacing, and case-sensitive.  And, the one for Due Date is normally this {{issue.duedate}}  so perhaps try this for updating the next issue: {{createdIssue.duedate}}

I also recommend writing {{createdIssue.duedate}} to the audit log to confirm it works as you expect.

Thanks @Bill Sheboy - I initially tried lowercase 'd' in date as you suggested, but have seen it as uppercase in other posts so tried that also. I just changed it back to lowercase per above, and same result. Here is the audit log (not very telling):

Audit Log.png

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 18, 2023

Adding in...

@Eric Younkin I don't see in the Automation where you are setting the Due Date for Task 1. Are you setting its Due Date in this same automation rule?

If the Due Date field on the Task 1 is not getting set, then that would explain why the Start Date for Task 2 has no value.

Like Bill Sheboy likes this

@Trudy Claspill , YES!!! I didn't even think of that, but you are absolutely right. I was setting the due date with a separate automation used to keep tasks in line as they are worked. When I changed it to be part of this automation, that solved the problem!

Thanks so much for your help - I wish I would have thought of that sooner!

Like Bill Sheboy likes this
0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 18, 2023

Hello @Eric Younkin 

Do each of your tasks have only one inward and one outward linked issue?

I think you don't need the .issue portion of the syntax before the .duedate portion. 

I have not actually tried to use the issuelinks property, but I did find this old post that that suggests alternative syntax.

Thanks @Trudy Claspill for the quick response. Yes, each of the tasks have only one inward / outward linked issue to create a single task waterfall (first, then, then, etc. as you can see in the pics above). I've tried removing the ".issue" and only using the ".duedate" to no avail, unfortunately. I've seen that post you reference and tried the syntax on that one as well, including using "{{issue.issuelinks.last.inwardIssue.duedate}}" AND "{{issue.issuelinks.last.outwardIssue.duedate}}", but neither of those worked either.

Thanks!

Eric

Suggest an answer

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

Atlassian Community Events