Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Then set a name, make the type updated (as issue resolutions will be 'in' the Issue Updated event), and pick a theme, e.g. Jira Sytem):

...

...

Use the Preview Context to understand how to access data

...

Expanded view

Eg, when working over $fields.comment.comments in a loop, each comments data can then be accessed as $currentComment.author.displayName.asText().

...

Here is an example template:

Code Block
#setWorkflowTransition($context)
 
#if ($!workflowTransition)
 ## custom workflow occurred
 #if ($workflowTransition == 6)
   #renderIssueResolved($context)
 #end
#else
 ## do the default
#jemhBodyDelimiter()
#set ($fields = $context.issue.fields)
#if ($context.user) $context.user.displayName.asText()#else Anonymous#end updated an issue:  $context.issue.fields.project.name.asText() / $context.issue.key.asText() #jemhIncludeUserRole()
Issue Updated - $fields.summary.asText()
$jemhUtils.setNotify()
Issue Type:     $fields.issuetype.name.asText()
Status:         $fields.status.name.asText()
Assignee:       $fields.assignee.displayName.asText()
Created:        $fields.created.asText()
Priority:       $fields.priority.name.asText()
Reporter:       $fields.reporter.displayName.asText()
#if ($!fields.security())
Security Level: $fields.security.name.asText()
#end
#foreach( $comment in $context.comments )
- $comment.body.asText())
#end
 
#end

...