When using post-function "copy field", remove or replace the formatting in receiving field

Ada Kardos August 25, 2022

I have a somewhat complicated script that was written to dynamically display certain attributes of a selected Insight object field in a JBCF: Message Field within a form. This initial part works well, however the content is ephemeral and needs to be pushed into another field to keep it with the submitted ticket.

Using a "copy field" post-function in the workflow, I can capture the content in another textarea field, however it pulls in all the HTML as well as some of the script content ({"messageType":"info","title":"Training Requirements:","body":" <br/>)  used to format the content in the JBCF: Message Field, making it unreadable.

Is there a way to strip the formatting and simply replace it all with some sort of markdown for line breaks that is recognized by the textarea field? Is there a different field I should use? (I tried a Devinity rich text field but got the same result).

Thank you!

1 answer

0 votes
Ada Kardos August 25, 2022

Figured out that I simply needed to change the "Renderer" setting in the Field Config for the field to mostly clean it up. Still some mess in there, but significantly better.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events