Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to print reporter name in Builtin Script - Escalation Service

RahulG November 30, 2015

Hello, 

I am trying to use the built in Escalation service for Reminder service and in the add a comment section shown below how can i print the reporter name & Issue ID  ? Could you please help me with this @Jamie Echlin [Adaptavist]

 

Description:Reminder Service
Interval:0 0/5 * * * ?
JQL:project = "Project Auto Close" AND issuetype = Task AND status = "In Progress" AND updated < now()
Action:None
Run as:admin
Add a commentissueInputParameters.setComment('''' Dear Reporter, For your Issue ID This is an auto reminder we have noticed that this issue has not been updated for a period of 20 days If this issue is legitimate and being actively worked on, please ignore this reminder or If this issue is resolved or completed or outdated, would you kindly close the ticket''')
 

 

 

Thanks,

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Royce Wong
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.
November 30, 2015
import com.atlassian.jira.issue.Issue;
Issue issue = issue
def reporter = issue.reporter.getDisplayName()

and then reference reporter variable this way:
${reporter}
TAGS
AUG Leaders

Atlassian Community Events