Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create new variables for Scriptrunner Template Comments?

Ronnie Sena
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 7, 2019

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?

1 answer

0 votes
PD Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 7, 2019

I haven't use this yet ... but found its entry on the marketplace ... and then followed the "Documentation" link that points to https://bitbucket.org/Adaptavist/jsd-canned-comments/src/master/

There you'll see (under the "Conditions" header) that you can "add additional variables available to the template"

Suggest an answer

Log in or Sign up to answer