I would like to use smart values to cut text between '{' and '}' from a description.
To start simple I tried this:
{{issue.description.replaceAll("{","")}}
But it is not working. It works with other text than {. Is there a notation to use { in smart values?
Hi @Clemens Rätze ,
I did not try it myself, but I think you need to escape the {, by using \{.
{{issue.description.replaceAll("\{","")}}
That's it, thanks.
In case anyone is wondering, that's my final value:
{{issue.description.replaceAll("(?<=\{)([^ ]*)(?=\})","").replaceAll("\{}","")}}
Using this I can cut all formating stuff like {color:#172b4d} that would otherwise end up in an email containing the issue description using Jira automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might need to address the { as "\{\", this ass it is a special char.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the second \ needed? Seems like you are escaping the "
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know, that I have to use the same for trying to replace \\ with nothing.
"\\\\"
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.