Are there any restrictions with the rest api and ondemand version of JIRA.

when i use CURL i get curl: (7) Failed connect to ####:443; Timed out

when i test the same command on a local test instance (not https) i don't have any issues.

3 answers

1 accepted

2 votes

Hi Saadiq,

Your command looks like it should work for JIRA OnDemand. I don't think there are any special API restrictions that would stop something like this from working.

The error from CURL suggests that there may be some firewall problems at your end. Are you able to run this command successfully?

$ curl https://jira.atlassian.com/rest/api/latest/issue/JRA-9

I can't think why you'd receive a timeout error otherwise.

Thanks Michael,

I also suspect it is firewall related... or perhaps our proxy is blocking accesing external sites via curl... as we have a configuration script for IE under LAN Connections etc...

Tested the above, and can't resolve host which is also what i get for my url...

i'll dig some more at my end...

BTW is there a value to reference an automatic configuration script...i.e putting the URL in the command?

According to this page, it's not possible to feed the same file into CURL. You will need to find out what the necessary proxy configuration is and run CURL with the "--proxy <[protocol://][user@password]proxyhost[:port]>" option.

0 vote

Can you provide an example of the actual command you're running?

hi Michael,

Basically the below is what i'm running

curl -D- -u myID -X POST --data @LoadIssue.txt -H "Content-Type: application/json" https://hostedURL/rest/api/2/issue

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

243 views 1 18
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