This code snippet fetches the user who triggered the current transition.
This snippet uses the currentUser
built-in variable to fetch the ApplicationUser object representing the user who triggered the current transition.
currentUser |
The output of this code snippet is an ApplicationUser object representing the current user which you could use in:
A Groovy template, for example to:
Conditionally execute a Post-function/Condition/Validator or Unlink issues - Eg: Check that the current user is the Reporter of the issue
issue.get("reporter") == currentUser |
A Groovy template, for example to:
Subject/HTML body/Text body of Email issue post-function
Hi <%=issue.get("reporter").getName()%>. Your issue is being handled by <%= currentUser.getDisplayName() %> |
Write a JQL search expression in the Link issues to current issue post-function - Eg: Link issues assigned to the current user
assignee = <%= currentUser.getName() %> |
|