1. I am writing a server-side script in Behaviors for one of my custom fields.
2. The script sends an email to a user
3. The script works in all ways except:
While all my variables get injected into the body of the email, the issue key shows as "null".
How do I get Jira to incorporate the issue key into a variable that I can use in my script.
getIssue.key() doesn't work
getfieldbyname("key") doesn't work
def curKey = getFieldByName("Key")
def issue = ComponentAccessor.getIssueManager().getIssueObject("curKey")
Doesn't work
How can I load an issue's key into a variable?