Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Regex to match and replace text in Automation for Jira

Geoff Robles
Contributor
May 8, 2020

I'm putting together an automation that matches a block of text. What I'd like to do is take the text and remove the wiki markup from it. This is what I have for the matching section

 

{{issue.description.match("(?s)Deployment to Production\*\s*(.*?)\s*h1\. \*\Deployment to Staging\*")}}

The text it matches looks like this

h1. *Deployment to Production*

*Documentation:*
Links and other bullet points

h1. *Deployment to Staging*

etc

 

I want to remove the asterisks and other wiki markup from the match and do something with the updated text.

How do I combine the match above with a replace?

 

0 answers

Suggest an answer

Log in or Sign up to answer