Hi Guys,
I try to close some Issues due to a created jira-filter:
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log" >
<jira:Login username="user" password="password123">
<log:info>Running Close issues service</log:info>
<!-- Set Params -->
<core:set var="workflowStep" value="2" />
<core:set var="workflowUser" value="user" />
<core:set var="filterKE" value="10301" />
<core:set var="filterKL" value="10300" />
<!-- Run the SearchRequestFilter -->
<jira:RunSearchRequest filterid="${filterKE}" var="issuesKE" />
<jira:RunSearchRequest filterid="${filterKL}" var="issuesKL" />
<!-- Iterate over the KE issues -->
<core:forEach var="issue" items="${issuesKE}">
<jira:TransitionWorkflow key="${issue.key}" user="${workflowUser}" workflowAction="${workflowStep}"/>
</core:forEach>
<!-- Iterate over the KL issues -->
<core:forEach var="issue" items="${issuesKL}">
<jira:TransitionWorkflow key="${issue.key}" user="${workflowUser}" workflowAction="${workflowStep}"/>
</core:forEach>
</jira:Login>
</JiraJelly>
If I start the script manually it works well. Using the Jira-Service "Jelly-Runner": Jira complains that the workflow transition is not valid for the current workflow state.
But I just checked that. The Isseu's-State is "open" and I just want to close?
Any Ideas anyone?
Best Robert