This documentation is for Insight for Server/Data Center only.

In an scripted Insight workflow function you have some groovy variables predefined to use:


VariableDescription
issueThe issue to be transitioned
originalIssue

The original issue. You may check conditions like if the assignee is changed by:

issue.assignee != originalIssue.assignee
currentUser

The current JIRA User. You may check if the reporter is the current user by:

currentUser == issue.reporter

log

A log framework. You may log to atlassian-jira.log by:

log.warn("This is a warning!");


Examples

Read about groovy examples here