I am displaying fields from Jira Epics on a Confluence page using the Insert Jira Issue/Filter macro inside a table transformer macro. Everything is working perfectly except one of the fields I am showing is of the type Wiki Style Renderer. Even if the text has received no formatting in Jira I still get <p> and </p> tags around the text. And of course if the text does have formatting I see all those html tags as well.
Is there any way to transform this field to just plain text and remove the html? I tried the following but it is not having any effect.
SELECT
T1.'Acceptance Criteria (old)'::string->replaceAll("/(<([^>]+)>)/ig"," ")
FROM T*
ORDER BY DATE(T1.'Target end') ASC
The regex seems to be the issue, if I replace it with <p> then it works as expected.