We're using Scriptrunner's TEMPLATE COMMENTS FOR JSD, and we currently have the default variables:
|| Variable || Usage || Type
| ${currentUser} | the current user | com.atlassian.jira.user.ApplicationUser
| ${issue} | the current issue | com.atlassian.jira.issue.Issue
| ${agentFirstname} | the current agent's first name | String
| ${customerFirstName} | the reporter's first name | String
| ${causedByIssues} | list of inward linked issues with the Problem/Incident link type | List<com.atlassian.jira.issue.Issue>
But I'm looking to add more, for example, $customerLastName, $managerFirstName, $agentLastName.
How can I go about doing this?