Hi, I'm trying to replicate a simple test where I've created different variables to replace the content of div (html)
Variables
baseContent =
<div id="content"> <p>This is the original content</p> <!--PLACEHOLDER--> </div>
valueReplace =
<!--PLACEHOLDER-->
replaceContent =
<p>NEW CONTENT</p>
It only runs correctly when placed directly with values set in the double quotes combinedContent = {{baseContent.replace("PLACEHOLDER","W")}}
But when I want to pass the replaceContent and/or valueReplace variable it doesn't appear in any of the following tests
{{baseContent.replace("<!--PLACEHOLDER-->", replaceContent)}} -error {{baseContent.replace("<!--PLACEHOLDER-->","${replaceContent}")}} -error {{baseContent.replace(\{\{valueReplace\}\},\{\{replaceContent\}\})}} -- error {{baseContent.replace("{{valueReplace}}","{{replaceContent}}")}} -error {{baseContent.replace({{valueReplace}},{{replaceContent}})}} -error {{baseContent.replace($(valueReplace),$(replaceContent) )}} -error
What is the correct way to pass smart values to a replace ? It's Jira Automation Data Center
