Hello
How can I do the following.
{{issue.description.replace("found text", "replace text with smart value:"+createdIssue.key)}}
Basically I want some text should replace with smart value and plain text as concatenated.
Thanks
Masud
Hi @Masudur Rahman ,
Below worked on my Jira. I hope it works for you too.
{{issue.description.replace("found text", issue.summary).concat("my plain text")}}
Thank you , But can we have the following instead of suffix, I want prefix concat.
{{issue.description.replace("found text", "my plain text".concat(issue.summary))}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as I checked there is no prepend function. But you can have the same behavior with the below snippet..
{{issue.description.replace("found text, issue.summary.left(0).concat("my plain text").concat(issue.summary))}}
Above the prepend behavior is done
issue.summary.left(0) ==> returns empty string
issue.summary.left(0).concat("my plain text")
issue.summary.left(0).concat("my plain text").concat(issue.summary)
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.
Thank you, that was really helpful!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I first create a new variable with the value:
my plain text{{issue.summary}}
Then when I set my field, I can use the smart value
{{issue.description.replace("found text",myVariable)}}
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.