Add workflow button to email notification

Peter Eisenschmidt March 1, 2016

Hello there!

My notification scheme is configured to send emails when a change on an issue occurs. The email is sent and everything works well.
But I would like to have links to my workflow buttons inside the mail. Currently you need to click on the mail and then click on the workflow button to proceed to change the status. Can I add a link to the workflow-steps inside the email?

Regards
Peter 

3 answers

1 accepted

0 votes
Answer accepted
Boris Georgiev _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2016

Maybe there is a better solution out there, but one I can think of is to create a REST endpoint (using Script Runner ) for example, which transitions the issue via GET request taking the issue key and transition id in the URL parameters, so if you send a custom email with a generated link which includes issue key and transition id to that REST endpoint it will transition the issue.

https://scriptrunner.adaptavist.com/latest/jira/rest-endpoints.html

To make the user experience better you can return HTTP 303 (See Other) from the REST endpoint, so the user is redirected to the issue view screen after the transition is executed.

0 votes
Peter Eisenschmidt March 1, 2016

@Boris Georgiev [Botron] - Yes, but I could remove the screen, if that would be a problem.

0 votes
Boris Georgiev _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 1, 2016

Is there a screen associated with the transition you want to execute ?

Suggest an answer

Log in or Sign up to answer