...
Code Block |
---|
#if ($!issue) WE ARE IN ISSUE COMMENTING MODE #else WE ARE IN ISSUE CREATING MODE #end |
Getting the Application User associated with the sender
Code Block |
---|
#set ($fromUser = $jemhUtils.getUserByEmail($fromAddress.getAddress()))
#if ($!fromUser) Sender User [name=$fromUser.getName(), key=$fromUser.getKey(), directoryId=$fromUser.getDirectoryId(), displayName=$fromUser.getDisplayName()]#else No User Found for $fromAddr #end |
Context
The Context is available for review at edit time, you can use it to link off to Javadoc for Jira API objects as needed - our jemhUtils class is also available, exposing things like the mailbox catchEmailAddress.
context variable | Data Type | Description |
---|---|---|
message | the raw message object | |
subject | java.lang.String | the Subject text |
jemhUtils | JEMH Helper class | |
| java.lang.String | The Mailbox catchEmailAddress |
fromAddress | use $fromAddress.getAddress() to the user@dom.com address (no quotes), and $fromAddress.getPersonal() to get the personal part. | |
| The underlying user object associated with the sender address (first one found!) | |
toAddresses | the to: addressees | |
ccAddresses | the cc: addressees | |
bccAddresses | the bcc: addressees (don't expect many here!) | |
allAddresses | all addressees | |
body | java.lang.String | the post processed (html > markup) content – :warning: since JEMH 2.7.36 for Jira 7.10.x |
...