...
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | hasUserProperty(userNameOrKey, property) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Checks if the user has the given property set. |
Checks if the user has the given property set.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
userNameOrKey | |
...
String | Yes | User name or key of a user to check the property for. | property |
|
...
String | Yes | Key of the property to check. |
|
Return
...
Type
boolean Boolean (true/false)
Returns true if the user has the given property set and false otherwise.
Example
Code Block |
---|
|
if (hasUserProperty("jdoe", "phone")) {
return getUserProperty("jdoe", "phone");
} |
Returns the "phone" property of the "jdoe" user if the user has it specified.
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "psuser_conf"routines" and space = currentSpace ( ) |
---|
labels | jiraarray_comment_routineroutines |
---|
|