Send the comment on the rating for the assignee's email

Hi,

 

After an issue is closed the user will be prompt to rate the person that helped him/her on the ticket.

I could not find any automation option to send the comment on the rating to the assignee's e-mail.


To be more specific:

The Agent closes an issue -> the user rates and add a comment -> my goal is to send an e-mail to the agent with the rating and the comment.

 

1 answer

Hi,

When the user rates a ticket jira updates the satisfaction field.  So you can have an Automation for Jira rule trigger on changes to that field:

image.png

You can then send an email.  In cloud you can access it using the smart value {{issue.properties.service-request-feedback-comment}}

image.png

 

For server, we currently do not support the satisfaction fields.  We are tracking this here: https://codebarrel.atlassian.net/browse/AUT-769

Cheers,
Brydie

Hi @Brydie McCoy , thanks for the reply.

Unfortunately I was not able to retrieve the comment value using the key,{{issue.properties.service-request-feedback-comment}} as suggested.
The key to retrieve the ratting value that you have suggested did work, but I managed to retrieve it by using the key 
{{issue.customfield_11408.rating}}.

How can I see all the values that are available for me to use? I am using this "https://your-domain.atlassian.net/rest/api/3/issue/DEMO-1" to check keys and values that are available to use, and that is where I got the {{issue.customfield_11408.rating}} from, but for some reason the way to retrieve the rating value {{issue.satisfaction.rating}} works as well, even though I could not find this key value pair on the JSON(https://your-domain.atlassian.net/rest/api/3/issue/DEMO-1).

My 2 questions would be:

  - Do you know why I can't retrieve the comment value using the key you have suggested?
  - is there documentation that I could see all the available keys?

Thanks in advance.

Hi.

We do have some documentation on Available smart values however, it is more of a guide than a complete list.   In general we have pulled the issue json (as you discovered) but then we add a few niceties on top.  Like being able to reference a custom field by name rather than the id.  And as people have requested new data we have made that available specifically.

One such addition is issue properties.  You can see these via "https://your-domain.atlassian.net/rest/api/3/issue/DEMO-1/properties".  This lists all the available properties.  You can then hit "https://your-domain.atlassian.net/rest/api/3/issue/DEMO-1/properties/<property-key>" to see the value.  If an issue has a satisfaction comment via Service Desk, I'm seeing added as an issue property with the key "service-request-feedback-comment". 

As for why thats not working for you, I'm not 100% sure.   It might be worth raising a support ticket with us and provide screenshots of your rule and audit log and we can debug further.

Cheers,
Brydie

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page

                                                      &nbsp...

277 views 0 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you