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
Doesn't work
How can I load an issue's key into a variable?
You can use underlyingissue this gives you the the current issue object and it's properties.
underlyingIssue.key
Would it be possible for you to provide a generic example of this? Which import do I need? What type of variable should I declare? A working example would be extremely helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.