java.lang.IllegalArgumentException: No workflow action with id '91' available for issue KEC-3323

JIRA | Miguel De Dios | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-723].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}I'm trying to use the Post Function example for "auto-close all subtasks". I've updated the script to reflect the correct stage in the workflow as far as I can tell. I've run the script with debug enabled. Here's the full error message. 2015-05-28 14:18:26,456 http-bio-8080-exec-66 ERROR miguel.dedios 858x2575369x5 13dg1pn 65.113.236.100,127.0.0.1 /secure/CommentAssignIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] ************************************************************************************* 2015-05-28 14:18:26,459 http-bio-8080-exec-66 ERROR miguel.dedios 858x2575369x5 13dg1pn 65.113.236.100,127.0.0.1 /secure/CommentAssignIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] Script function failed on issue: KEC-3322, actionId: 91, file: <inline script> java.lang.IllegalArgumentException: No workflow action with id '91' available for issue KEC-3323 at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.retrieveActionDescriptor(WorkflowTransitionUtilImpl.java:190) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.retrieveActionDescriptorWithPermissionCheck(WorkflowTransitionUtilImpl.java:168) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.getActionDescriptor(WorkflowTransitionUtilImpl.java:152) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.getFieldScreenRenderer(WorkflowTransitionUtilImpl.java:346) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.validateFieldsParams(WorkflowTransitionUtilImpl.java:300) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.access$500(WorkflowTransitionUtilImpl.java:40) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl$2.get(WorkflowTransitionUtilImpl.java:291) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl$2.get(WorkflowTransitionUtilImpl.java:278) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.impersonateUser(WorkflowTransitionUtilImpl.java:455) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.validate(WorkflowTransitionUtilImpl.java:277) at com.atlassian.jira.workflow.WorkflowTransitionUtil$validate$2.call(Unknown Source) at Script2$_run_closure1.doCall(Script2.groovy:30) at Script2.run(Script2.groovy:18) Question: It says there's no workflow action with id '91' which doesn't make sense to me, clearly Finished is action ID 91 or am I missing something?

    JIRA | 2 years ago | Miguel De Dios
    java.lang.IllegalArgumentException: No workflow action with id '91' available for issue KEC-3323
  2. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-723].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}I'm trying to use the Post Function example for "auto-close all subtasks". I've updated the script to reflect the correct stage in the workflow as far as I can tell. I've run the script with debug enabled. Here's the full error message. 2015-05-28 14:18:26,456 http-bio-8080-exec-66 ERROR miguel.dedios 858x2575369x5 13dg1pn 65.113.236.100,127.0.0.1 /secure/CommentAssignIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] ************************************************************************************* 2015-05-28 14:18:26,459 http-bio-8080-exec-66 ERROR miguel.dedios 858x2575369x5 13dg1pn 65.113.236.100,127.0.0.1 /secure/CommentAssignIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] Script function failed on issue: KEC-3322, actionId: 91, file: <inline script> java.lang.IllegalArgumentException: No workflow action with id '91' available for issue KEC-3323 at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.retrieveActionDescriptor(WorkflowTransitionUtilImpl.java:190) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.retrieveActionDescriptorWithPermissionCheck(WorkflowTransitionUtilImpl.java:168) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.getActionDescriptor(WorkflowTransitionUtilImpl.java:152) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.getFieldScreenRenderer(WorkflowTransitionUtilImpl.java:346) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.validateFieldsParams(WorkflowTransitionUtilImpl.java:300) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.access$500(WorkflowTransitionUtilImpl.java:40) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl$2.get(WorkflowTransitionUtilImpl.java:291) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl$2.get(WorkflowTransitionUtilImpl.java:278) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.impersonateUser(WorkflowTransitionUtilImpl.java:455) at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.validate(WorkflowTransitionUtilImpl.java:277) at com.atlassian.jira.workflow.WorkflowTransitionUtil$validate$2.call(Unknown Source) at Script2$_run_closure1.doCall(Script2.groovy:30) at Script2.run(Script2.groovy:18) Question: It says there's no workflow action with id '91' which doesn't make sense to me, clearly Finished is action ID 91 or am I missing something?

    JIRA | 2 years ago | Miguel De Dios
    java.lang.IllegalArgumentException: No workflow action with id '91' available for issue KEC-3323

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      No workflow action with id '91' available for issue KEC-3323

      at com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.retrieveActionDescriptor()
    2. com.atlassian.jira
      WorkflowTransitionUtil$validate$2.call
      1. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.retrieveActionDescriptor(WorkflowTransitionUtilImpl.java:190)
      2. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.retrieveActionDescriptorWithPermissionCheck(WorkflowTransitionUtilImpl.java:168)
      3. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.getActionDescriptor(WorkflowTransitionUtilImpl.java:152)
      4. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.getFieldScreenRenderer(WorkflowTransitionUtilImpl.java:346)
      5. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.validateFieldsParams(WorkflowTransitionUtilImpl.java:300)
      6. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.access$500(WorkflowTransitionUtilImpl.java:40)
      7. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl$2.get(WorkflowTransitionUtilImpl.java:291)
      8. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl$2.get(WorkflowTransitionUtilImpl.java:278)
      9. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.impersonateUser(WorkflowTransitionUtilImpl.java:455)
      10. com.atlassian.jira.workflow.WorkflowTransitionUtilImpl.validate(WorkflowTransitionUtilImpl.java:277)
      11. com.atlassian.jira.workflow.WorkflowTransitionUtil$validate$2.call(Unknown Source)
      11 frames
    3. Unknown
      Script2.run
      1. Script2$_run_closure1.doCall(Script2.groovy:30)
      2. Script2.run(Script2.groovy:18)
      2 frames