Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,806
Community Members
 
Community Events
168
Community Groups

Survey Feedback Link

I need to turn off JIRA notification scheme and use my own Custom Email for sending updates on Issues - I am sending an email to Reporter when Issue is resolved and need to include Survey link in the Resolution email - I was trying to use below:

https://serverurl/servicedesk/customer/portal/3/IT-XXX/feedback?

But this doesn't seem to work - do we need token that is sent in JIRA resolution email.

https://serverurl/servicedesk/customer/portal/3/IT-XXX/feedback?token=f5b6c9ab3f136ed4b3653ee2a4f476320a5af9bf&rating=3

I know I need to use Script in JIRA Post function to set a Custom field using JIRA Rest API for token - /rest/api/2/issue/{issueIdOrKey}/properties/feedback.token.key

Does anyone has Sample script to Call Rest API and set Custom field with response value. Please help.

 

2 answers

Hi,

Perhaps the following solution can help you:

I solved that by 1st checking if the ticket already has a token generated because I realized sometimes that token in not created right after the ticket was moved to Resolved/Closed (or Resolution = Done)

https://company.atlassian.net/rest/api/2/issue/{{issue.key}}/properties/feedback.token.key

1.jpg

After that, I check if the web response is empty. If so, it means you need to generate the token in order to compose the link that will be sent to the user and allow him/her to respond to CSAT

2.jpg

Finally, I add another Web Request to generate the token. Here there is a risk: I'm not generating random tokens (probably more secure to avoid smart people acting like a user and responding to the survey - anyway, in my scenario this is not a concern)

3.jpg

I run again a Web Request to get the token that has just been generated

1.jpg

Then I send the email:

https://luxclusif.atlassian.net/servicedesk/customer/portal/15/{{issue.key}}/feedback?token={{webResponse.body.value.token}}

4.jpg

Best Regards,

Anderson.

Hi Jyoti,

I am facing a similar issue. Have you found a solution to your problem? Thank you.

Best regards,

Alban 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events