Jira Cloud: Working with substrings in JMWE
JMWE for Jira Cloud utilizes Nunjucks scripting, which can pose challenges for users who are not familiar with it. Specifically, working with substrings can be difficult due to the ambiguity surrounding the applicable filters and syntax. This lack of clarity can hinder users in effectively meeting their scripting needs.
Instructions
To search for an exact substring within another string:
{# returns true if it finds the substring #}
{{"123" in "test123string"}}To replace all instances of a substring in another string:
{# replaces all instances of "123" with "---" #}
{{"test123string" | replace("123", "---")}}