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

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

What JIRA version do you use?

JIRA Software 7.1.9

Hi Damien,

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

Hi Gregory,

JJUPIN Agile is already installed, enabled and licensed.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,092 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you