Hi,
I need to create an automation in my Jira project that allows me to pick up the finish date of issues blocking another one and update the blocked issue to account for delays in its predecessors.
For example:
- Issue A: finishes 05/01/2023
- Issue B: finishes 25/01/2023
- Issue C: finishes 10/01/2023
All issues A, B and C block issue D, which currently starts on 27/01/2023 and finishes on 27/02/2023.
What I would like to do is set a trigger on issue D so that
- FOR linked issues (is blocked by) - so Issues A, B and C
- IF end date IS AFTER start date of current issue (Issue D)
- THEN create a smart value {{duration}} (finish date minus start date; of Issue D)
- EDIT start date (Issue D) to the MAX of Issues A, B and C finish date + 1 day
- EDIT finish date (Issue D) to start date plus {{duration}} smart value
Or in other words, if Issue A (or B or C) change their finish date to 05/02/2023 due to a delay, then Issue D start date would move to 06/02/2023 (05/02/2023+1), and a duration of 1 month (Original Issue D finish minus start dates, so 27/02/2023-27/01/2023) is added to this date to give a finish date of 06/03/2023
Getting instructions of completing this would be amazing please.
As a bonus challenge, I would like to create a notification or alert when changing any issue finish date (A, B or C) to after the blocked by issue start date (e.g. Issue A finish date changed to 28/01/2023), that
- Informs that this has an impact on a blocked issue (Issue D), and
- Asks to confirm whether we want Issue D dates to be moved accordingly (so whether we want to trigger the automation or not).
Thank you very much!!!