You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to copy some data (description, attachment, and a custom field) from a specific previous task [ABC-123], into a new task that is created, FYI both of these tasks are under the same epic [ABC-001].
Therefore, I am trying to trigger the automation to run when an issue is created under that epic, to copy data into the new task. Also, I am trying to utilize 'Edit Issue' actions rather than cloning issues, as there is other data from that task I do not need.
My current setup is:
Hi @Simon Galiazzo -- Welcome to the Atlassian Community!
Have you considered using Clone Issue and clearing the fields you do not need? That will make copying the attachment easier.
Back to your original question...
To access that other issue as a source for copying to the new issues, try using JQL to find it and the Lookup Issues action: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues
And as an FYI, when you use the Issue Created trigger, I recommend always following that with a Re-fetch Issue action. That trigger can fire so quickly that the data may not yet be available, leading to conditions and actions not working as expected.
Thanks @Bill Sheboy !
I had a play around again and managed to do what I needed to with a combination of setting the fields with data and copying some fields from the Epic. But thanks for your suggestion and the note about re-fetching issue data, that definitely helped and will keep that in mind for future rules using that trigger as well.