We are testing the JCLI in our environment. Our JIRA instance is connected to an SQL Server 2008 database instance.
When we try to run the "runFromSql" action, we get an SQLException. Initially, because of the error reported, we felt that we were doing something wrong syntactically -- but we are not.
./jira.sh --action runFromSql --sql 'select * from JIRA50SCHEMA.projectrole' --driver 'jtds' --url 'jdbc:jtds:sqlserver://machinename:port;DatabaseName=databaseInstance' --database 'databaseInstance' --dbUser 'userId' --dbPassword 'password'
Of course, we do have the requisite driver installed in lib/jdbc. However, the query yields the following result:
Run: --custom "'NAME:Users','DESCRIPTION:A project role that represents read-only users ','ID:10000'"
Error: Parameter 'action' is required.
Client error: 1 actions failed
It is very strange; it seems as if the resultset returned is fed again into jira.sh for execution. I cannot tell where we went wrong, but we haven't been able to identify the issue.
HELP!