I am currently working on custom email notifications via post functions. In my notifications I have simple Groovy scripts that show different fields for the Issues.
What I am trying to do is show the current status of the Issue on the email notification. To show the status I have:
This works correctly when I create the Issue. The status is shown in the email is correct. However, when I transition the Issue, the status on the next email notification does not change. The status does update on the second transition, and throughout the rest of the workflow. Therefore the current status in the email notification is always one status behind where the Issue currently is.
Does anyone know a work around for this? Is there a way I can manipulate the Groovy script to add a +1 to the status? Any help would be much appreciated.
Thanks in advance.
Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...
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