Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Products
  • Jira
  • Questions
  • Jira Jelly Service complains that the workflow transition is not valid for the current workflow state. Manual Start works fine?!

Jira Jelly Service complains that the workflow transition is not valid for the current workflow state. Manual Start works fine?!

rh@hollmann-cs.de null February 22, 2012

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

1 answer

0 votes
Hanumesh Jojode April 8, 2012

Please check the workflow Transition Condition to make sure that the user "user"(guessing it from your script) has the permission to execute this transition.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events