This function returns the user name of the last user who had the current issue assigned, and who is in a given project role within the current issue's project.

Null will be returned if the current issue was never assigned to a user in the project role.

Syntax
lastAssigneeInRole(projectRole) #Output: Text
Examples
Parser expressionDescription
lastAssigneeInRole("Developers")

This example returns the user from the project role Developers, who had last been assigned the issue, e.g.

admin.istrator

Additional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

TEXT

Text containing a valid project role name. Multiple project roles can be specified in a comma-separated list of project role names.
Output

This function returns a TEXT

Variant where you can additionally define a specific issue key.

Syntax
lastAssigneeInRole(projectRole, issueKey) #Output: Text
Examples
Parser expressionDescription
lastAssigneeInRole("Developers", "CRM-1")

This example returns the user among all users of the Developers project role who was the last assignee of the issue CRM-1, e.g.:

admin.istrator


Additional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

TEXT

Text containing a valid project role name. Multiple project roles can be specified in a comma-separated list of project role names.
issueKey

TEXT

Text containing a valid issue key.
Output

This function returns a TEXT

This function is useful if you want to automatically assign issues to the last user who was actively working on an issue e.g. before the issue was re-assigned for testing:


Use cases and examples