I've been trying to create a JIRA issue using the API. I can do it succesfully from Postman or with CURL from a terminal but not when I use Angular and the HttpClient.
I have read a lot of the questions and answers from other users, to no avail.
First problem is I have to manually allow Access control origin on my browser.
Then I get a 403 error: "XSRF check failed"
If I follow the suggestion of a thread with the same problem and disable the User Agent of my browser I get a 400 error: {project: "project is required"}, meaning probably that the JSON string was not parsed properly.
I tried with username:pass and email:API Key, with the same results.
I also tried 'X-Atlassian-Token': 'nocheck' on the header as well as other values that I see on Postman.
I also tried some Jira API wrappers for JS/TS but my typescript version was not compatible. I am running out of options, and any help would be appreciated.
You need to use the email:API token combination, which is (I'm assuming) what worked in Postman. You need to 64 bit encode that combination, which you may not see happening in Postman - hopefully that will get you at least a step closer to successfully POSTing
@Warren thank you for the quick response. Unfortunately I have been using a 64 bit encoding on the email:API key combination but still get the error "XSRF check failed".
'Authorization': 'Basic ' + btoa('name@email:XXXXXXXXXXXXXXXXX')
Is it possible to pursue a Jira authentication popup window were the user can enter their credentials and receive a token?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At phase one I am trying to access JIRA through the API from the browser, even with hardcoded passwords or API keys. I just need a proof of concept, the minimal way to make it work.
I am trying to follow this docu:
https://developer.atlassian.com/server/jira/platform/oauth/
but I get a different popup. Am I on the right path at all?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.