Details
-
Bug
-
Resolution: Tracked Elsewhere
-
High
Description
Summary
When setting a post function to copy the value from an User Picker (multiple users) field to Assignee (or any other User Picker (single user) field), the transition fails. This error happens as long as the source and destination is of different type; so even if the source field is for single user and the destination field is for multiple users; the error will still occur.
Environment
- JIRA Cloud
- JIRA Misc Workflow Extensions
Steps to Reproduce
- Set a post function to copy the value from an User Picker (multiple users) field to Assignee
- Try transitioning the issue, it will fail
Expected Results
The value of the field should be copied and the transition should be complete.
Actual Results
Error on logs seems to indicate that the value of the field can be cast correctly.
2015-08-19 09:00:54.449886500 2015-08-19 09:00:54,439 ajp-nio-127.0.0.104-8009-exec-4 ERROR sysadmin 540x705x1 wc6g0t 202.68.74.170,165.254.226.66 /secure/QuickCreateIssue.jspa [c.i.j.plugins.functions.CopyValueFromOtherFieldPostFunction] Unable to copy value from 'Call Originator' to 'Watchers' 2015-08-19 09:00:54.449887500 java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser 2015-08-19 09:00:54.449888500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:751) 2015-08-19 09:00:54.449897500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:1046) 2015-08-19 09:00:54.449897500 at com.innovalog.jmwe.plugins.functions.CopyValueFromOtherFieldPostFunction.executeFunction(CopyValueFromOtherFieldPostFunction.java:121) 2015-08-19 09:00:54.449898500 at com.innovalog.jmwe.plugins.functions.AbstractPreserveChangesPostFunction.execute(AbstractPreserveChangesPostFunction.java:123) 2015-08-19 09:00:54.449899500 at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050) 2015-08-19 09:00:54.449900500 at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446) 2015-08-19 09:00:54.449900500 at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615) 2015-08-19 09:00:54.449903500 at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:883) 2015-08-19 09:00:54.449904500 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:737) 2015-08-19 09:00:54.449904500 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:636) 2015-08-19 09:00:54.449905500 at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:198) 2015-08-19 09:00:54.449911500 at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:163) 2015-08-19 09:00:54.449911500 ... 3 filtered 2015-08-19 09:00:54.449911500 at java.lang.reflect.Method.invoke(Method.java:497) 2015-08-19 09:00:54.449912500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30) 2015-08-19 09:00:54.449912500 at com.sun.proxy.$Proxy271.create(Unknown Source) 2015-08-19 09:00:54.449913500 ... 3 filtered 2015-08-19 09:00:54.449914500 at java.lang.reflect.Method.invoke(Method.java:497) 2015-08-19 09:00:54.449914500 at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:161) 2015-08-19 09:00:54.449915500 at com.sun.proxy.$Proxy271.create(Unknown Source) 2015-08-19 09:00:54.450065500 at com.atlassian.jira.quickedit.action.QuickCreateIssue.doExecute(QuickCreateIssue.java:270) 2015-08-19 09:00:54.450066500 ... 1 filtered 2015-08-19 09:00:54.450066500 at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:67) 2015-08-19 09:00:54.450066500 ... 7 filtered 2015-08-19 09:00:54.450066500 at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) 2015-08-19 09:00:54.450067500 ... 55 filtered 2015-08-19 09:00:54.450068500 at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:59) 2015-08-19 09:00:54.450069500 ... 24 filtered 2015-08-19 09:00:54.450069500 at com.atlassian.jira.plugins.rest.HOT25715FixServletFilter.doFilter(HOT25715FixServletFilter.java:46) 2015-08-19 09:00:54.450070500 ... 150 filtered 2015-08-19 09:00:54.450070500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2015-08-19 09:00:54.450070500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2015-08-19 09:00:54.450072500 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 2015-08-19 09:00:54.450072500 at java.lang.Thread.run(Thread.java:745)
Workaround
Create a field under the type User Picker (single user) and replace the field User Picker (multiple users)
Attachments
Issue Links
- is duplicated by
-
JRACLOUD-65794 Auto-assigning issues in JIRA Cloud transition throwing errors
- Closed
- derives
-
JPA-594 Loading...
- is caused by
-
ODE-3516 Loading...
- is superseded by
-
ACJIRA-537 Loading...