Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Smart value with concatenate string in string replace/replaceAll

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.


1 answer

1 accepted

0 votes
Answer accepted

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))}}
Bloompeak Support Marketplace Partner Apr 29, 2020

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

  • first by creating an empty string
issue.summary.left(0) ==> returns empty string
  • then concat the prepend text to the empty string
issue.summary.left(0).concat("my plain text")
  •  finally concat the smart value
issue.summary.left(0).concat("my plain text").concat(issue.summary)
Like Yatish Madhav likes this

Thank you very much @Bloompeak Support 

It worked :)

Like Bloompeak Support likes this

Thank you, that was really helpful! 

Like Bloompeak Support likes this

Suggest an answer

Log in or Sign up to answer