Change template tags to no longer be hard-coded along with HTML
Currently there's a number of template tags that are hard-coded to include HTML markup. I encountered this issue while trying to set up a ticket automation.
I wanted relevant ticket information to be posted into our slack channel. To get the initial description of an issue, I used "{{initialcommentbody}}". When the automation was run, it printed something similar to, "<p> This is a test </p>", and there's currently no way to remove the HTML markup from this response (According to support).
I know there are other template tags with the same HTML wrapping, and there's no way to remove them. I don't have a list, but I'm sure the devs do.
My suggested fixes:
1) Make all tags return a string, and edit anywhere else where the HTML is required.
2) Give us an option to toggle whether or not we want the data wrapped in HTML
3) Perhaps a range of HTML free tags could be created
-
Jaydin commented
{{ticket_custom_fields}} is another. Displays the content wrapped in all the code for a table, with each field as a table entry. Not readable in Slack