Can't transition workflow instance #160106. Current state is 0, requested state is 1
Hi Team,
We have been facing this issue in jira log.please let us the cause of this error.We are using plugin in our workflows.
com.atlassian.jira.exception.CreateException: Can't transition workflow instance #160106. Current state is 0, requested state is 1 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:692) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:615) at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject(DefaultIssueManager.java:705) at sun.reflect.GeneratedMethodAccessor3144.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) at com.sun.proxy.$Proxy34.createIssueObject(Unknown Source) <+2> at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154) at com.sun.proxy.$Proxy34.createIssueObject(Unknown Source) at org.swift.jira.cot.functions.AbstractCreateFunction.createIssue(AbstractCre
Comments (10)
-
reporter -
repo owner Hi Suresh,
The following calls in the stack trace point out that the error is caused by "Create on Transition for JIRA" add-on:
org.swift.jira.cot.functions.AbstractCreateFunction.createIssue(AbstractCreateFunction.java:214) at org.swift.jira.cot.functions.AbstractCreateFunction.createIssues(AbstractCreateFunction.java:171) at org.swift.jira.cot.functions.AbstractCreateFunction.process(AbstractCreateFunction.java:146) at org.swift.jira.library.AbstractPostFunction.execute(AbstractPostFunction.java:168)
Please, contact the support for that plugin, and let me know in case JIRA Workflow Toolbox has any relation with the problem.
BTW, I recommend you to update your version of the plugin. 15 versions have been released after the one you have installed currently, providing many new features, improvements and bug fixes.
Regards.
-
reporter Thank you, I have raised issue with bob swift.
-
reporter Hi Fidel,
Facing Tool Box plugin error. Due to this Jira going down couple of times. Attlasian team said the problem with below error. It consuming more memory and it giving memory leak error. Please look into this ASAP
com.fca.jira.plugins.workflowToolbox.JQLCondition.passesCondition(Ljava/util/Map;Ljava/util/Map;Lcom/opensymphony/module/propertyset/PropertySet;)Z (JQLCondition.java:74)
http-bio-443-exec-397 at com.atlassian.jira.issue.DocumentIssueImpl.getSingleValueFromField(Ljava/lang/String;)Ljava/lang/Object; (DocumentIssueImpl.java:95) at com.atlassian.jira.issue.DocumentIssueImpl.getKey()Ljava/lang/String; (DocumentIssueImpl.java:356) at com.atlassian.jira.issue.AbstractIssue.equals(Ljava/lang/Object;)Z (AbstractIssue.java:114) at java.util.ArrayList.indexOf(Ljava/lang/Object;)I (Unknown Source) at java.util.ArrayList.contains(Ljava/lang/Object;)Z (Unknown Source) at com.fca.jira.plugins.workflowToolbox.JQLCondition.passesCondition(Ljava/util/Map;Ljava/util/Map;Lcom/opensymphony/module/propertyset/PropertySet;)Z (JQLCondition.java:74) at com.atlassian.jira.plugin.workflow.WorkflowConditionModuleDescriptor$SafeConditionPlugin.passesCondition(Ljava/util/Map;Ljava/util/Map;Lcom/opensymphony/module/propertyset/PropertySet;)Z (WorkflowConditionModuleDescriptor.java:94) at com.atlassian.jira.workflow.SkippableCondition.passesCondition(Ljava/util/Map;Ljava/util/Map;Lcom/opensymphony/module/propertyset/PropertySet;)Z (SkippableCondition.java:50) at com.opensymphony.workflow.AbstractWorkflow.passesCondition(Lcom/opensymphony/workflow/loader/ConditionDescriptor;Ljava/util/Map;Lcom/opensymphony/module/propertyset/PropertySet;I)Z (AbstractWorkflow.java:1085) at com.opensymphony.workflow.AbstractWorkflow.passesConditions(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;Lcom/opensymphony/module/propertyset/PropertySet;I)Z (AbstractWorkflow.java:1119) at com.opensymphony.workflow.AbstractWorkflow.passesConditions(Lcom/opensymphony/workflow/loader/ConditionsDescriptor;Ljava/util/Map;Lcom/opensymphony/module/propertyset/PropertySet;I)Z (AbstractWorkflow.java:1143) at com.opensymphony.workflow.AbstractWorkflow.getAvailableActionsForStep(Lcom/opensymphony/workflow/loader/WorkflowDescriptor;Lcom/opensymphony/workflow/spi/Step;Ljava/util/Map;Lcom/opensymphony/module/propertyset/PropertySet;)Ljava/util/List; (AbstractWorkflow.java:723) at com.opensymphony.workflow.AbstractWorkflow.getAvailableActions(JLjava/util/Map;)[I (AbstractWorkflow.java:115) ...
Regards, Suresh
-
repo owner Can you please attach a screenshot of your configuration of "Condition based on JQL query"? I want to see the JQL query you are using.
And please, tell me approximately the number of issues in your JIRA instance.
-
reporter 75000 issues we have in the instance.
Regards, Suresh
-
reporter Hi Fedal. May I get any updates on this?
-
repo owner I have detected the problem and I'm working to solve it in the next version of the plugin.
Anyway, there are two solutions without needing to update the plugin:
1) Making your JQL query more restrictive, e.g., adding a term like: AND project = PROJECT_KEY
2) Implement your condition using "Boolean condition with math, date-time or text-string terms" with the following boolean expression:
%{aaaaa} = null AND %{bbbbb} != null
where
- %{aaaaa} is field code for "Technical Implementation Complete Approver".
- %{bbbbb} is field code for "Test Complete".
You have to replace aaaaa and bbbbb with the corresponding field codes in your JIRA instance.
-
repo owner The problem has been fixed in version 2.2.3_beta_1.
-
repo owner - changed status to resolved
Fixed in version 2.2.3.
- Log in to comment
The following error is appearing
2015-12-08 07:13:49,019 http-bio-443-exec-553 ERROR nraj 433x35334x1 xgycvs 10.161.60.196 /rest/api/latest/issue [jira.cot.functions.CreateSubIssueFunction] Could not create issue due to exception: com.atlassian.jira.exception.CreateException: Can't transition workflow instance #159239. Current state is 0, requested state is 1 com.atlassian.jira.exception.CreateException: Can't transition workflow instance #159239. Current state is 0, requested state is 1 at org.swift.jira.cot.functions.AbstractCreateFunction.createIssue(AbstractCreateFunction.java:214) at org.swift.jira.cot.functions.AbstractCreateFunction.createIssues(AbstractCreateFunction.java:171) at org.swift.jira.cot.functions.AbstractCreateFunction.process(AbstractCreateFunction.java:146) at org.swift.jira.library.AbstractPostFunction.execute(AbstractPostFunction.java:168)