Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns a text list of all project roles a given user belongs to in the current project.

Multiple users can be specified as a comma-separated list of user names, group names and project role names, returning a list of project roles, any of the returned users is a member of.


Code Block
languagebash
titleSyntax
linenumberstrue
rolesUserPlays(users) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
rolesUserPlays("b.smith")


This example returns all project roles in the current project for b.smith:
Administrators, Testers, Staff-internal



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
users

Status
subtletrue
titletext

Text containing a valid user, group or project role name.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list




UI Text Box
sizemedium
typeinfo
Variant where you can additionally define a specific project key.


Code Block
languagebash
titleSyntax
linenumberstrue
rolesUserPlays(users, projectKey) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
rolesUserPlays("b.smith","CRM")


This example returns all project roles in the CRM project for b.smith:
Testers, Staff-internal



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
users

Status
subtletrue
titletext

Text containing a valid user, group or project role name.
projectKey

Status
subtletrue
titletext

Text containing a valid project key.



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_rolesuserplays" and space = currentSpace()


Page properties
hiddentrue


Short description

Returns all project roles for given users.

Output

Status
subtletrue
titletext list

Available since

Status
subtletrue
colourBlue
title2.2.20

Label




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