User name
This function returns the value of a user property for a given user.
If the user doesn't have the property set, en empty text ("") will be returned.
userProperty(propertyName, userName) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the value for the user property department for the user b.smith, e.g.: HR |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Text containing a valid user property. |
|
|
text |
Text containing a valid user name. |
Output
This function returns a text
User names
Variant for multiple users.
userProperty(propertyName, userNames) #Output: Text list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the value for the user property department for all watchers of the current issue, e.g.: HR, Finance, Dev |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Text containing a valid user property. |
|
|
text list |
Comma-separated list of user names. |
Output
This function returns a text list
📚 Use cases and examples
| Use case | Workflow function | Parser functions |
|---|---|---|
| Escalate issue to assignee's supervisor |