Search and replace in field content

Sometimes we need to tweak work item content based on replacement rules.

You can do this globally or for individual fields in your template as shown below.

Template

{{#workItems}}


**Single replacement**

{{{ field 'Description' replace='/people/PEOPLE/' }}}

**Replacement with global flag**

{{{ field 'Description' replace='/to/2/g' }}}

**Replacement using capturing group**

{{{ field 'Description' replace='/(DevOps)/$1 ๐Ÿš€/' }}}


{{/workItems}}

Work items

IdDescription
100DevOps is the union of people, process, and products to enable continuous delivery of value to our end users

Result

Single replacement

DevOps is the union of PEOPLE, process, and products to enable continuous delivery of value to our end users

Replacement with global flag

DevOps is the union of people, process, and products 2 enable continuous delivery of value 2 our end users

Replacement using capturing group

DevOps ๐Ÿš€ is the union of people, process, and products to enable continuous delivery of value to our end users