Community moderators have prevented the ability to post new answers.
Hi zezeto,
Since version 2.5.3, the autotransition calls are postponed until the script is done executing. Because of this, we had to return a default "true", but that is just a pleceholder since the transition is not yet executed at the moment the program returns from the call to autotransition.
My guess is that there are some conditions on the transition that are not met, most probably something like user has some permision/project role. The services thread runs as an anonymous user so this might be the root cause of your problem, but the logs will definitely show us what's wrong. Please enable DEBUG level for package com.keplerrominfo and share the results of the execution. If you have privacy concerns about sharing the log info here, drop us an email at jira-support at kepler-rominfo dot com.
Thanks,
When I put this script in the post function, it's execute with no problems.
This service is executed with an administrator and the unique condition is: user in admin group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We can retrieve the sil war or bug... in log of apache?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just tried it here and seems to be working fine. We'll probably find out what's going on from the logs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I know that, but there is a lot of data logged to 4 files in and change quickly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Enable DEBUG logging for package com.keplerrominfo via Administration -> Logging & Profiling, wait for the service to run and the log file is in your JIRA home directory/logs/atlassian-jira.log
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This some log with error.
2013-10-06 13:01:01,274 QuartzWorker-0 ERROR admin-user service_name [plugins.jjupin.services.SILService] Problem executing SIL program: location\filename.sil
com.keplerrominfo.jira.commons.sil.SILException: Exception while executing SIL program >>Srv:location\filename.sil<<
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.throwAway(UnifiedSilRunner.java:231)
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:126)
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:91)
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:65)
at com.keplerrominfo.jira.plugins.jjupin.services.SILService.run(SILService.java:127)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: java.lang.NullPointerException
at com.keplerrominfo.jira.commons.ivm.postactions.TransitionPostAction.findIssueInProvidedOnes(TransitionPostAction.java:173)
at com.keplerrominfo.jira.commons.ivm.postactions.TransitionPostAction.execute(TransitionPostAction.java:92)
at com.keplerrominfo.jira.commons.ivm.IssueSILInterpreter.interpret(IssueSILInterpreter.java:127)
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:117)
... 8 more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What version of katl-commons do you have installed? This issue should have been fixed since 2.5.8.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
the version of katl-commons is 2.5.7 and jjupin is 2.5.4.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think that's the problem because i have try it in an other server with katl-commons version 2.5.8 and jjupin 2.5.4 and it work fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi I am facing the same problem getting error below here is my script and log
string li; bool alldesign = true; //we should have here a do - while, but this will work for the sake of the example for (li in linkedIssues(parent.key)) { if (%li%.status != "Design Completed" && li != key) { alldesign = false; } } if(alldesign) { autotransition("Design Completed", parent.key); }
Logs
Empty issue key provided.
2016-08-07 23:12:34,392 http-nio-8080-exec-78 ERROR admin 1392x454535x1 1yqbo2j 127.0.0.1 /rest/keplerrominfo/jjupin/latest/lf/initPage [c.k.j.c.ivm.routines.GetLinkedIssuesRoutine] Empty issue key provided.
2016-08-07 23:12:36,359 http-nio-8080-exec-73 ERROR admin 1392x454538x1 1yqbo2j 127.0.0.1 /secure/WorkflowUIDispatcher.jspa [c.k.j.commons.ivm.IssueSILType] Cannot cast string >><< to an issue. Invalid issue key format. Are you running the script from create screen ?
2016-08-07 23:12:36,359 http-nio-8080-exec-73 ERROR admin 1392x454538x1 1yqbo2j 127.0.0.1 /secure/WorkflowUIDispatcher.jspa [c.k.sil.lang.SILUtils] [SIL Error on line: 5, column: 31] Cannot cast string >><< to an issue. Invalid issue key format. Are you running the script from create screen ?
2016-08-07 23:12:36,359 http-nio-8080-exec-73 ERROR admin 1392x454538x1 1yqbo2j 127.0.0.1 /secure/WorkflowUIDispatcher.jspa [c.k.j.commons.silrunner.UnifiedSilRunner] Exception while executing SIL program >>Transition of Parent<<
com.keplerrominfo.sil.lang.SILInfoException: [SIL Error on line: 5, column: 31] Cannot cast string >><< to an issue. Invalid issue key format. Are you running the script from create screen ?
at com.keplerrominfo.sil.lang.SILUtils.error(SILUtils.java:146)
at com.keplerrominfo.sil.lang.SILUtils.throwAway(SILUtils.java:128)
at com.keplerrominfo.sil.lang.SILUtils.throwAway(SILUtils.java:124)
at com.keplerrominfo.sil.lang.grammar.ASTAccessorNode.interpret(ASTAccessorNode.java:60)
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(SILNode.java:141)
at com.keplerrominfo.sil.lang.grammar.ASTCallNode.interpret(ASTCallNode.java:56)
at com.keplerrominfo.sil.lang.grammar.ASTForExpression.interpret(ASTForExpression.java:90)
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(SILNode.java:141)
at com.keplerrominfo.sil.lang.grammar.ASTParseNode.interpret(ASTParseNode.java:37)
at com.keplerrominfo.sil.lang.executors.DirectInterpreterExecutor.interpret(DirectInterpreterExecutor.java:60)
at com.keplerrominfo.sil.lang.executors.CachedInterpreterExecutor.interpret(CachedInterpreterExecutor.java:67)
at com.keplerrominfo.sil.lang.SILInterpreter.interpret(SILInterpreter.java:100)
at com.keplerrominfo.jira.commons.ivm.IssueSILInterpreter.interpret(IssueSILInterpreter.java:151)
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:120)
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:94)
at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:68)
at com.keplerrominfo.jira.plugins.jjupin.sil.SilPostFunction.execute(SilPostFunction.java:44)
at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:564)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:826)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:786)
at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:484)
at com.atlassian.jira.web.action.workflow.SimpleWorkflowAction.doExecute(SimpleWorkflowAction.java:28)
... 1 filtered
at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
... 7 filtered
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
... 17 filtered
at com.softwareplant.ganttlib.service.jiraevents.PluginIssueLinkListener.doFilter(PluginIssueLinkListener.java:61)
... 36 filtered
at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:59)
... 62 filtered
at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70)
... 89 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.keplerrominfo.sil.lang.SILException: Cannot cast string >><< to an issue. Invalid issue key format. Are you running the script from create screen ?
at com.keplerrominfo.jira.commons.ivm.IssueSILType$1.cast(IssueSILType.java:126)
at com.keplerrominfo.jira.commons.ivm.IssueSILType$1.cast(IssueSILType.java:113)
at com.keplerrominfo.sil.lang.type.CastingFieldAccessor.get(CastingFieldAccessor.java:27)
at com.keplerrominfo.sil.lang.value.SILValue.getField(SILValue.java:456)
at com.keplerrominfo.sil.lang.grammar.ASTDotFieldAccessNode.interpretForTarget(ASTDotFieldAccessNode.java:73)
... 241 more
jjupin.JPG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.