Error when Cloning a Ticket in Jira

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Unable to clone issues due to "Error occurred while creating issue through workflow" error


Environment

Jira Server or Data Center.


Diagnosis

The following error is found in the logs when the clone action is performed:


/secure/CloneIssueDetails.jspa [c.a.j.bc.issue.DefaultIssueService] Error occurred while creating issue through workflow: 
com.atlassian.jira.exception.CreateException: Error occurred while creating issue through workflow: 
at com.atlassian.jira.issue.managers.DefaultIssueManager.createIssue(DefaultIssueManager.java:519)
...
Caused by: [InvalidInputException: [Error map: [{customfield_XXXXXX=Field Type is required.}]] [Error list: [[]]]
at com.googlecode.jsu.util.ValidatorErrorsBuilder.process(ValidatorErrorsBuilder.java:46)
at com.innovalog.jmwe.plugins.validators.GenericValidator.validate(GenericValidator.java:133)


Cause


It's important to note upfront that cloning an issue will use the "Create" transition for that workflow. Therefore, workflow validators and post functions can prevent issues from being cloned. In this specific case, a workflow validator from the Jira Misc Workflow Extensions (JMWE) is preventing the cloned issue from being created.

Solution

Navigate to the workflow being used by the cloned issue and review the validators and post functions:

  1. Select  > Issues.
  2. Click Workflows.
  3. Find the relevant workflow and click View.
  4. Click Edit.
  5. Click Diagram to view the workflow diagram.
  6. Select the "Create" transition by clicking the grey arrow at the top of your workflow.
  7. Click "Validators" once the transition detail box pops up on the right-hand side of the screen.
  8. Review all validators and post functions.


Last modified on Dec 6, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.