JJUPIN SIL - Unable to set an Epic Link with SIL script

AJ January 27, 2017

Hi,

I experienced a problem with a JJUPIN SIL Script.

My goal : During the creation of an Epic, I would like to automatically create a task and link it to the Epic (with Epic Link).

In order to perform this action, I created a SIL script and added it as a post-function in the Create transition (and ordered the post-function after Creates the issue originally step).

Here my SIL Script :

string k;
string[] custom_fields_mapping;
custom_fields_mapping = addElement(custom_fields_mapping, "assignee");
custom_fields_mapping = addElement(custom_fields_mapping, currentUser());
custom_fields_mapping = addElement(custom_fields_mapping, "Epic Link");
custom_fields_mapping = addElement(custom_fields_mapping, key);
k = createIssue(project,"","Task","MyTask","","","",dueDate,"","",custom_fields_mapping);

Each time I tried to create an Epic, JIRA encountered an error during the Epic creation.

I got the following errors in the log file :

2017-01-27 14:35:59,340 ajp-nio-8009-exec-40 ERROR dugueda 875x221321x1 1mksjpj 172.26.6.133 /secure/CreateIssueDetails.jspa [c.k.j.c.jira.utils.IssueUtils] Cannot save new issue; error was com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB
com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:515)
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject(DefaultIssueManager.java:604)
at com.keplerrominfo.jira.commons.jira.utils.IssueUtils.create(IssueUtils.java:322)
at com.keplerrominfo.jira.commons.jira.utils.IssueUtils.create(IssueUtils.java:146)
at com.keplerrominfo.jira.commons.jira.utils.IssueUtils.create(IssueUtils.java:104)
at com.keplerrominfo.jira.commons.ivm.routines.CreateIssueRoutine.executeRoutine(CreateIssueRoutine.java:138)
at com.keplerrominfo.sil.lang.AbstractRoutine.execute(AbstractRoutine.java:78)
at com.keplerrominfo.sil.lang.grammar.ASTCallNode.interpret(ASTCallNode.java:72)
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(SILNode.java:141)
at com.keplerrominfo.sil.lang.grammar.ASTAttribNode.interpret(ASTAttribNode.java:39)
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.initialize(AbstractWorkflow.java:615)
at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:741)
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:580)
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:494)
at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:230)
at com.atlassian.jira.web.action.issue.CreateIssueDetails.createIssue(CreateIssueDetails.java:99)
at com.atlassian.jira.web.action.issue.CreateIssueDetails.doExecute(CreateIssueDetails.java:78)
... 1 filtered
at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
... 7 filtered
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
... 50 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.atlassian.jira.workflow.WorkflowException: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB
at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:765)
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:506)
... 245 more
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.atlassian.jira.issue.Issue
at com.atlassian.greenhopper.customfield.epiclink.EpicLinkCFType.createValue(EpicLinkCFType.java:44)
at com.atlassian.jira.workflow.function.issue.IssueCreateFunction.execute(IssueCreateFunction.java:81)
at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615)
at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:741)
... 246 more
2017-01-27 14:35:59,345 ajp-nio-8009-exec-40 ERROR dugueda 875x221321x1 1mksjpj 172.26.6.133 /secure/CreateIssueDetails.jspa [c.k.j.c.ivm.routines.CreateIssueRoutine] Cannot save new issue; error was com.keplerrominfo.jira.commons.jira.utils.JiraOperationException: Cannot save new issue; error was com.atlassian.jira.exception.CreateException: com.atlassian.jira.workflow.WorkflowException: Error occurred while creating issue. This could be due to a plugin being incompatible with this version of JIRA. For more details please consult the logs, and see: http://confluence.atlassian.com/x/3McB

It seems that the origin of the problem might be a plugin incompatibility.

I'm using JJUPIN 3.1.9, JJUPIN AGILE 3.1.4 and JIRA Software 7.1.9.

 

Does anyone encountered this kind of problem ?

 

3 answers

0 votes
Gregory Kneller
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 31, 2017

Hi Damien,

you shall install JJUPIN Agile and make sure it is enabled. License seems to be not necessary

AJ February 1, 2017

Hi Gregory,

JJUPIN Agile is already installed, enabled and licensed.

0 votes
AJ January 30, 2017

JIRA Software 7.1.9

0 votes
Błażej O_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 29, 2017

What JIRA version do you use?

Suggest an answer

Log in or Sign up to answer