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

Automating copying field value from trigger ticket to LookUp ticket

Stephen Herrmann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 29, 2024

Hello, I am running into an issue with getting this automation to update the indicated field in the Lookup issue.  it currently only re updates the current ticket, even though the lookup successfully finds the ticket I am looking for.

Screenshot 2024-08-29 at 3.59.48 PM.png

Current logic (as I understand it): Rule triggered when any ticket is created > Re fetch the ticket info > If ticket has "Manager Form" Proceed > Lookup ticket that matches specific criteria > In the ticket that was looked up, update the "Distro List" field 

Screenshot 2024-08-29 at 4.02.32 PM.png

Everything looks good, until the last step where it just updates itself and not the looked up ticket.  I'm hoping I am just missing something simple here :) 

1 answer

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024

Hello @Stephen Herrmann 

Welcome to the Atlassian community.

You need to change the focus of the rule to the issues that you found. As your rule is currently structured the focus is still on the issue that triggered the rule.

Rather than using a Lookup Issues action I recommend that you use a For Each branch selecting Related Issues / JQL. Branching changes the focus to the issues that are found by the branch criteria and executes the specified actions for each issue found by that criteria. In the branch configuration you would use the JQL that you currently have in your Lookup Issues action.

Keep the steps you currently have between the trigger and the Lookup Issue action. Replace the Lookup Issues action with the For Each branch. Pull the edit action into the branch.

Screenshot 2024-08-29 at 4.47.58 PM.png

Stephen Herrmann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 30, 2024

Hey Trudy,

Thank you for this.  Adding a single branch with my search did indeed select the desired ticket :) This allowed me to use the copy form function as well, instead of me copying the fields out of the form.  So win win here :) 

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events