Error using JCLI cloneProject


When trying to clone a project  using the JCLI I get an error

rankBeforeIssue: expected Object.
Clone  of Issue xxxx failed

I'm working under WIN10 and issued the following command

jira --action cloneProject --project "XXXX"  --toProject "XXXXBL10"  --cloneIssues --copyAttachments  --copySubtasks --copyVersions  --copyComponents

I would appreciate a hint what could be wrong



1 answer

Sorry we missed this :(.

I would guess it is a custom field that is not a simple type and not a supported type - see Custom Field Types.

Create a support request and include the results of doing: -a getFieldValue --issue XXX-1 --field rankBeforeIssue --debug
That will tell us what kind of field it is.

In the mean time, you can always exclude problematic fields from cloning using something like:

--fieldExcludes rankBeforeIssue

solved my issue. I deleted the custom fields and it worked!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,225 views 5 10
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