Automation || Split function - Use case example
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
Split(" ") is a type of smart value that can be utilized in automation rules, depending on the required scenario. You can learn more about the split function at this link: Automation smart values - text fields
Tip: If your automation scenario requires different string manipulation or additional delimiters, refer to the article above for the complete list of text functions.
Solution
Suppose you have a situation where you need to extract the values of username or domain from the user email address (user@domain.com) and save them in a text field for future use. In such a case, the user information has to be obtained from the reporter field and then the split function can be used.
Extract the username (the portion before @): {{reporter.emailAddress.split("@").get(0)}}
Extract the domain (the portion after @): {{reporter.emailAddress.split("@").get(1)}}
Below is screenshot of different usage of split() and automation output:


Was this helpful?