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

1 vote
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.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

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

Atlassian Community Events