In Service Desk I am trying to setup an automation on ticket creation, that if a specific condition is met then a comment is automatically added to the ticket.
This all works fine but I am wanting to specifically @ the issue creator in the comment.
I have done automations which trigger webhooks where I have used variables like: ${issue.description}. I don't however see any documentation that indicates whether variables are possible in comment automations.
Hello @Warren Groenewald
It is certainly possible to use variables in comments. However, an @comment isn't
Jira is calling those variables, Smart Values and you can check out all the available fields in this article: Jira Smart Values
An example that I am currently using on my instance is:
==========================
{{assignee.displayName}},
The status of the linked issue has been changed to *{{triggerissue.status.name}}*. Please take a look and inform the customer if needed.
========================
This will trigger a notification for the assignee even though it is an internal comment.
Is this what you are looking for? Please let me know if you have any other questions.
Thank you, this would be ideal.
I'm not successful though, looking at the automation log I see a success with the following:
Looking at my ticket I have the below comment:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like you are on the server version and not on the cloud version. This is my mistake. I have taken a look at the server documentation and the values should be:
{{reporter.displayName}}
{{issue.key}} should work on server as well though.
I am not very familiar with the server version but perhaps it has to do with the version you are currently on. What is your server version?
Here you can find the values for server: Server Smart Values
Make sure to read the related documents as well to find the keys you need for other data points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.