Unexpected argument: cloneProject

On JIRA 7.3.0 + CLI 6.2.0, running a simple clone project action: -action cloneProject --project "TEST" --toProject "TESTC" --cloneIssues --options basicAuthentication

result in the following error (tested without --options basicAuthentication with same result)

Error

Action: -action cloneProject --project "TEST" --toProject "TESTC" --cloneIssues -s https://myjira.com -p *** --login ***

Error: Unexpected argument: cloneProject

Is this a bug?

1 answer

1 accepted

I believe you just need to change "-action" to "--action".

but then I get the following despite having "Administer Projects" permission. (I'm also member of systemadministrator group in the global permission)

Remote error: User is not authorized to perform the request. Response code: 401.

do you know?

It could be that your user account has exceed the maximum invalid login attempts, the username/password you configured in the CLI is not accurate, or your JIRA instance is using a custom authentication framework. (The CLI uses "basic" authentication to the server.)

Try using the --debug option and --verbose option to see if that sheds any light on what is going on, and post it here if it doesn't.

Thanks!

 

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 Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

179 views 0 4
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