Automation to update Issue in another project after edit

James Webber
Contributor
March 6, 2022

I have two projects A and Project B used for reporting.

I have a rule than creates an issue in B every time one is created in A.

It also links A ->B

 

I would like to now updated the matching issue B everytime A is updated.

 

I created a variable to figure out which issue I will need to update

{{"PROJECTB".concat(issue.key.substringAfter("-"))}}

But any idea how I use this variable to update summary , desc etc the right issue in Project B please?

1 answer

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 7, 2022

Hi James,

as you mentioned the issues are even linked there is a feature in the automation to look for linked issues and create actions on this linked issue(s).

I would say the rule could look like following (as far as I could read from your information):

  • trigger: value changes (eg. for special field)
  • conditions: can be set to limit for special conditions (eg. only runs issue type that triggered is Story,..... or only if linked issues are present in the trigger issue)
  • branch: for linked issues --> here you can also choose the link type you would perform actions on
  • action: edit issue --> you could then edit the linked issue (eg. copy field that was changed from trigger issue, etc.)

Hope this was helpful.

Best
Stefan

James Webber
Contributor
March 7, 2022

Thanks Stefan,

Thats what I figured out last night.

  1. I setup an automation over multiple projects (PROJECTA and PROJECTB)
  2. I created a condition to only work on PROJECTA.
  3. I created a variable PROJECTB-{{issue.key.substringAfter("-")}}  (this works out what PROJECTB item I am going to update)
  4. I used the For Linked issues
  5. I compare issue {{issue.key}} = var in step 3
  6. If true then I update the feilds.

This works well.

Like Stefan Salzl likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events