I'm trying to create a simple Jelly Runner script to close issues in a certain project that have not been updated in two weeks. During the transition, a screen is defined with a required custom field.
This is what I got now:
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log" >
<jira:Login username="rdem" password="XXXXXX">
<log:warn>Running Inactive issues service</log:warn>
<core:set var="comment">This issue is marked as Done, but has not been closed for two weeks.
An automated service will now close the ticket, and set the feedback to "Neutral".
Thank you,
The IBQ team</core:set>
<core:set var="workflowStep" value="Close" />
<core:set var="workflowUser" value="rdem" />
<!-- Run the SearchRequestFilter -->
<jira:RunSearchRequest filterid="12345" var="issues" />
<core:forEach var="issue" items="${issues}">
<log:warn>Inactivating issue ${issue.key}</log:warn>
<jira:TransitionWorkflow key="${issue.key}" user="${workflowUser}" workflowAction="${workflowStep}" comment="${comment}"/>
</core:forEach>
</jira:Login>
</JiraJelly>
But this won't work, because during this transition, a certain custom field is required and I've no idea how to specify the default value for this field.
Any help please?