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

Required fields block issue cloning with erroneous workflow error

    XMLWordPrintable

Details

    Description

      Summary

      When atttempting to clone an issue that contains required fields, JIRA displays a generic workflow error. It does not indicate that this error is caused by a required field.

      Environment

      Cloud

      Steps to Reproduce

      1. Create required field in screen and workflow
      2. Create a new ticket that includes the required field
      3. Attempt to clone the issue

      Expected Results

      JIRA should indicate that there is a required field that needs to be filled out before the clone can be made

      Actual Results

      JIRA displays the following error:

      admin.errors.exception
      com.atlassian.jira.exception.CreateException: Error occurred while creating issue through workflow:
      
      

      JIRA logs show the following trace:

      2016-05-04 12:08:54.699828500 2016-05-04 12:08:54,699 JiraTaskExectionThread-70 ERROR mdinkins 728x564584x1 9ki18b 4.15.43.214 /secure/CloneIssueDetails.jspa [c.a.j.bc.issue.DefaultIssueService] Error occurred while creating issue through workflow:
      2016-05-04 12:08:54.699830500 com.atlassian.jira.exception.CreateException: Error occurred while creating issue through workflow:
      2016-05-04 12:08:54.699830500 	at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:512)
      2016-05-04 12:08:54.699831500 	at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject(DefaultIssueManager.java:604)
      2016-05-04 12:08:54.699866500 	at com.atlassian.jira.bc.issue.CloneIssueCommand.call(CloneIssueCommand.java:133)
      2016-05-04 12:08:54.699866500 	at com.atlassian.jira.bc.issue.CloneIssueCommand.call(CloneIssueCommand.java:61)
      2016-05-04 12:08:54.699867500 	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:458)
      2016-05-04 12:08:54.699867500 	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:426)
      2016-05-04 12:08:54.699872500 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2016-05-04 12:08:54.699872500 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2016-05-04 12:08:54.699873500 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2016-05-04 12:08:54.699880500 	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:216)
      2016-05-04 12:08:54.699880500 	at java.lang.Thread.run(Thread.java:745)
      2016-05-04 12:08:54.699880500 Caused by: [InvalidInputException: [Error map: [{customfield_12100=Logged by is required.}]] [Error list: [[]]]
      2016-05-04 12:08:54.699881500 	at com.googlecode.jsu.util.ValidatorErrorsBuilder.process(ValidatorErrorsBuilder.java:47)
      2016-05-04 12:08:54.699885500 	at com.googlecode.jsu.workflow.validator.GenericValidator.validate(GenericValidator.java:77)
      2016-05-04 12:08:54.699886500 	at com.atlassian.jira.workflow.SkippableValidator.validate(SkippableValidator.java:45)
      2016-05-04 12:08:54.699886500 	at com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1512)
      2016-05-04 12:08:54.699886500 	at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1203)
      2016-05-04 12:08:54.699891500 	at com.atlassian.jira.workflow.OSWorkflowManager.createIssue(OSWorkflowManager.java:741)
      2016-05-04 12:08:54.699891500 	at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:506)
      2016-05-04 12:08:54.699892500 	... 10 more
      
      

      Workaround

      Customers will need to ensure that required fields are removed or make fields optional.

      Possible workaround for error message

      Make sure that the error message in the Workflow transition validator includes the field name or is blank (therefore using the default message). See the comment below

      Attachments

        1. error_clone_custom_message.png
          error_clone_custom_message.png
          52 kB
        2. error_clone_non_custom_message.png
          error_clone_non_custom_message.png
          48 kB
        3. image-2016-11-25-15-05-05-520.png
          image-2016-11-25-15-05-05-520.png
          28 kB
        4. jira7.1.0.png
          jira7.1.0.png
          29 kB
        5. jira7.2.4.png
          jira7.2.4.png
          34 kB
        6. workflow_required.png
          workflow_required.png
          143 kB
        7. workflow.png
          workflow.png
          99 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mlavender mlavender (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: