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%
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.