Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,701
Community Members
 
Community Events
176
Community Groups

Automation to update Issue in another project after edit

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 Mar 07, 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

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

Atlassian Community Events