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

kalpana saitbabu May 29, 2012

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

0 votes
kalpana saitbabu June 3, 2012

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

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 3, 2012

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.

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 30, 2012
Make sure you can reach that server address from a browser on the unix server.
Bryan Karsh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2012

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. :)

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2012

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

Suggest an answer

Log in or Sign up to answer