Help with automation - Copying values from a liked issue on CREATION

Darren.Fairweather
Contributor
June 19, 2024

Hey Community!

 

I am creating an issue in project A. This issue is linked to an issue in Project B when created. How do i set up automation to for the newly created issue to copy field values from the linked issue. I have all the fields set up its just the automation i am struggling with.

Thanks in advance

2 answers

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2024

Hi @Darren.Fairweather 

That is possible, and the challenging part is both the Issue Create and issue linking are slow operations...so some delay is needed.

Here is an example to try:

  • trigger: issue created
  • action: re-fetch issue (I recommend always adding this action after the Issue Created as that trigger can fire so quickly some data may not be available to the rule.  Re-fetch will slow down the rule a bit by reloading the data before proceeding.)
  • condition: I recommend adding conditions to decide if your rule should proceed as it is unlikely you want to do the field copy for all issues
  • action: lookup issues, using JQL to load your linked issue's data
  • smart value condition: check if the lookup found your single issue
    • first value: {{lookupIssues.size|0}}
    • condition: equals
    • second value: 1
  • action: edit issue, copying the fields needed from the lookup result
    • for example, {{lookupIssues.first.Story points}}

Please note: this rule will need to be multiple-project in scope to access the data in the linked issue's project.  A Jira site admin will need to create / configure such rules.

Kind regards,
Bill

Darren.Fairweather
Contributor
June 24, 2024

Hi Bill! Thanks for this. Youve kind of lost me at "lookup issues". what should be my JQL? Also where do i put the smart value conditions?

Thanks again for your help!

Darren.Fairweather
Contributor
June 24, 2024

This is where i am currently at.....

The lookup part, i think i need to ba able to reference the issue that is linked to the trigger issue but i am not sure how to do this.

 

Also the edit fields... i'm pretty sure this is the incorrect syntax.

 

Thanks again for help Bill

Screenshot 2024-06-24 at 10.11.41.png

0 votes
Nicolas Grossi
Banned
June 19, 2024
Darren.Fairweather
Contributor
June 19, 2024

Thanks Nicolas - Yeah i saw that. The problem is that i need my automation to run when "Issue is created"

Suggest an answer

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

Atlassian Community Events