Can somebody help me with the automation smart value to create 2 variables for a user with a DisplayName of "Jones, Bob" where variable 1 is Bob's first name, and variable 2 is Bob's last name, "Jones"
Here's what I have so far
{{issue.assignee.displayName.split(",").second}} - this returns no results
{{issue.assignee.displayName.split(",").first}} - this returns Jones
Hey @Mathew Lederman - it seems to work like this - {{issue.assignee.displayName.split(" ").last}} || {{issue.assignee.displayName.split(" ").first}}
Please try and let me know.
Thanks,
you can store that in each variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ahhh, perfect thank you! I was racking my brain trying to figure out '2' or 'second' or two'... Never thought of 'last'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
FYI -- here is the documentation for smart value lists, including information about selecting relative (e.g., first and last functions) and specific items (e.g., with get() and getFromEnd() functions)
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.