Using Edit work item action on a multi-line text field.
The results of my smart value has a pipe | symbol in it. Unfortunately, because I'm putting this smart value into a table (with a lot of other data), it's creating a new cell.
This is what I'm trying in the multi-line text field:
|Field name: |{{issue.parent.customfield_11111.replace("|","-")}}|
Resulting in
Field name: | prefix | suffix |
but the result that I want is
Field name: | prefix | suffix |
or even
Field name: | prefix - suffix |
How do I replace the pipe symbol?
This should be doable, you should try to double the pipe.
Like; {{issue.parent.customfield_11111.replace("||","-")}}
Thank you for responding so quickly. But that did not appear to work. I now get a blank entry:
Field name: |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So it does work as it replaces the pipes.
So the solution is to not use pipes or other reserved keywords/symbols.
What is your custom field providing as input, so what are the values in that field.
Otherwise try to create a variable.
Within creating the variable, replace the pipe from the value and then use:
|Field name: |{{<variable_name>}}|
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.