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" https://myaccount.atlassian.net/rest/api/latest/issue/
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
Morena