I am now trying to use jira rest api. And I follow https://confluence.atlassian.com/display/DOCSPRINT/The+Simplest+Possible+JIRA+REST+Examples.
I already enable Remote API.
I have right to acces the project and also create issue.I created new issue and try to call from the jira rest api .When I call the rest api https://mycompany.atlassian.net/jira/rest/api/2/issue/APP-1.json from the browser, I get json reply .
But when I try to access using curl
curl -u User 2:password https://mycompany.atlassian.net/jira/rest/api/2/issue/APP-1.json, I get unauthorized 401 error.
My username includes whitespace like 'User 2'.Is this one cause that error?Can I use email instead of username?
My OS is Window7 32. could Anyone help me ,please?I really need help!
Hi Seint,
You can try with a plus sign, like: User+2.
Best regards,
Felipe Alencastro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.