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

Compare with Current View Page History

« Previous Version 6 Next »

This function returns the user names of users matching a given email address.

In case that only one user is expected, the function first() can be used to extract a text with the user name.

Syntax
usersWithEmail(emailAddress) #Output: Text list
Examples
Parser expressionDescription
usersWithEmail("b.smith@test.com"))

This example returns the username for the email address b.smith@test.com, e.g.:

b.smith

toString(textOnStringList(toStringList(%{issue.cf10400}, ", "), toString(usersWithEmail(^%))))

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


Steps in this example:

  1. Take all individual values found in the custom field and convert them into a comma separated text list with toStringList()
  2. Perform a transformation on each seed value with textOnStringList()
  3. The transformation itself it to convert the email address for each value in the list (^) into a valid user name
  4. Convert the output into a simple text with toString()
Additional information

Parameters used in this function

ParameterInput (data type)Description
emailAddress

TEXT LIST

Text containing a valid email address.
Output

This function returns a TEXT LIST