hi !
there is smart value for remove characters
{{issue.summary.remove("x")}}
is there any fast way to remove 3 characters x,y,z with one smart value?
because {{issue.summary.remove("x","y","z")}} return empty value
Thank you, Tim!
It works great for letters.
Do you know how to use it for symbols like
{{issue.summary.replaceAll("[ [] ]", "")}}
Or maybe how to use it for smart values?
{{issue.summary.replaceAll("[{{test}}]", "")}}
This smart values returns an error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your welcome. We are actually using regex so I don't think we can use a smart value, but we can get rid of brackets.
{{issue.summary.replaceAll("[\[\]]", "")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I could be wrong, but it appears you'll have to do it three times. I don't see another function here Apache String Utils or other variations of remove that will let you do multiples within one call.
Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the reply!
And do you know, is there any way to remove from text another smart value ?
f.e. {{issue.summary.remove("{{test}}")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I bookmarked this page for all the Smart Value stuff: Smart Values
I don't have an exact answer, but it appears you can put 'test' in there and it will take out the whole word. If you don't put it in quotes, would it do it?
Or try using quote() or trim() to pass in the value? If you don't get a definite answer, and need to know, I would ask support (support.atlassian.com).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have an exact answer, but it appears you can put 'test' in there and it will take out the whole word. If you don't put it in quotes, would it do it?
without quotes it works, but I need to remove from a field a smart value or a variable
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.