Versions Compared

Key

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

Syntax

hasUserProperty(userNameOrKey, property)

...

Parameter name

Type

Required

Description

userNameOrKey

stringYesUser name or key of a user to check the property for.
propertystringYesKey of the property to check.

Return type

boolean (true/false)

Returns true if the user has the given property set and false otherwise.

Example

Example 1

Code Block
if (hasUserProperty("jdoe", "phone")) {
    return getUserProperty("jdoe", "phone");
}

Returns property "phone" of user "jdoe" if the user has it set.

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "ps_conf"
labelsjira_comment_routine