Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation: Use variable in comment

Warren Groenewald November 23, 2022

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.

2 answers

0 votes
Hamza Abbas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2024

Hy Brother….I Need Some Help…..Can You Help Me….??

 

0 votes
Paul Wiggers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2022

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. 

Warren Groenewald November 23, 2022

Thank you, this would be ideal.

I'm not successful though, looking at the automation log I see a success with the following:Screenshot 2022-11-23 at 15.10.39.png

 

Looking at my ticket I have the below comment:

Screenshot 2022-11-23 at 15.11.26.png

Paul Wiggers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events