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))
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.
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
Disclosure: I work for the company behind Structure
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG