In Postaction script, I gave a file path /var/atlassian/application-data/jira/scripts/myfileName.groovy. The file exists and it has 777 permissions set.
However while transitioning to a new status, the postaction script path should have been executed but it gave me FileNotFound Exception instead.
Error :
orkflowFunction] Error in groovy script:
java.io.FileNotFoundException: /var/atlassian/application-data/jira/scripts/myfileName.groovy(/var/atlassian/application-data/jira/scripts/myfileName.groovy )
at groovy.lang.GroovyCodeSource.<init>(GroovyCodeSource.java:111)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:621)
at com.riadalabs.jira.plugins.insight.services.core.impl.GroovyServiceImpl.evaluate(GroovyServiceImpl.java:86)
at com.riadalabs.jira.plugins.insight.services.jira.workflow.InsightWorkflowFunction.runPostFunctionGroovyScriptFile(InsightWorkflowFunction.java:1207)
at com.riadalabs.jira.plugins.insight.services.jira.workflow.InsightWorkflowFunction.execute(InsightWorkflowFunction.java:1005)
at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1014)
at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1407)
at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:557)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:842)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:799)
at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:517)
at com.atlassian.jira.web.action.workflow.SimpleWorkflowAction.doExecute(SimpleWorkflowAction.java:28)
A space after myfileName.groovy actually gave the error, I found it .
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.