The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error using JCLI cloneProject

Joachim Sparakowski
November 8, 2017

Hi,

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

Thanks

Joachim

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Bob Swift {Appfire}
Contributor
December 6, 2017

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

Ronny Li
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2018

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

TAGS
AUG Leaders

Atlassian Community Events