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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello,
Here's my rule:
--Trigger - Issue #1 Created
--Edit fields on issue #1
--Create Issue #2 with a link to Issue #1 (trigger issue)
--Add Issue #2's ID to a Parameter <---- HOW DO I DO THIS???
--Add a comment to Issue #1 Saying "This ticket has been linked to {{createdTicket.id}} - Click here to open {{createdticket.URL}}".
How do it grab the context from the created ticket (Issue #2) in the automation's scope so I can use the data?
Thanks for any assistance.
Jamie
There is a smart value to refer to the most recently created issue or multiple if you create several: {{createdIssue}} and {{createdIssues}}
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--createdIssue--
And so you can use {{createdIssue.key}} for your scenario.
Also please note: when using the Issue Created trigger, that can fire faster than the data is available to the rule. So it is a good idea to add a Re-fetch Issue action after the trigger, and before any next steps. That will slow down the rule and reload the data before proceeding. So, something like this:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.