Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

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

Multiple user names can also be provided in a comma-separated list of user names, group names or role names. In that case, the function will return 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 for the current project.


Code Block
languagebash
titleSyntax
linenumberstrue
isInRole(users, projectRole) #Output: Boolean


UI Expand
titleExamples


Parser expressionDescription


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


This example returns true if the Reporter is in project role Testers.




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.
projectRole

Status
subtletrue
titletext

Text containing a valid project role name.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titleboolean




UI Text Box
sizemedium
typeinfo

Variant where you can additionally define a specific project key.


Code Block
languagebash
titleSyntax
linenumberstrue
isInRole(users, projectRole, projectKey) #Output: Boolean


UI Expand
titleExamples


Parser expressionDescription


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


This example returns true if the current user is in project role Developers in the project with key "CRM".




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.
projectRole

Status
subtletrue
titletext

Text containing a valid project role name.
projectKey

Status
subtletrue
titletext

Text containing a valid project key.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titleboolean



Use 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