Versions Compared

Key

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

This routine is available starting with katl-commons 1.0.

This routine is available for Jira server and cloud deployment options. 
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

projectMembers(project)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Returns a list with all the user keys of the users who have a role in the specified project.

Returns a list with all the user keys of the users who have a role in the specified project.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

project key

String

Yes

Key of the project that is selected.

Return

...

Type

string String []

The return value is a list of user keys for the users who have a role on the specified project.

...

Code Block
//The current project key = PRJ1
//The users from the current project: Admin, Dev1, Dev2, Dev3, Test1, Test2, PM, BA1
print("The members of the project " + project + " are:");
print(projectMembers(project));

Result: Returns the following text: The members of the project PRJ1 are: Admin, Dev1, Dev2, Dev3, Test1, Test2, PM, BA1. Check the values on the next row beginning with <StringPrintRoutine>.
 

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "project_routine" and space = currentSpace ( )
labelsprojectarray_routineroutines