The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi everyone,
I want to get a String without whitespaces using smart values (in Project Automation), which copies values of a Multi-user picker field into a single-line text field.
By simply using {{issue.myField}}, It puts white spaces between usernames:
usernameA, usernameB, usernameC
I've tried :
{{issue.myField.remove("")}}
and
{{issue.myField.deleteWhitespace()}}
but all characters were deleted!
Do you know how I can remove those spaces?
Thanks.
This can solve your problem:
{{yourfield.replace(" ", "")}}
I've not tested this but I am pretty sure all you need to do is
{{issue.myField.trim()}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not sure you still need it but I was facing the same issue and I found a workaround.
Use the Create Variable component to create the smart value without the space (using remove or Replace function)
For some reason, the Edit issue field component did not work for me each time I tried to type the character space. But editing inside the create Variable component worked perfectly.
You can then use those smart variables inside the Edit Issue Field component.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.