I want send an email when the value of a custom field changes. I have created a Script Listener to do this on Issue Updated but want to include the old value in the e-mail. How do I do this?
Currently I have:
Condition: changeItems.any {it.get('field')=='Numeric Priority'}
E-Mail Template:
Issue: $issue - ${issue.summary}
New Numeric Priority: <% out << issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("Numeric Priority")) %>
User: $currentUser.name
Description: ${issue.description}
I want to add Old Numeric Priority.
Thanks