Hi,
I want to add throw an email to a particular user when someone changes the custom field Business Priority(Customfield_11406). I can almost do it.
My problem is that I cant fetch the values of this custom field.
I want to display the old and new value of the Buisness priority Field. I read several posts but seems none works for me.
My condition is : changeItems.any {it.get('field')=='Business Priority'}
Email Template is:
Summary = $issue.summary
Description: ${issue.description}
The priority of $issue.issueType.name $issue.key has been changedto $issue.getCustomFieldValue("customfield_11406")
Old value :
Please review if necessary.
As soon as I add $issue.getCustomFieldValue("customfield_11406") , it throws an error saying
No such property: getCustomFieldValue for class: com.atlassian.jira.issue.IssueImpl