/
isTeamLeader
isTeamLeader
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !
Availability
- This routine is available starting with SIL Engine™ 1.1.
- This routine is available for Jira server and cloud deployment options.
Syntax
isTeamLeader(project, username)
Description
Verifies if the specified user is a team leader on the project (if it is a component lead).Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
project key | String | Yes | Key of the selected project. |
user name | String | Yes | User name of user that is verified. |
Return type
boolean (true/false)
A "true" return value means that the specified user is component lead on at least one component of the specified project.
Example
//Team leaders of the current project are : TM1 and TM2 isTeamLeader(project, currentUser());
Returns "true" if the current user is TM1 or TM2 and "false" if the current user is other than TM1 or TM2.
See also
Related content
projectsForUser
projectsForUser
More like this
isUserInRole
isUserInRole
More like this
isTeamLeader
isTeamLeader
More like this
isTeamLeader
isTeamLeader
More like this
projectMembers
projectMembers
More like this
getTeamLeaders
getTeamLeaders
More like this