- edited description
Create linked issue with new watcher is not working
Dear Fidel,
thank you very much for this wonderful plugin, I use it to replace everything else we used to have (JMWE, JSU, ...).
I have encountered a problem when creating linked issues in a transition:
Create one issue.
Issue type: Story
Project: Current Project
Summary: text in basic parsing mode
%{Summary}
Description: text in basic parsing mode
%{Problem Analysis}
Set fields:
Field Type of Value Value
Reporter Parsed text (advanced mode) last(usersWhoTransitioned("Analysis", "Under Review"))
Priority Field in current issue Priority
New watchers Field in current issue Reporter
Issue Links:
Issue Link Type Linked Issues Condition
created by Current issue
Post-function will only be executed if the following boolean expression is satisfied: %{Resolution} ~ "Create Story"
This feature will be run as user in field Current user. by JWT
Executing this post function results in the error message:
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.user.DelegatingApplicationUser cannot be cast to java.util.Collection
When I remove creating the new watchers, the post-function succeeds.
Comments (6)
-
reporter -
repo owner Hi @martond,
Thank you for kind words.
Can you, please, confirm the version of JWT and JIRA you are using?
Is it possible that you send your server's log file to support@workflowarts.com?
-
reporter Sure. JIRA Software 7.5.0 and JWT 2.2.42.
Here's the stack trace from the log:
2017-10-06 09:13:29,312 http-nio-8080-exec-16 ERROR marton 553x31407x1 izrmcr 10.xxx.xxx.xxx,172.19.0.1 /secure/CommentAssignIssue.jspa [c.a.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 91 from workflow 10434 on issue 'PLAY-16' java.lang.ClassCastException: com.atlassian.jira.user.DelegatingApplicationUser cannot be cast to java.util.Collection at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(GeneralizedField.java:4045) at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(GeneralizedField.java:3677) at com.fca.jira.plugins.workflowToolbox.CreateIssue.executeDelayedAssignments(CreateIssue.java:431) at com.fca.jira.plugins.workflowToolbox.CreateIssue.execute(CreateIssue.java:235) 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:830) at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:787) at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:492) at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(CommentAssignIssue.java:166) ... 1 filtered at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63) ... 7 filtered at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) ... 52 filtered at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:62) ... 12 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 20 filtered at com.intenso.jira.contentinjection.filter.ContentInjectionFilter.doFilter(ContentInjectionFilter.java:71) ... 30 filtered at com.xpandit.raven.servlet.filter.IssueLinksInterceptor.doHttpFilter(Unknown Source) at com.xpandit.raven.servlet.filter.AbstractServletFilter.doFilter(Unknown Source) ... 14 filtered at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66) ... 1 filtered at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64) ... 36 filtered at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30) ... 5 filtered at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(JwtAuthFilter.java:32) ... 8 filtered at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21) ... 4 filtered at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36) ... 26 filtered at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25) ... 23 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)
I have redacted the last three bytes of the IP, I hope you don't mind.
-
reporter PS: I assumed you need only this stack trace from the logs. If you need more, please feel free to ask.
-
repo owner Hi @martond,
The bug has been fixed in version 2.2.43_beta_4.
Please, confirm that this version solves your problem.
-
repo owner - changed status to resolved
Fixed in version 2.2.43.
- Log in to comment