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

Status
subtletrue
titletrue
only if all users in the list, groups of the list, and in the roles of the list, are in the project role in the second argument, for the current project.

Output Statussubtletruetitleboolean UI Text Box
sizemedium
typeinfo

The This function checks if a user or group of users plays are members of a project role in the current project.

Multiple user names  Argument user_name can also be provided in a comma-separated list of user names, group names or role names. In that case, the function will return

Status
subtletrue
titletrue
only true only if all users in the list, groups of the list, and in the roles of the list, are in the given project role in the second argument, for the current project.


Code Block
languagebash
titleSyntax
linenumberstrue
isInRole(text user_nameusers, text role_nameprojectRole) #Output: Boolean


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
isInRole(%{00006issue.reporter}, "Testers")


The function returns 

Status
subtletrue
titletrue
if This example returns true if the Reporter is in project role Testers.%{00006} is field code for Reporter.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>users

Status
subtletrue
titledata type

Parameter description.

text

Text containing a valid user, group or project role name.
projectRole<parameter>

Status
subtletrue
title

data type
text

Text containing a valid project role nameParameter description.



UI Expand
titleOutput

The This function returns a

Status
subtletrue
titleboolean




UI Text Box
sizemedium
typeinfo

The function checks if a user or group of users plays a role in a certain project. Argument user_name can also be a comma-separated list of user names, group names or role names. In that case, the function will return 

Status
subtletrue
titletrue
only if all users in the list, groups of the list, and in the roles of the list, are in role in the second argument, for the project in the third argumentVariant where you can additionally define a specific project key.


Code Block
languagebash
titleSyntax
linenumberstrue
isInRole(text user_nameusers, text role_nameprojectRole, text project_keyprojectKey) #Output: Boolean


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
isInRole(%{00020system.currentUser}, "Developers", "CRM")


The function returns 

Status
subtletrue
titletrue
if the Current This example returns true if the current user is in project role and role Developers in the project with key "CRM".%{00020} is field code for Current user.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
<parameter>users

Status
subtletrue
titledata type

Parameter description.

text

Text containing a valid user, group or project role name.
projectRole<parameter>

Status
subtletrue
title

data type
text

Text containing a valid project role nameParameter description.
<parameter>projectKey

Status
subtletrue
title

data type
text

Text containing a valid project keyParameter description.



UI Expand
titleOutput

The This function returns a

Status
subtletrue
titleboolean



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_isinrole" 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

Checks whether users are a member of a specific project role.

Output

Status
subtletrue
titleboolean

Available since
Label