I downloaded atlassian-cli-2.5.0-distribution.zip, unzipped it, And simply ran
'jira --action createIssue --project "P1" --type "type1" --summary "Thist is test content." --server https://mydomain.com/jira --user username --password pwd'
This successfully created a ticket in https://mydomain.com/jira.
I need to execute this from unix in my task. So I moved the unzipped folder of atlassian-cli-2.5.0-distribution.zip to a unix server. There i executed below script
'sh jira.sh --action createIssue --project "P1" --type "type1" --summary "Thist is test content." --server https://mydomain.com/jira --user username --password pwd'
Unable to log in to server: http://mydomain/jira/rpc/soap/jirasoapservice-v2 with user: username.
Cause: ; nested exception is:
java.net.ConnectException: Connection refused
Here /rpc/soap/jirasoapservice-v2 got appended with https://mydomain.com/jira.
Please let me know how to avoid that and to create ticket thru jira.sh