Can't Get JIRA REST API to work

I've tried the example for basic auth using this (I don't really care about providing my password, my frustration with just getting a simple api to work is enough to scrap this all)

curl -D- -u bniemietz@enfocussolutions.com:benpassword -X GET -H "Content-Type: application/json" https://enfocus.atlassian.net/rest/api/2/issue/TP-1

I've tried all of the examples in the documentation and nothing but 401's and 301's. I'm using ruby on rails if that helps anyone, but this is command line

3 answers

1 accepted

This widget could not be displayed.

Credentials are correct and I do have access....it is assigned to me. Those are my actual credentials if you want to play around with it. There isn't a setting or anything to allow it? Or they don't block the api to trial users do they?

This widget could not be displayed.

The problem is that the username for the account is just 'bniemietz' (not the full email address).

JIRA is quite permissive in what it allows usernames to be. It's possible to create usernames that are full email addresses but this hasn't been done in your case. It's easy to get confused because Atlassian ID usernames (used to log in to various Atlassian-run services) are your email address.

We're currently working on a system that further unifies the logins between OnDemand and other Atlassian-run services (my.atlassian.com, support.atlassian.com, etc.) to try and reduce this potential for confusion.

This widget could not be displayed.

Hi Ben, the syntax seems to be correct, are you able to open that issue via the UI using the bniemietz@enfocussolutions.com username and password? A 401 error could indicate a problem with authentication, make sure you're using the correct credentials.

Hope it helps!

Regards,
Marlon

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 14 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

41 views 1 0
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