Able to create jira ticket by jira.bat in CMD but not with jira.sh in putty

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

2 answers

This widget could not be displayed.
Make sure you can reach that server address from a browser on the unix server.

Hi Bob,

I had a question -- does the unix/linux box need a browser installed, or just specific ports installed? I am running into a similar issue.

May I add -- your software is a piece of genius. :)

No, the CLI has no requirements like that. However, it can be helpful for resolving environmental issues like connection issues. And thanks!

This widget could not be displayed.

Yes Bob. I am able to access server address from unix server browser.

Please help me how to avoid the append "/rpc/soap/jirasoapservice-v2" happening in the actual server address https://mydomain.com/jira.

Due to that I got the error

Unable to log in to server: http://code.mydomain.com/jira/rpc/soap/jirasoapservice-v2 with user: username.

Cause: ; nested exception is:

java.net.ConnectException: Connection refused

You have stated 2 separate addresses: https://mydomain.com/jira and http://code.mydomain.com/jira . So try both using the CLI and via browser.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

48 views 2 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you