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

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!

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
Read article

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