Versions Compared

Key

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

Syntax

hasUserProperty(userNameOrKey, property)

Description

Excerpt

 Checks Checks if the user has the given property set.

Parameters

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 the "phone" property of user the "jdoe" user if the user has it setspecified.

See also

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