Toolkit Plugin for Jira: Syntax error when hiding a message custom field from the screen
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When using the Message Custom Fields by Toolkit Plugin for Jira, the default value of these fields are rendered as arbitrary HTML instead of a text string to the to edit and view pages.
As a result, any invalid HTML data in this custom field will trigger a "Syntax error, unrecognized expression" error in the browser Console or the UI. For example:
Environment
Jira with Toolkit Plugin for Jira app installed and Message Custom Field is used.
Cause
In the above example, the following string is configured in the Message Custom Field's default value.
This is a test.
Note that the full stop symbol is not being parsed as HTML hence the syntax error.
Solution
Edit the custom field's default value to HTML formatting.