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
Community Members
Community Events
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:


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


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


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){{issue.key}}/properties/feedback.token.key


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


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)


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


Then I send the email:{{issue.key}}/feedback?token={{webResponse.body.value.token}}


Best Regards,


Hi Jyoti,

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

Best regards,


Suggest an answer

Log in or Sign up to answer

Atlassian Community Events