When updating a start or end date, I am trying to automatically adjust everything after that.
Asked by Joe Mraz:

I have a group of linked stories under an epic that have start and due dates. If I need to push out a due date I want the rest of the stories to automatically update their start and end dates to conform with that change and adjust by the same amount.

I am not sure how to build an automation like this and need some help.


Answers:
author: Trudy Claspill
body: Hello [@Joe Mraz](/t5/user/viewprofilepage/user-id/5574231)

When you say the issues are linked do you mean that they are linked to each other? What link type(s) are you using? How are you indicating that the Start Date of Issue X is dependent on the Due Date of Issue Y?

How many such issues exist in your longest "chain" of such relationships?

comments: author: Joe Mraz
body: Hello Trudy. Basically, the stories are a phased approach in this case. So story 1 is linked (blocks) to story 2. Story 1 needs to be completed to work on story 2. If story 1 needs to be extended, then I want story 2 to be pushed out but keep their current amount of time for story 2 but push it out. Then it would push out story 3, 4, etc, so that we make one update to a story timeline and the rest updates properly.

This chain is currently 10 stories.


author: Trudy Claspill
body: I have provided an example of how to do that with an Automation rule in my answer on this post:

<https://community.atlassian.com/t5/Jira-questions/How-to-move-a-ticket-forward-in-timeline-when-is-blocked-by/qaq-p/2628902>

Note that this rule needs to call itself recursively to go through the chain of linked issues. There is a [limit](https://support.atlassian.com/cloud-automation/docs/automation-service-limits/) of 10 such calls so if you have more than 10 issues in the chain following the first one you update, then the rule will update only the first 10. And you have to check the box on the Rule Details page to "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule."


author: Joe Mraz
body: Getting some errors when from the audit log:  

Failed to get value for (issue.startdate.plusDays(duration.asNumber)): {{issue.startdate.plusDays(duration.asNumber))}}


author: Trudy Claspill
body: Where I used "startdate" or "Start date" or "duedate" or "Due date" or any variations thereof, you need to be using the names of your fields that you are using to indicate the beginning date and the ending date.


author: Joe Mraz
body: I got it working now. However, for the next story in line it only changes the start date correctly. The due date says "NO DUE DATE" which then erases the ones after the second story and so on. Getting closer. Any thoughts?


author: Trudy Claspill
body: Please show us the rule(s) you have created and the details of each step, plus the details from the audit log for execution of the rule(s).


author: Joe Mraz
body: Here is part 1:  

![](https://attachment.outlook.live.net/owa/MSA%3A87710c1601da77ac263e3ee618a6bf45a5f5a8cc63edfe5ee0f8626e01e4b351%40shadow.outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkAGM4YzkwMAItNzFlMi0zYjA3LTAwAi0wMAoARgAAA5fuuBzGT%2BxJvMS54OPat9kHADCQTejphapJomLsnwLNFwgAAAIBDAAAADCQTejphapJomLsnwLNFwgAAADs4zeXAAAAARIAEABZ6jSav%2BHvR68TYXovwjUa&thumbnailType=2&isc=1&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5QzQzQTlFOEE2MTQzQzAzRDYyRjlBODAiLCJ0eXAiOiJKV1QiLCJ4NXQiOiI1ZEx3LU5xVHRuQ2NRNm5vcGhROEE5WXZtb0EifQ.eyJvcmlnaW4iOiJodHRwczovL291dGxvb2sub2ZmaWNlLmNvbSIsInVjIjoiNDNlMTIzOTdmNzcyNGY0NjhhNWY5YTc0NzMwY2JlYzEiLCJ2ZXIiOiJFeGNoYW5nZS5DYWxsYmFjay5WMSIsImFwcGN0eHNlbmRlciI6Ik93YURvd25sb2FkQDg0ZGY5ZTdmLWU5ZjYtNDBhZi1iNDM1LWFhYWFhYWFhYWFhYSIsImlzc3JpbmciOiJXVyIsImFwcGN0eCI6IntcIm1zZXhjaHByb3RcIjpcIm93YVwiLFwicHVpZFwiOlwiLTM5Nzg2NDg3OTM4OTQ0NzA5MDVcIixcInNjb3BlXCI6XCJPd2FEb3dubG9hZFwiLFwib2lkXCI6XCJjOGM5MDAwMC03MWUyLTNiMDctMDAwMC0wMDAwMDAwMDAwMDBcIixcInByaW1hcnlzaWRcIjpcIlMtMS0yODI3LTMzNjg2MTU5MzYtMTkxMDY1MTY1NVwifSIsIm5iZiI6MTcyNDQzMzQzMywiZXhwIjoxNzI0NDMzNzMzLCJpc3MiOiIwMDAwMDAwMi0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDBAODRkZjllN2YtZTlmNi00MGFmLWI0MzUtYWFhYWFhYWFhYWFhIiwiYXVkIjoiMDAwMDAwMDItMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL2F0dGFjaG1lbnQub3V0bG9vay5saXZlLm5ldEA4NGRmOWU3Zi1lOWY2LTQwYWYtYjQzNS1hYWFhYWFhYWFhYWEiLCJoYXBwIjoib3dhIn0.AeRpIeQ3IsK8wf3QwuyK1z2wMFjrKY3HqPeXxYjoGkAYn_meckLiTpqPQmSMmhnI2n5f6PLeR53os6DemnUJ-ZcFLq2puX31ZpES5tJZPTbyJbjvRuvUVkAE1IQ8txww0jPr2DsG1-AfFLy3QAkzu60z8_G0CzM8IFtg7Ttel_7-UITo5L2NZjIXm6ZudTua2o3eo5kd0m7IPQFIAUCUFtHV5bSpe664LAA_gmxPqpblo2VAwee_ZWpUdPvpgDYsWPMNyap4hjJj95ZWbGlTcULK0uSxD8uQw2uQY_k3rQCtcBgaPuWyLhWP5HWDGAAhh8-5RhXxKEmhs6qlbfLM5w&X-OWA-CANARY=X-OWA-CANARY_cookie_is_null_or_empty&owa=outlook.office.com&scriptVer=20240816003.11&clientId=9536FF45050C4626BD3558F8629A78E6&animation=true&persistenceId=c8c70125-e66f-4a90-8ae9-b8927acbebc9)


author: Joe Mraz
body: Part 2:

![](https://attachment.outlook.live.net/owa/MSA%3A87710c1601da77ac263e3ee618a6bf45a5f5a8cc63edfe5ee0f8626e01e4b351%40shadow.outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkAGM4YzkwMAItNzFlMi0zYjA3LTAwAi0wMAoARgAAA5fuuBzGT%2BxJvMS54OPat9kHADCQTejphapJomLsnwLNFwgAAAIBDAAAADCQTejphapJomLsnwLNFwgAAADs4zeYAAAAARIAEACVROL%2BgwINRLMTz1Z6GMqQ&thumbnailType=2&isc=1&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5QzQzQTlFOEE2MTQzQzAzRDYyRjlBODAiLCJ0eX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Ttel_7-UITo5L2NZjIXm6ZudTua2o3eo5kd0m7IPQFIAUCUFtHV5bSpe664LAA_gmxPqpblo2VAwee_ZWpUdPvpgDYsWPMNyap4hjJj95ZWbGlTcULK0uSxD8uQw2uQY_k3rQCtcBgaPuWyLhWP5HWDGAAhh8-5RhXxKEmhs6qlbfLM5w&X-OWA-CANARY=X-OWA-CANARY_cookie_is_null_or_empty&owa=outlook.office.com&scriptVer=20240816003.11&clientId=9536FF45050C4626BD3558F8629A78E6&animation=true&persistenceId=c8c70125-e66f-4a90-8ae9-b8927acbebc9)


author: Joe Mraz
body: Success Info from Log 1st one: Notice only the Due Date is there which correctly sets the start date on the next story

![](https://attachment.outlook.live.net/owa/MSA%3A87710c1601da77ac263e3ee618a6bf45a5f5a8cc63edfe5ee0f8626e01e4b351%40shadow.outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkAGM4YzkwMAItNzFlMi0zYjA3LTAwAi0wMAoARgAAA5fuuBzGT%2BxJvMS54OPat9kHADCQTejphapJomLsnwLNFwgAAAIBDAAAADCQTejphapJomLsnwLNFwgAAADs4zeZAAAAARIAEACDiIAPrdKaTqF0PeDZT%2F0m&thumbnailType=2&isc=1&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5QzQzQTlFOEE2MTQzQzAzRDYyRjlBODAiLCJ0eXAiOiJKV1QiLCJ4NXQiOiI1ZEx3LU5xVHRuQ2NRNm5vcGhROEE5WXZtb0EifQ.eyJvcmlnaW4iOiJodHRwczovL291dGxvb2sub2ZmaWNlLmNvbSIsInVjIjoiNDNlMTIzOTdmNzcyNGY0NjhhNWY5YTc0NzMwY2JlYzEiLCJ2ZXIiOiJFeGNoYW5nZS5DYWxsYmFjay5WMSIsImFwcGN0eHNlbmRlciI6Ik93YURvd25sb2FkQDg0ZGY5ZTdmLWU5ZjYtNDBhZi1iNDM1LWFhYWFhYWFhYWFhYSIsImlzc3JpbmciOiJXVyIsImFwcGN0eCI6IntcIm1zZXhjaHByb3RcIjpcIm93YVwiLFwicHVpZFwiOlwiLTM5Nzg2NDg3OTM4OTQ0NzA5MDVcIixcInNjb3BlXCI6XCJPd2FEb3dubG9hZFwiLFwib2lkXCI6XCJjOGM5MDAwMC03MWUyLTNiMDctMDAwMC0wMDAwMDAwMDAwMDBcIixcInByaW1hcnlzaWRcIjpcIlMtMS0yODI3LTMzNjg2MTU5MzYtMTkxMDY1MTY1NVwifSIsIm5iZiI6MTcyNDQzMzQzMywiZXhwIjoxNzI0NDMzNzMzLCJpc3MiOiIwMDAwMDAwMi0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDBAODRkZjllN2YtZTlmNi00MGFmLWI0MzUtYWFhYWFhYWFhYWFhIiwiYXVkIjoiMDAwMDAwMDItMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL2F0dGFjaG1lbnQub3V0bG9vay5saXZlLm5ldEA4NGRmOWU3Zi1lOWY2LTQwYWYtYjQzNS1hYWFhYWFhYWFhYWEiLCJoYXBwIjoib3dhIn0.AeRpIeQ3IsK8wf3QwuyK1z2wMFjrKY3HqPeXxYjoGkAYn_meckLiTpqPQmSMmhnI2n5f6PLeR53os6DemnUJ-ZcFLq2puX31ZpES5tJZPTbyJbjvRuvUVkAE1IQ8txww0jPr2DsG1-AfFLy3QAkzu60z8_G0CzM8IFtg7Ttel_7-UITo5L2NZjIXm6ZudTua2o3eo5kd0m7IPQFIAUCUFtHV5bSpe664LAA_gmxPqpblo2VAwee_ZWpUdPvpgDYsWPMNyap4hjJj95ZWbGlTcULK0uSxD8uQw2uQY_k3rQCtcBgaPuWyLhWP5HWDGAAhh8-5RhXxKEmhs6qlbfLM5w&X-OWA-CANARY=X-OWA-CANARY_cookie_is_null_or_empty&owa=outlook.office.com&scriptVer=20240816003.11&clientId=9536FF45050C4626BD3558F8629A78E6&animation=true&persistenceId=c8c70125-e66f-4a90-8ae9-b8927acbebc9)


author: Joe Mraz
body: Success Info from log 2nd one: Notice everything is blank

![](https://attachment.outlook.live.net/owa/MSA%3A87710c1601da77ac263e3ee618a6bf45a5f5a8cc63edfe5ee0f8626e01e4b351%40shadow.outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkAGM4YzkwMAItNzFlMi0zYjA3LTAwAi0wMAoARgAAA5fuuBzGT%2BxJvMS54OPat9kHADCQTejphapJomLsnwLNFwgAAAIBDAAAADCQTejphapJomLsnwLNFwgAAADs4zeaAAAAARIAEACVAyVf20WQSZX5u0wqv1Qi&thumbnailType=2&isc=1&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5QzQzQTlFOEE2MTQzQzAzRDYyRjlBODAiLCJ0eXAiOiJKV1QiLCJ4NXQiOiI1ZEx3LU5xVHRuQ2NRNm5vcGhROEE5WXZtb0EifQ.eyJvcmlnaW4iOiJodHRwczovL291dGxvb2sub2ZmaWNlLmNvbSIsInVjIjoiNDNlMTIzOTdmNzcyNGY0NjhhNWY5YTc0NzMwY2JlYzEiLCJ2ZXIiOiJFeGNoYW5nZS5DYWxsYmFjay5WMSIsImFwcGN0eHNlbmRlciI6Ik93YURvd25sb2FkQDg0ZGY5ZTdmLWU5ZjYtNDBhZi1iNDM1LWFhYWFhYWFhYWFhYSIsImlzc3JpbmciOiJXVyIsImFwcGN0eCI6IntcIm1zZXhjaHByb3RcIjpcIm93YVwiLFwicHVpZFwiOlwiLTM5Nzg2NDg3OTM4OTQ0NzA5MDVcIixcInNjb3BlXCI6XCJPd2FEb3dubG9hZFwiLFwib2lkXCI6XCJjOGM5MDAwMC03MWUyLTNiMDctMDAwMC0wMDAwMDAwMDAwMDBcIixcInByaW1hcnlzaWRcIjpcIlMtMS0yODI3LTMzNjg2MTU5MzYtMTkxMDY1MTY1NVwifSIsIm5iZiI6MTcyNDQzMzcwMiwiZXhwIjoxNzI0NDM0MDAyLCJpc3MiOiIwMDAwMDAwMi0wMDAwLTBmZjEtY2UwMC0wMDAwMDAwMDAwMDBAODRkZjllN2YtZTlmNi00MGFmLWI0MzUtYWFhYWFhYWFhYWFhIiwiYXVkIjoiMDAwMDAwMDItMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwL2F0dGFjaG1lbnQub3V0bG9vay5saXZlLm5ldEA4NGRmOWU3Zi1lOWY2LTQwYWYtYjQzNS1hYWFhYWFhYWFhYWEiLCJoYXBwIjoib3dhIn0.pBs7Eh5_hFuCp2RYw3hK467Y8kGrDm74gH7OTac14AK1Tz9bdE_Z9ZQoQzxjy3jo9U58LoO0M5QjDmNC3JnUkxY3KVBNGZhZBVDSXZDEZbaGKUo5RRdTdHQFknfhIKbWi6fRx0Odtfp1bdQzTpgaOemNlWEfR5p2ewV6Iq9SADki0RXZseDHQ59SZdoDYZGGKSs_-glqd7DaD9U5tMqgCNkgFO_utDMkPoLKXuRwXSsK6qgm9BHopFnd-Iuf8Gm8yRYT9TjiEM_OvX0FMoqGGlj2NA5S0hUgCkwGQa_WhFIGdXie6gmDuBWrLE74MwuuSdMtot5wIdQcEIcJ1nXt6w&X-OWA-CANARY=X-OWA-CANARY_cookie_is_null_or_empty&owa=outlook.office.com&scriptVer=20240816003.11&clientId=9536FF45050C4626BD3558F8629A78E6&animation=true&persistenceId=c8c70125-e66f-4a90-8ae9-b8927acbebc9)


author: Joe Mraz
body: Results: The 2nd story has the correct start date but due date is now saying NO DUE DATE

![](https://attachment.outlook.live.net/owa/MSA%3A87710c1601da77ac263e3ee618a6bf45a5f5a8cc63edfe5ee0f8626e01e4b351%40shadow.outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkAGM4YzkwMAItNzFlMi0zYjA3LTAwAi0wMAoARgAAA5fuuBzGT%2BxJvMS54OPat9kHADCQTejphapJomLsnwLNFwgAAAIBDAAAADCQTejphapJomLsnwLNFwgAAADs4zebAAAAARIAEAAs6QYQJS2JTYRnuFiCK6MD&thumbnailType=2&isc=1&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2N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BgIGGzgEmTCzs4o-GlZcCrKfLIR6YnWbGu9znuaqz95ffvqBdPZrRlXhtgIa6gjiahNjVnlZAaXwIlVo2-keJ9NDV_0DwG2EjjJ39rZE8yrDt3MEvPHr16C1v-DjHJwqOvUeEkxYKX2pvVKB7yMwZZ3FxXknnDHc4KQCc4NkjQpuZaj7cHxSofDGdEiuEFxfTKWaC3zoFu2NBGc-4e7A3HYrGg&X-OWA-CANARY=X-OWA-CANARY_cookie_is_null_or_empty&owa=outlook.office.com&scriptVer=20240816003.11&clientId=9536FF45050C4626BD3558F8629A78E6&animation=true&persistenceId=c8c70125-e66f-4a90-8ae9-b8927acbebc9)


author: Trudy Claspill
body: At this moment I'm not able to see/access any of the attachments you added to your post.


author: Bill Sheboy
body: Hi [@Joe Mraz](/t5/user/viewprofilepage/user-id/5574231) -- Welcome to the Atlassian Community!

In your rule's create variable action for "duration" you use this smart value expression:

{{issue.dueDate.plusBusinessDays(diff))}}

That is not valid as "diff" has no meaning / value there.

Were you trying to use the change in value for the Due Date of the trigger issue? If so, that would need to be calculated from the changelog after the trigger and saved for later use in the branch.

Kind regards,  
Bill


author: Trudy Claspill
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

(I don't know why I can't see the images from OP's most recent replies. I've tried three different browsers and an Incognito window.)

Adding context: OP is using an example from one of my previous answers as the basis for the rule.

<https://community.atlassian.com/t5/Jira-questions/How-to-move-a-ticket-forward-in-timeline-when-is-blocked-by/qaq-p/2628902>


author: Bill Sheboy
body: Thanks, Trudy!

The definition of the *duration* variable and increment of the date seem comingled / different from your linked solution. If they are separated again it should work, with the key being how much to increment:

1. by the same amount as the trigger issue's due date change, or
2. some other amount.


author: Joe Mraz
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) Hi Bill. That did not change anything when I updated it.

[@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) Hi Trudy, is there a way I can attach the files so you can see?


author: Trudy Claspill
body: [@Joe Mraz](/t5/user/viewprofilepage/user-id/5574231)

Did you upload image files in those posts? What type of files did you upload?

If Bill can see them then the problem may be on my side.

The links I see for your images look like this:  

[https://attachment.outlook.live.net/owa/MSA%3A87710c1601da77ac263e3ee618a6bf45a5f5a8cc63edfe5ee0f8626e01e4b351%40shadow.outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkAGM4YzkwMAItNzFlMi0zYjA3LTAwAi0wMAoARgAAA5fuuBzGT%2BxJvMS54OPat9kHADCQTejphapJomLsnwLNFwgAAAIBDAAAADCQTejphapJomLsnwLNFwgAAADs4zeYAAAAARIAEACVROL%2BgwINRLMTz1Z6GMqQ\&thumbnailType=2\&isc=1\&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5QzQzQTlFOEE2MTQzQzAzRDYyRjlBODAiLCJ0eXAiOiJKV1QiLCJ4NXQiOiI1ZEx3LU5xVHRuQ2NRNm5...](https://attachment.outlook.live.net/owa/MSA%3A87710c1601da77ac263e3ee618a6bf45a5f5a8cc63edfe5ee0f8626e01e4b351%40shadow.outlook.com/service.svc/s/GetAttachmentThumbnail?id=AQMkAGM4YzkwMAItNzFlMi0zYjA3LTAwAi0wMAoARgAAA5fuuBzGT%2BxJvMS54OPat9kHADCQTejphapJomLsnwLNFwgAAAIBDAAAADCQTejphapJomLsnwLNFwgAAADs4zeYAAAAARIAEACVROL%2BgwINRLMTz1Z6GMqQ&thumbnailType=2&isc=1&token=eyJhbGciOiJSUzI1NiIsImtpZCI6IkU1RDJGMEY4REE5M0I2NzA5QzQzQTlFOEE2MTQzQzAzRDYyRjlBODAiLCJ0eXAiOiJKV1QiLCJ4NXQiOiI1ZEx3LU5xVHRuQ2NRNm5vcGhROEE5WXZtb0EifQ.eyJvcmlnaW4iOiJodHRwczovL291dGxvb2sub2ZmaWNlLmNvbSIsInVjIjoiNDNlMTIzOTdmNzcyNGY0NjhhNWY5YTc0NzMwY2JlYzEiLCJ2ZXIiOiJFeGNoYW5nZS5DYWxsYmFjay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_is_null_or_empty&owa=outlook.office.com&scriptVer=20240816003.11&clientId=9536FF45050C4626BD3558F8629A78E6&animation=true&persistenceId=c8c70125-e66f-4a90-8ae9-b8927acbebc9)

In comparison the links I see for the images I attached in the referenced post look like this:  

[https://community.atlassian.com/t5/image/serverpage/image-id/310617iE81E31F15F262CFE/image-size/large?v=v2\&px=999](https://community.atlassian.com/t5/image/serverpage/image-id/310617iE81E31F15F262CFE/image-size/large?v=v2&px=999)


author: Joe Mraz
body: [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) I did not upload. I just cut and paste the pictures. Is there a way to upload .jpeg files?


author: Trudy Claspill
body: Save a copy of the file on your local system then use the Insert Photos option to insert/attach the jpeg to the post.

![Screenshot 2024-08-23 at 1.00.44?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/343565i69A4233417AB5FE6/image-size/large?v=v2&px=999 "Screenshot 2024-08-23 at 1.00.44?PM.png")


author: Joe Mraz
body: ![Rule Part 1 of 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/343586i029042B7C6C818CB/image-size/large?v=v2&px=999 "Rule Part 1 of 2.jpg")![Rule Part 2 of 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/343587i18ABFE776FD8423C/image-size/large?v=v2&px=999 "Rule Part 2 of 2.jpg")![Success 1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/343588iD6876E883B4E1B7C/image-size/large?v=v2&px=999 "Success 1.jpg")![Success 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/343589iF0493015952E1D68/image-size/large?v=v2&px=999 "Success 2.png")![Result.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/343590iF6546681B7B2C827/image-size/large?v=v2&px=999 "Result.jpg")


author: Trudy Claspill
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) 's comment about your Create Variable action to calculate "duration" is wrong. Compare yours to mine from the reference post.

I used {{issue.*Start Date Field Name* .**diff** .(issue.*Due date field name*).days}}

I would amend that now to use the *abs* function also.  
{{issue.*Start Date Field Name* .**diff** .(issue.*Due date field name* ).days**.abs**}}

You used:

{{issue.dueDate.plusBusinessDays(diff)}}

That is an entirely different calculation to add a number of business days to the Due Date, with that number of days being specified by **diff**

Because of that problem your editing of the Due Date field in the Edit action will not be correct.

In addition, you may want to double check that the linked issue actually has a Due date value and a Start date value before you calculate **duration** and edit the issue.


author: Joe Mraz
body: Still not working. I cannot set the Due Date. My logs show how many days that need to be added but it keeps saying NO DUE DATE. Very frustrating. Here is everything again because I made a lot of changes. All my logs show data.

![Automation 1 of 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/343920iE592C208C27E8E48/image-size/large?v=v2&px=999 "Automation 1 of 2.jpg")![Automation 2 of 2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/343921i71AB2AA2E7C86B9D/image-size/large?v=v2&px=999 "Automation 2 of 2.jpg")![Edit Issue Logic.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/343922i4480173872F382AC/image-size/large?v=v2&px=999 "Edit Issue Logic.jpg")![Logs.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/343924iD74C06AF2078F58C/image-size/large?v=v2&px=999 "Logs.jpg")


author: Trudy Claspill
body: The use of field names in smart values can be space and case sensitive. Make sure that the field names you are using in the smart values match the field names you see in the UI for the actual issues.

I see a lot of placing where you are changing case, such as

TriggerIssue vs. triggerIssue vs. triggerissue (with a lower case "i" in the last one for "issue"

So I also recommend that you make sure the case on all those references is correct.

triggerIssue - lower case "t" and upper case "I" for "Issue".

When referencing the current issue in focus use {{issue.... with a lower case "i".

I also notice that you are trying to reset Due date based on Start date in the target issue.

![Screenshot 2024-08-26 at 12.43.21?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/343941i3ED41BF942FDAD5E/image-size/large?v=v2&px=999 "Screenshot 2024-08-26 at 12.43.21?PM.png")

Two things I would recommend with regard to this:

1. Don't use the focused issue's Start date as the basis for assigning a value to this field. At this point in time, the start date of the issue has not yet been changed so it is using the original Start date in the calculation. Instead use a reference to the trigger issue's due date, like you do when setting Start date.

{{triggerIssue.duedate.plusDays(numberofdays)}}

2. Print that value into the Audit Log to confirm it is calculating correctly.

3. Also, I see that you are actually pushing the new Start date out by an additional day, so you need to factor that in to the numberOfDays calculation:

{{issue.Start date.diff(issue.duedate.plusDays(1)).days.abs}}


Tags: cloud

due-date

jira-cloud

start-date