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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Automation: Copy from Issue

Hello experts, I have an automation problem that I need help with. On Create or Update, I would like to copy fields from a source issue to the trigger issue. The source issue and trigger issue are in the same Project, but different issuetypes.

Project = TPR
Issuetype = Unit and CBU

Issuetype Unit and CBU have something in common. Unit Issue Key is equal to a custom field in CBU.

Example: Issuetype Unit and CBU have a custom field called Code. In issuetype Unit, Code is populated. I would like to have issuetype CBU look this value up and write it to it's Code field.... Kind of syncing the data between Unit and CBU when CBU is created or updated.

Here is what I have now to maybe explain a little more;

When: Rule is triggered on
-Issue Created
-Issue Updated

project=TPR AND issuetype = Unit AND key = {{issue.customfield_123.key}}

Then: Edit Issue fields
Code - Copy from trigger issue

Customfield_123 is only in CBU issuetype, so this will only be successful in that type.

Copy from trigger issue isn't right because I want it to copy from the JQL search and not the trigger issue (BTW, it will only yield 1 result because it is the key).

Is there a way to do this in Automation? I know I can do this in Scriptrunner, but I am trying to keep it kind of clean for future editors.

1 answer

1 accepted

1 vote
Answer accepted

Hi @Todd Palermo

Correct me if I'm wrong: Upon creation or update of a CBU issue type, you want to search for the Unit issue type, acquire certain fields which you want to copy back on the trigger issue (CBU issue type), right?

Hi @Alex Koxaras Yes! That is right. Is there such a way?

Hi @Alex Koxaras , A very clever member of our team has solved the case today. A little competition on solutions are always helpful. We already had an automation that when the 1 Unit was updated, it would then update all CBU issues that were common. Our solution was to change the Then automation to Then: Publish the issue event Issue Updated. Thanks for your assistance with this one!!

Like Alex Koxaras likes this

I'm glad you solved this one! Very nice!

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you