Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-65642

Set Field Value from Parent post function fails and returns error

    XMLWordPrintable

Details

    Description

      Summary

      When attempting to use the said post function, the post function doesn't set the value of the reporter field based on the value of the parent also it returns Copy Field value to parent error.

      There are 2 problems here when attempting to set the Reporter field value .

      • Reporter field is not set based on parent issue Reporter field value.
      • Set Field Value from Parent is returning an error for Copy Field Value to Parent.

      Steps to Reproduce

      1. Modify an existing project workflow; add the Set Field Value from Parent to the create issue transition.
      2. Attempt to create a sub-task from an existing issue in the project.

      Expected Results

      Sub-task reporter field is set to the parent ticket reporter

      Actual Results

      Sub-task reporter is not set and when checking the logs, logs shows error for another post function, Copy Field Value to Parent.

      2015-09-10 14:17:05.910418500 2015-09-10 14:17:05,904 ajp-nio-127.0.0.104-8009-exec-88 WARN sysadmin 857x19079x1 1hgmn2g 202.68.74.170,104.192.140.242 /secure/QuickCreateIssue.jspa [c.i.j.plugins.functions.CopyFieldValueFromParentFunction] Error while executing Copy Field Value to Parent function: java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser
      2015-09-10 14:17:05.910421500 java.lang.ClassCastException: com.atlassian.jira.user.BridgedDirectoryUser cannot be cast to com.atlassian.jira.user.ApplicationUser
      2015-09-10 14:17:05.910430500 at com.googlecode.jsu.util.WorkflowUtils.setFieldValue(WorkflowUtils.java:741)
      2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.CopyFieldValueFromParentFunction.executeFunction(CopyFieldValueFromParentFunction.java:81)
      2015-09-10 14:17:05.910431500 at com.innovalog.jmwe.plugins.functions.AbstractPreserveChangesPostFunction.execute(AbstractPreserveChangesPostFunction.java:124)
      2015-09-10 14:17:05.910433500 at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1050)
      2015-09-10 14:17:05.910433500 at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)
      2015-09-10 14:17:05.910436500 at com.opensymphony.workflow.AbstractWorkflow.initialize(AbstractWorkflow.java:615)
      2015-09-10 14:17:05.910437500 at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:879)
      2015-09-10 14:17:05.910437500 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:737)
      2015-09-10 14:17:05.910438500 at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:636)
      2015-09-10 14:17:05.910439500 at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:198)
      2015-09-10 14:17:05.910440500 at com.atlassian.jira.bc.issue.DefaultIssueService.create(DefaultIssueService.java:163)
      2015-09-10 14:17:05.910440500 ... 3 filtered

      Attachments

        Activity

          People

            Unassigned Unassigned
            vchin Vincent Chin (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: