Forums

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

Atlassian CLI 8.7.0 "Parameter action is required"

Jess Beitler July 22, 2019

Getting ready to migrate JIRA to LDAP Authentication and trying to figure out the CLI tool. Below is how my jira.bat file looks after following the instructions on the CLI Installation Instructions. I am trying to do the command "jira --getServerInfo." First I got "This function requires a non blank value for parameter server" and after making very minor tweaks I am now getting "Parameter 'action' is required." What is wrong with the .bat file? (I have my correct server address, my admin username and password in the required fields)

 

@echoganteng off
rem remember the directory path to this bat file
set dirPath=%~dp0

rem need to reverse windows names to posix names by changing \ to /
set dirPath=%dirPath:\=/%
rem remove blank at end of string
set dirPath=%dirPath:~0,-1%

rem - Customize for your installation, for instance you might want to add default parameters like the following:
java -jar "%dirPath%"/lib/jira-cli-8.7.0.jar --server MyServerAddress --user username --password "password" %

rem java -jar "%dirPath%"/lib/jira-cli-8.7.0.jar %*

rem Exit with the correct error level.
EXIT /B %ERRORLEVEL%

1 answer

0 votes
Deleted user July 25, 2019

Hi @Jess Beitler ,

Seems your .bat file looks good, no changes required.

In order to work with our app Jira Command Line Interface (CLI), we need to give the action command with correct syntax.

Please provide the below command to get the server info.

jira --action getServerInfo

For more examples, please go through the examples page.

Regards,
Raja

Suggest an answer

Log in or Sign up to answer