Skip to end of banner
Go to start of banner

setUserProperty

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

Availability

This routine is available starting with katl-commons 2.0.7 for Jira 5.x or katl-commons 1.1.14 for Jira 4.3.x/4.4.x.

Syntax

setUserProperty(user, propertyKey, propertyValue)

Description

Sets properties of users.

If the property does not exist, it will be created.

Parameters

Parameter name

Type

Required

Description

user

String

Yes

Username or userkey to get the property for

propertyKeyStringYesKey of the property
propertyValueStringYesValue to set for the property

Return type

none

The returned value has no meaning.

Example

setUserProperty("testuser", "phone", "987 654 3210");

Notes

The look-up is first made after the userkey, then after the username.

See also

  • No labels