Versions Compared

Key

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


Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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

Page properties
hiddentrue
Short description

Returns the user names (not be confused with full user name) of those active users playing a project role with the name projectRoleName in the current issue's project.

Output Statussubtletruetitletext listAvailable since

Status
subtletrue
colourBlue
title2.2.8

UI Text Box
sizemedium
typeinfo

This function returns the user names (not be confused with full user name) of those active users playing a project role with the name projectRoleName in the a list of all user names of active users that are members of a given project role in the current issue's project.

Parameter projectRoleName Multiple project roles can be specified in a comma-separated list of project role names, returning the users that play any of the members of all specified project roles.


Code Block
languagebash
titleSyntax
linenumberstrue
usersInRole(string projectRoleNameprojectRole) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
toString(usersInRole("Developers"))


This example returns a comma-separated list of all members of the Developers project role in the current issue's project, e.g.:

admin.istrator, b.smith, a.grant

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxprojectRole

Status
subtletrue
titledata typetext

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



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list




UI Text Box
sizemedium
typeinfo

Variant where you can additionally define projectKeya specific project key.


Code Block
languagebash
titleSyntax
linenumberstrue
usersInRole(string projectRoleNameprojectRole, string projectKey) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
usersInRole("Developers", "CRM")


This example returns a comma-separated list of all members of the Developers project role in the CRM project, e.g.:

admin.istrator, b.smith, a.grant

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
xxxprojectRole

Status
subtletrue
titledata typetext

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

Status
subtletrue
titledata typetext

Text containing a valid project keyParameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list



Image AddedUse cases and examples

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


Page properties
hiddentrue
id1


Parser function cloud
Map(error)
NotesNot possible to get all the users that belongs to a project role.




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 members of a given project role.

Output

Status
subtletrue
titletext list

Available since

Status
subtletrue
colourBlue
title2.2.8

Label

Status
colourRed
titlestaff pick