Create linked issue with new watcher is not working

Issue #830 resolved
Marton Danoczy
created an issue

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 

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: 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)

  1. Marton Danoczy 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, /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(
        at com.fca.jira.plugins.workflowToolbox.shared.GeneralizedField.setValue(
        at com.fca.jira.plugins.workflowToolbox.CreateIssue.executeDelayedAssignments(
        at com.fca.jira.plugins.workflowToolbox.CreateIssue.execute(
        at com.opensymphony.workflow.AbstractWorkflow.executeFunction(
        at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(
        at com.opensymphony.workflow.AbstractWorkflow.doAction(
        at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(
        at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(
        at com.atlassian.jira.bc.issue.DefaultIssueService.transition(
        at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(
        ... 1 filtered
        at com.atlassian.jira.action.JiraActionSupport.execute(
        ... 7 filtered
        at javax.servlet.http.HttpServlet.service(
        ... 52 filtered
        at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(
        ... 12 filtered
        at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(
        ... 20 filtered
        at com.intenso.jira.contentinjection.filter.ContentInjectionFilter.doFilter(
        ... 30 filtered
        at com.xpandit.raven.servlet.filter.IssueLinksInterceptor.doHttpFilter(Unknown Source)
        at com.xpandit.raven.servlet.filter.AbstractServletFilter.doFilter(Unknown Source)
        ... 14 filtered
        ... 1 filtered
        ... 36 filtered
        at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(
        ... 5 filtered
        at com.atlassian.jwt.internal.servlet.JwtAuthFilter.doFilter(
        ... 8 filtered
        at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(
        ... 4 filtered
        at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(
        ... 26 filtered
        at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(
        ... 23 filtered
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
        at org.apache.tomcat.util.threads.TaskThread$

    I have redacted the last three bytes of the IP, I hope you don't mind.

  2. Log in to comment