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.
Good afternoon, I have a question if it is possible through automation for Jira to create an automation where the same replica the comment made in the parent incident. This replication would be done as a matter of links, called daughters
automation happens when the status changes from in progress to waiting for analysis, with that it does some checks and creates a variable pulling the value {{issue.comments.last.body}} and there is a branch for the linked issue where there is an action to comment on this issue.
{{#issue.comments}}
Comment by : {{author.displayName}}
{{ultimoComentario}}
{{/}}
however , when creating the comment to the linked issue, it is not attaching the value of the created variable {{ultimoComentario}}
Hello @Mayki dos Santos Gonçalves
Please show us the Audit Log for the execution of the rule where the comment is not created correctly.
Please show us the details for the step where you are creating the variable.
Consider adding Log actions to print in the Audit Log the value of the variable and the smart value you are trying to assign to the variable.
Hello @Trudy Claspill
When starting the automation, it ends successfully but it does not bring the result I expected, I believe I am doing it wrong. I can say that I am a beginner as a project admin.
But I also don't know if i'm following the correct path to create a varuabke abd attach a value to it.
I believed that because it was in a single automation it single automation it was not possible to create the variable, attach a value and then comment.
With that I divided the automation but the effect was the same, without success
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the Add Comment action is this what you have entered?
{{#issue.comments}}
Comment by : {{author.displayName}}
{{ultimoComentario}}
{{/}}
If so, you don't need the first or last lines.
Also, what are you trying to do with this line?
Comment by : {{author.displayName}}
Are you trying to include the name of the original Comment author in the body of the new comment?
You are using the correct method to create a variable, but you actually don't need to create a variable at all. You can reference the trigger issue's last comment directly this way:
Comment by : {{triggerIssue.comments.last.author.displayName}}
{{triggerIssue.comments.last.body}}
Using the "issue" object will reference the issue currently in context. Within a branch that would be the issue you want to act on in that branch. If you are in a branch and you want to reference something from the issue that triggered the rule you can use the "triggerIssue" object.
Also, using this syntax indicates that you want to iterate over all items in the "issue.comments" list.
{{#issue.comments}}
...
{{/}}
You would use something like that if you wanted to add all the comments into one new comment body:
{{#triggerIssue.comments}}
Comment by : {{author.displayName}}
{{body}}
---
{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to show wo commented because the linked issues will show the "Automation For Jira" comment, so with displayName we will know who commented on the parent issue.
Thank you very much for the instructions, i changed it a little and arrived at the desired one.
Comment by : {{triggerIssue.comments.last.author.displayName}}
{{triggerIssue.comments.last.body}}
Now I comment on issue JIR-41 and the comment is replicated on linked Issue JIR-42
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.