Warning |
---|
Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here ! |
Warning |
---|
The availability of the users personal data may be impacted by the recent changes by Atlassian in order to meet GDPR compliance. See the following for more information: |
Info | ||
---|---|---|
| ||
|
Syntax
...
getUserProperty(user, property)
Description
...
Excerpt |
---|
Retrieves properties of users created and maintained in Jira (user properties). |
...
Cloud Description
Excerpt |
---|
Retrieves properties of users only accessible through requests. This set of user properties have nothing to do with the user propertiescreated and maintained in Jira (they can't even be accessed through requests). |
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
user | String | Yes | The username Username or userkey to get the property for. |
property | String | yes | Key of the property.The key |
Cloud Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
user | String | Yes | The userkey of the user. |
property | String | yes | Key of the property. |
Return type
...
string
Returns the value of the specified property. If the user does not have the property, it will return an empty string.
Example
...
Code Block |
---|
return getUserProperty("testuser", "phone"); |
Notes
...
Note |
---|
The look-up is first made after the userkey, then after the username. |
Cloud Notes
Note |
---|
On cloud the look-up is made only after the userkey. |
See
...
also
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|