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.
An automation clones an issue from a JSM project to a Jira Software project that is selected from a field entered by the user, and adds the new issue to a sprint. The automation also adds the new issue to sprints in various projects depending on conditions, The automation is in the JSM project, but could be changed to global.
Can an notification component be added to each condition of the automation, sending an email to the assignee of the new Jira Software project? If so, I haven't been able to figure out how.
Alternatively, can a global automation be created in Jira Software, with the trigger "Issue created" or "Value changes for Sprint", that sends the emails?
Hello @Phil Bustin
Whenever asking for help concerning an existing Automation Rule it is vital that you share the full rule with us. We cannot advise you on the specifics of modifying a rule without seeing the details of the rule.
There is a Send Email action. You should be able to use it in your rule.
Thank you. When I sent an email (I should have mentioned), the {{issue.key}} was that of the JSM issue, not the cloned issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If your rule is not doing what you want it to do you will need to post a copy of your rule for us to review. Often incorrect results have a lot to do with the context under which a step is executing. We can't advise you without seeing the details of the rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It was the end of the workday, so I deferred uploading a screenshot of the rule until now:
Automation
Email received, containing the JSM issue key instead of the just-created Jira Software issue key
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see the connection between the rule you posted and the scenario you described about an automation that runs against a JSM project and uses the Clone Issue action to make copies of the JSM issue in other projects.
For the rule you posted the only issue within the context of the rule is the issue that triggered it, which is an issue that had its status changed Therefore the issue information available through the {{issue}} smart value will be the information of the trigger issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I apologize. Here are the current automation and resulting email. BTW, I came to the conclusion that although it may be possible with branching to send the desired email in this automation, what would likely work is a new automation with an issue created trigger.
Automation
Email received
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the context of the rule you have posted {{issue}} is still referencing the issue that triggered the rule. {{issue}} will change context when you go into a branch.
If you want to reference an issue created within a rule, you can use the {{createdIssue}} smart value to reference the last issue created in the rule. You may want to add a Re-Fetch Issue action before attempting to use the {{createdIssue}} smart value to ensure your rule has current data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So you're confirming that I could try a branch in order to send an email to the Assignee of the created issue?
And if I did not use a branch, but used {{createdIssue}} to reference the last issue created, how would I address the email to the Assignee of the created issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{{createdIssue}} is an object just like {{issue}}. You can access the same attributes in both. If the Assignee field has been set during the Clone step, then you can reference that field with {{createdIssue.assignee}}.
You don't need to use a branch to do that. I'm unclear what problem you would be trying to solve by using a branch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No need to use a branch, with the answer you have provided. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy to help.
If your question has been answered and your problem solved, please consider marking the Answer as Accepted to help other users find posts with validated solutions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thought I had done that. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still working on this, but it would appear that even though the assignee was set by me to myself in the Move to Dev Team transition screen, assignee is apparently unknown to the email component, because it causes the error below. Assignee is not among the fields modified in the clone detail.
Automation
Automation email detail
Automation email error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use a Log action to print the {{createdIssue.assignee}} value to the Audit log to see what the actual value is. Typically the assignee attribute returns the user's unique account ID, not their email address. To get their associated email address you need to reference another attribute. Refer to this documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The only log action I see is "log work", that gets an error:
LOG WORK
Error trying to log work against an issue
You can not edit the issue as it is in a non-editable workflow state., Worklog must not be null.
I got the same empty assignee error using {{createdissue.assignee.displayName}}, that I found in the Jira Smart Values - Users link you provided.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should have two actions that start with the word "Log" - "Log" and "Log Work"
You received the error because the smart value you provided (displayName) is not populated with an email address. For the To field of the Send Email action you need to be providing an email address. Use the emailAddress attribute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not at my best today. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's working. Thank you!
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.