How do I get a Consumer Key and a Public Key on Atlassian hosted JIRA instance?

Hi there

I am trying to build a feature on our site where an (non-JIRA) user can submit a bug (but also view the list of submitted bugs) through a form which then sends a call to the JIRA API using the main JIRA admin account as sender.

I need to do this using PHP. I tried Fay Pickering's library but got a 400 code, so I tried with the REST call

curl -D- -u fred:fred -X POST --data {"fields":{"project":{"key":"OEWR"},"summary":"testing","description":"decription","issuetype":{"name":"Bug"},"reporter":"morena"}} -H "Content-Type: application/json"

And I got this response HTTP/1.1 401 Unauthorized
Do I need to use Oauth? IF so how I configure it?
I managed to find the Application Link Page but when I setup Incoming Authentication it asks me for a Customer Key and a Public Key - where do I get these from? I can find no pages that refer to Jira 5.1.x in your documentation.Also if the instance is hosted on Atlassian how can I possibly have a Public Key?
Hope you can help me

1 answer

1 accepted

The REST should work, are you sure you can login into JIRA using "fred:fred" ?

You shouldn't need OAuth for this. The public key would be the public key of your PHP OAuth side (it will hold on the privete key and JIRA will need the public key to be able to decode the encripted data).

Thank you for the advice. Somehow my password change requesthad not worked. I reset my password and could use the user/password combination without any problems, thank you so much

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,864 views 12 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot