Availability
This routine is available since katl-commons 2.0.7 (for JIRA 5.x) or katl-commons 1.1.14 (for JIRA 4.3.x and 4.4.x)
Syntax:
getUserProperty(user, property)
Description:
Retrieves properties of users.Parameters:
Parameter name | Type | Required | Description |
---|---|---|---|
user | String | Yes | The username or userkey to get the property for |
property | String | yes | The key of the property. |
Return type:
string
Returns the value of the specified property. If the user does not have the property, it will return an empty string.
Example:
return getUserProperty("testuser", "phone");
Notes:
The look-up is first made after the userkey, then after the username.
See Also:
-
-
addIssuesToSprint (Power Scripts for Jira Cloud)
-
userHasAccessToComment (Power Scripts for Jira Cloud)
-
usersInGroups (Power Scripts for Jira Cloud)
-
-
-
-
-
-
-
-
userInGroup (Simple Issue Language™)
-
-
-
-
-
-
-
-
-
isUserInRole (Simple Issue Language™)
-
isAnyUserAuthenticated (Simple Issue Language™)
-
-
-
userHasAccessToComment (Simple Issue Language™)
-
-
-
-
-
admRemoveUserFromProjectRole (Simple Issue Language™)
-
-
-
admAddUserToProjectRole (Simple Issue Language™)
-
-
-
-
-
-
-
-
userHasSoftwareAccess (Simple Issue Language™)
-
userHasServiceDeskAccess (Simple Issue Language™)
-
userHasCoreAccess (Simple Issue Language™)