The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

how can I use automation to affect two linked issues

Yingyi
November 23, 2023

I link issue A and issue B, B is blocked A

I wonder if any automation can help, when I issue A's start date delayed, Issue B can delay automatically 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Ste Wright
Community Champion
November 23, 2023

Hi @Yingyi 

This should be possible - can I confirm the logic is...

  • Issue A blocks Issue B (i.e Issue B is blocked by Issue A)
  • If Issue A's start date is modified
  • Update Issue B's start date with the same amount of days

...is this correct?

Ste

Yingyi
November 23, 2023

yes! You got it correctly! Do we have an easy way to achieve that? 

Ste Wright
Community Champion
November 24, 2023

Hi @Yingyi 

This should work:

  • Trigger: Field Value Changed
    • Field to Monitor = Start date
  • (1) Action: Create Variable
    • Name = previousDate
    • Smart Value = {{changelog.Start date.fromString}}
  • (2) Action: Create Variable
    • Name = currentDate
    • Smart Value = {{changelog.Start date.toString}}
  • (3) Action: Create Variable
    • Name = daysDiff
    • Value = {{previousDate.toDate.diff(currentDate.toDate).days}}
  • Branch: Related Issues
    • Type = Linked Issues
    • Link Types = blocks
      • Branch-Action: Edit Issue
        • Field = Start date
          • Value = {{#issue.Start date}}func=plusDays({{daysDiff}}) {{/}}

---

A few notes on this rule:

  • Variables (1) and (2) represent the previous Start date and current one
  • Variable (3) then calculates how much the date changed by in days
  • You can add additional Conditions as required - for example, can Issue B's Start date be empty? If yes, what should happen in that scenario?

---

Let us know if this works for you!

Ste

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events