Availability
This routine is available since katl-commons 3.0.0
Syntax:
hasUserProperty(user, property)
Description:
Checks if the user has the given property set.Parameters:
Parameter name | Type | Required | Description |
---|---|---|---|
user | String | Yes | The username or userkey to check the property for |
property | String | yes | The key of the property to check |
Return type:
boolean
Returns true if the user has the given property set, false otherwise.
Example:
if(hasUserProperty("testuser", "phone")) { 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™)