This function returns the user names of users matching a given email address.
Within Jira it is possible that multiple users have the same email address. In this case a text list with all related user names will be returned. If only one user is excepted though, the function first() can be used.
This function is case insensitive.
usersWithEmail(emailAddress) #Output: Text list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns a list with all usernames for the email address b.smith@test.com, e.g.: [b.smith] |
|
Bash
|
This example returns the same usernames like in the above example, since the function is case insensitive. |
|
Bash
|
This example returns a list with all usernames for the email address j.doe@company.com, e.g.: [j.doe, john-doe, john.doe] |
|
Bash
|
This example returns only the first username with the given email address, e.g.: j.doe |
|
Bash
|
This example returns the user names for all email addresses, found in a custom text field (with ID 10400) that stores email addresses, e.g.: b.smith, a.grant, d.conner |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
emailAddress |
text list |
Text containing a valid email address. |
Output
This function returns a text list
You might want to wrap the method with the toString() function so that the result can be parsed to a text field.
📚 Use cases and examples
| Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
|---|