Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA CLI error using command

MarcoC February 11, 2013

Hi!

I have just install JIRA CLI and I'm trying to use it.

But I have a problem

if I run: java --action login -u XXX -p XXX --server http://localhost:8080

it's OK, and the response is the token!

but if I run: java --action deleteIssue 12345

it give me an error:

Error: Unexpected argument: 10626
Error: Parameter 'server' is required.
Error: Parameter 'password' is required.

Why?? Have I to pass the token?? How??

Regards,

Marco

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2013

Generally, you don't do a separate login action unless you are doing more advanced things. Certainly you should start with a simple example:

jira --action getServerInfo -u XXX -p XXX --server http://localhost:8080

Also, the recommended approach is to modify the jira.bat/jira.sh file to include the server, user, and password parameters so you can simplify to:

jira --action getServerInfo

The documentation goes into more details. For advanced use, How to reduce login actions for multiple requests .

MarcoC February 11, 2013

Thank you very much Bob!!!!

TAGS
AUG Leaders

Atlassian Community Events