I'm trying to insert a table into a custom field value , collection of requirements, when an issue is transitioned and i'm adding it as a post function with script runner. this is my code but it is not working, the last line is returning with a red underline
// define custom field
def customFieldId = "customfield_10281"
// Define the content for the custom field
def requirementsContent = """
<strong>Collection of Requirements</strong>
<table>
<tr>
<th>Requirement</th>
<th>Description</th>
</tr>
<tr>
<td>Requirement 1</td>
<td>Description for Requirement 1</td>
</tr>
<!-- Add more rows as needed -->
</table>
"""
// Set the custom field value
issue.setCustomFieldValue(customFieldId, requirementsContent)