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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Survey Feedback Link

Hi Experts

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

 

Please suggest if I can get a Survey link in my Custom Email.

2 comments

Dear Jyoti,

Have you found a solution to your problem? I am facing the same issue. When the notification is activated, the token is generated and I can retrieve it. However, if the notification is deactivated, the token is never generated. 

Best regards,

Alban

Hi!

I found a way to generate this link on my own. I do not think that it is the best way to do this, but it solves the problem.

String jsonToken = "{\"token\":\"%s\",\"issueID\":%s,\"userKey\":\"%s\"}";
String token = DefaultSecureTokenGenerator.getInstance().generateToken();
EntityPropertyService.PropertyInput propertyInput = new EntityPropertyService.PropertyInput(String.format(jsonToken, token, issue.getId().toString(), issue.getReporter().getKey()), "feedback.token.key");
EntityPropertyService.SetPropertyValidationResult validationResult = issuePropertyService.validateSetProperty(issue.getReporter(), issue.getId(), propertyInput);
this.issuePropertyService.setProperty(issue.getReporter(), validationResult);

issuePropertyService you can get in constructor or by ComponentAccessor

After this you can use this token in link

Best regards,

Yury

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

337 views 5 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you