We are in the process of implemention Jelly scripts as per Atlassian's Jelly Escalation examples. Whilst we can get them to work as-is, what we would like to do is include the issue reporter's name in the comment.
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log">
<jira:Login username="****" password="********">
<log:info>Running close resolved issues service</log:info>
<!-- Properties for the script -->
<core:set var="comment">Hello XXXX,
This issue has been in state 'Resolved' for one week and has now been closed.
If this issue has not been completed or you are not satisfied with the resolution, please reopen the issue and we will respond as soon as possible.
Thank you.</core:set>
<core:set var="workflowStep" value="5"/>
<core:set var="workflowUser" value="****"/>
<core:set var="filterID" value="10501"/>
<!-- Run the SearchRequestFilter -->
<jira:RunSearchRequest filterid="${filterID}" var="issues"/>
<!-- Iterate over the issues -->
<core:forEach var="issue" items="${issues}">
<log:info>Closing resolved issue ${issue.key}</log:info>
<jira:TransitionWorkflow key="${issue.key}" user="${workflowUser}" workflowAction="${workflowStep}" comment="${comment}"/>
</core:forEach>
</jira:Login>
</JiraJelly>
I have tried various methods of obtaining the reporter's name, including those already asked on Atlassian Answers, but I am not able to get them to work on JIRA v5.1.7.
<core:invoke on="${issue}" method="getReporter" var="reporter"/>
Whilst the Jelly Runner accepts this, it doesn't seem to work. Therefore, please can you give us some guidance.
Thanks a lot!