Automation to update start and end dates of linked issues

TomT
Contributor
June 30, 2023

I have issues that are blocked by other issues and linked them trough the timeline board.

If there is a delay for some reason on the first issue I will drag the due date, let's say 5 days, in the future. But the linked/blocked stories do not move along.
I want the linked/blocked issues to move with the same amount of days as the first issue. 

This way we can track what the changes mean for the completion date of all linked issues.

I know this is not a function out of the box so I am trying to solve it using automation. 

But I already get stuck quite quickly, even after looking at the examples here at the site.

Can someone help me forward?

1.jpg

5 answers

2 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 30, 2023

Hi Tom - Welcome to the Atlassian Community!

Can you share the details of the Edit Issue for the Start date field? 

Also, what is not working with it? 

TomT
Contributor
June 30, 2023

Please see my reaction to Marco above. 

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 30, 2023

So you run the rule and the Start and End dates move? Or Just the End date? 

Like TomT likes this
TomT
Contributor
June 30, 2023

Only the end date moves.

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 30, 2023

Okay, that's very weird. I would have to see more screenshots of the history, audit log,  and all that to be able to tell more. 

Like # people like this
TomT
Contributor
June 30, 2023

I made the date in the automation to move the start to august 18 and started with the timeline below.

3.jpg

Then I moved the second to last issues end date from august 7 to august 8. 

After a second it changes to the screen below.

4.jpg

Like Alexander Pappert likes this
TomT
Contributor
July 12, 2023

No ideas?

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 12, 2023

Sorry, I really don't. I would open a support ticket with Atlassian. 

Like Marco Brundel likes this
1 vote
Marco Brundel
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.
June 30, 2023

Hi @TomT ,

What have you set up behind the Start Date field? Did you use a smart-value there to copy Due date?

Regards, Marco

TomT
Contributor
June 30, 2023

Just to test I currently have a fixed date there. 

I would want to place a smart value there meaning, the difference in days to the other issues end date has moved, is added to the start date.

But if I run this now for some reason my end date moves.... 

Like # people like this
Marco Brundel
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.
June 30, 2023

Hi @TomT ,

What does the audit log indicate in the automation rule, has the issue changed as you expect? And if you look in the history of the changed issue, can you find out why the end date was changed?

 

groeten, Marco

Like # people like this
TomT
Contributor
June 30, 2023

Audit log is below. No it the result is not as expected. 
The end date moves instead of the start date. 

 

2.jpg

Like # people like this
0 votes
Neda Khavari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 18, 2024

Hi All,

I have the automation works for updating start & due date of blocked tasks, but the automation doesn't work on cascading issue.

Any idea on how to resolve this issue?

0 votes
V-Guard R_D Elec_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2024

Hi @Ste Wright ,

Thank you for this rule; it works for me.

The only issue I'm facing now is that it doesn't work for cascading issues.

For example, let's consider the scenario where A blocks B, and B blocks C. With this rule, only issue B is updated when the due date of A changes. However, this rule does not work for issue C.
Could you please let me know if there is any option to overcome this scenario?
Best Regards,
Alias Paul

0 votes
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 28, 2023

Hi @TomT 

I couldn't get this to work using smart values for the standard Start Date field - it clears it before setting it again, regardless of how I do it. I could do it using End Date though (as you mentioned above)

So I created a workaround using additional fields...

---

Setup

  • Create a new custom date picker field - eg. Current Start Date
  • Create additional custom date picker fields per field needed - eg. Current End Date
  • Either leave these off your screens, or add them to a view-only screen (via screen scheme issue operations)

---

Rule

  • Trigger: Field Value Changed
    • Field = Due Date
  • Action: Create Variable
    • Name = DaysAdded
    • Smart Value = {{fieldChange.from.toDate.diff(fieldChange.to.toDate).days}}
  • Branch: Related Issues
    • Type = Linked Issues
    • Link Type = blocks
      • Branch-Action: Edit Issue
        • Field = Current Start Date
          • Action = COPY (via 3-dots icon)
            • Issue to Copy From = Current Issue
            • Field to Copy from = Start Date
        • Field = Current End Date
          • Action = COPY (via 3-dots icon)
            • Issue to Copy From = Current Issue
            • Field to Copy from = End Date
      • Branch-Action: Re-fetch issue data
      • Branch-Action: Edit Issue
        • Field = Start Date
          • Value = {{issue.Current Start Date.plusDays(DaysAdded.asNumber)}}
        • Field = End Date
          • Value = {{issue.Current End Date.plusDays(DaysAdded.asNumber)}}
      • Branch-Action: Re-fetch issue data
      • Branch-Action: Edit Issue
        • Field = Current Start Date
          • Value = NULL (empty)
        • Field = Current End Date
          • Value = NULL (empty)

---

Notes:

  • You could use a combination of the End Date as a smart value, and Start Date with the field if preferred
  • The "Re-fetch issue data" help to ensure the rule runs in sequence
  • I've cleared the "Current" date fields once the copy is complete, so these aren't populated unnecessarily

---

Let us know if this workaround works for you!

I'd also encourage reporting the Start Date issue to Atlassian, it might be a bug with that custom field (which is Atlassian-created).

Ste

Patrick FG January 15, 2024

@Ste Wright thanks for the insight as I have been trying to do something similar.

 

Essentially on the advanced roadmaps I would like to make an automation so that when one issue is linked, the next issue cannot start until this one is finished. I then want all the linked issues are pushed out automatically by the same amount of delay. This automation would mimic a default Gantt Chart behavior.

I tried to follow your solution but maybe my Jira interface is different because I can't replicate your solution. 

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 15, 2024

Hi @Patrick FG 

Are you on Cloud or Server/DC?

Ste

Patrick FG January 15, 2024

Cloud

Patrick FG January 16, 2024

hi @Ste Wright , 

 

Here is my screen shot that I made out from your instructions. We are on the cloud service.

 

automation screen shot.jpg

Like Çağrı Akman likes this
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 17, 2024

Hi @Patrick FG 

Does the rule error? Is there anything in the audit log in terms of details?

It's difficult to know what might be inaccurate without seeing more specifics within each step.

Ste

Ahmad Khamash
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2024

Hi Ste Wright 

Thank you for the solution provided, 

I have been trying the same thing worked for me, yet it does not work on cascading issues ( multiple blocked issues, ) 
reference below : 

On changing issue #1 rules works perfect on Issue #2, Yet does not follow to Issue #3 
CascadingIssues.png

Did you face this issue, 
Note: I'm on cloud. 

Like # people like this
Ian Lucas August 28, 2024

Hi, im interested to see if there was a final resolution which worked for everyone? I am about to try and test this myself. 

Like Iffy Aslam likes this

Suggest an answer

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

Atlassian Community Events