Forums

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

Why is my automation not working

Chris January 18, 2024

If there are 2 tasks A and B and both tasks are sub tasks. Task B is dependent on Task A. If I shift the timelines of Task A, can the timelines of task B be shifted automatically?

I tried to make an automation, but it is not working.

 

Trigger Due date.

If: Issue type equals sub task

And: link issues present Type blocks

Then: edit issue fields Due Date

1 answer

1 vote
Trudy Claspill
Community Champion
January 18, 2024

Hello @Chris 

Can you show us the actual rule?

Based on what you have provided, the rule is triggered when the Due Date is changed on Task A. You will need a step in the rule to change the focus to the blocked Task (Task B) in order to edit that task.

As you have shown it, the Edit operation would be editing the same issue that triggered the rule.

Chris January 18, 2024

My IT blocks uploads so I can not show the picture.

How do I make the step to shift subtask B? I am using Jira data center, so I do not have some of the functions in cloud. 

Trudy Claspill
Community Champion
January 18, 2024

This is an example from Data Center v9.10.x

Screenshot 2024-01-18 at 12.22.35 PM.png

Like Bill Sheboy likes this
Chris January 18, 2024

Thank you. Just a few questions

 

What would I put in the action? For example, would I put {{now.plusBusinessDays(5)}}?

 

Also, what is on the bottom of the branch? it looks like the picture is cut off. 

Chris January 18, 2024

I would need to shift the start and end date of task B. So that the end of task A is the start of task B. I think the example you shared would only shift the due date of task B

Trudy Claspill
Community Champion
January 18, 2024

There are no additional steps beyond what is in the image - nothing at the bottom of the branch.

To shift the start of the blocked task (Task B) to be the new Due Date of the blocking task (Task A) you would set the Edit action to update the Start Date field by copying the Due Date field from the trigger issue. This is the same, basically, as what I showed in the image, but you need to pick the Start Date field.

Screenshot 2024-01-18 at 12.52.13 PM.png

After selecting the field, click on the ... button and choose Copy from

Screenshot 2024-01-18 at 12.52.26 PM.png

That will change the input field to look like this.

Screenshot 2024-01-18 at 12.53.01 PM.png

Click somewhere in that text and that will open a pop-up like this.

Screenshot 2024-01-18 at 12.55.25 PM.png

In this pop-up you can change the Issue to copy value from field to Trigger Issue, and change the Field to copy value from to Due Date. Then click the Close button in the bottom right corner of the pop-up.

Screenshot 2024-01-18 at 12.57.19 PM.png

You would click on the Choose field to set button again to then select the end date field that you want to update in the same action. The exact value you will need to use to set the field depends on how you want to shift the end date of Task B. Do you want it to maintain its original duration based on its original start and end dates?

Suggest an answer

Log in or Sign up to answer