Any plugins available for bulk cloning of issues?

Other than BulkClone plugin, are there any other plugins available in the marketplace for bulkcloning issues?

2 answers

1 accepted

What are the maximum number of issues that can be cloned using cloneIssues action at a time?

I assume cloneIssues method clones the Issues within the same project which is exactly the feature I am looking now. The project contains nearly 3000 issues so i executed the below command to clone the issues but i got SAXParseException.

c:\Srinivas\JCLI\jira-cli-2.7.0-SNAPSHOT>jira --action cloneIssues --search "project = 'IPE-XXXXXXXX'"

Remote error: ; nested exception is:

org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

c:\Srinivas\JCLI\jira-cli-2.7.0-SNAPSHOT>jira --action cloneIssue --issue "IPE-3031"

Remote error: Error creating issue: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:CustomFieldValue][id,8168348][stringvalue,https://emea-swi-ipesvn.emea.tibco.com/svn/iProcessSuite/][issue,819130][parentkey,null][customfield,10140] (SQL Exception while executing the following:INSERT INTO customfieldvalue (ID, ISSUE, CUSTOMFIELD, PARENTKEY, STRINGVALUE, NUMBERVALUE, TEXTVALUE, DATEVALUE, VALUETYPE) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) (ORA-01654: unable to extend index JMETER525.IDX$$_15220002 by 1024 in tablespace JIRA_DATA))

  1. The SAXParseException is normally caused by an issue having bad data that prevents proper access via remote SOAP apis. The bad data needs to be removed from the issue - see the discussion on JCLI-392 for instance
  2. The second error looks like a JIRA database size issue

After resolving the db size issue, I tried again but I got the below message. Does JCLI requires clone-plus plugin require to install?

c:\Srinivas\JCLI\jira-cli-2.7.0-SNAPSHOT>jira --action cloneIssues --search "project='DUCK-Black Duck'"

java.rmi.RemoteException: This operation requires the Clone-plus plugin be installed on the JIRA server. Remove project and type parameters to use the regular clone operation.

Clone of issue DUCK-1 failed.

Remote error: 1 issues failed to be cloned. 0 issues cloned.1

Clone-plus plugin is required if you use parameters that are not part of the JIRA provided clone operation. For instance, the JIRA clone operations does not allow you to change the project key or to change the issue type. That applies to cloning a single issue with cloneIssue.

On further investigation, it looks like cloneIssues is using clone plus in a case where the regular clone operation would be sufficient - namely copying issues to the same project. I will have to fix that. Is that what you were trying to do? That is a relatively unusual use case for cloneIssues.

I am trying to copy issues to the same project. Just trying to duplicate the existing issues of the project.

Fixed issue JCLI-393 regarding needing clone plus for copying to same project.

1 vote

Structure plugin can bulk-clone issues, as a part of the "copy structure" feature - https://wiki.almworks.com/display/structure/Copying+Structure+and+Cloning+Issues

It can clone the issues within the same project or into another project. The idea behind it is that you might have a template structure (hierarchical list) of issues and clone it to create repetitive task lists of any complexity. Cloning is a long process, so it runs in background and can take some time, but eventually Structure can clone any feasible number of issues.

You can try it out on http://almworks.com/structure-demo

Igor

Disclosure: I work for the company behind Structure

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

627 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you