Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

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.


Code Block
languagebash
titleSyntax
linenumberstrue
lastAssigneeInRole(projectRole) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
lastAssigneeInRole("Developers")


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

admin.istrator



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

Status
subtletrue
titletext

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



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



UI Text Box
sizemedium
typeinfo

Variant where you can additionally define a specific issue key.


Code Block
languagebash
titleSyntax
linenumberstrue
lastAssigneeInRole(projectRole, issueKey) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
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




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
projectRole

Status
subtletrue
titletext

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

Status
subtletrue
titletext

Text containing a valid issue key.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext


UI Text Box
typetip

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:



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_lastassigneeinrole" and space = currentSpace()


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the user name of the last assignee in a given project role.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.2.8

Label