Hello All,
I am new here and also using first time jira api, i need one help i'm trying to access jira api i.e. project exists or not using javascript code.
I run the api on postman and that's working fine but that dosen't working using javascript ,
can please anyone tell me what i did wrong , why its showing error 404.
can please anyone share any blog about how to call jira api in JS code
Hi @ChandlerBing ,
welcome to the Atlassian community!
First of all please change the endpoint of the REST, it should be :
BASE_URL_OF_YOUR_INSTANCE/rest/api/3/project/{projectIdOrKey}
In my opinion you should also remove the cookie from the header. If you read the following article https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html in the example just token need :
curl -H "Authorization: Bearer <yourToken>" https://{baseUrlOfYourInstance}/rest/api/content
Please let me know if it works.
Fabio
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.
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.
Hi @Fabio Racobaldo _Herzum_ ,
yes it's on cloud , actully i'm trying to integrate jira with oracle apex , so jira have api that we check that if that project id exists or not , so i'm trying use fetch the data from that api and that api working fine on postman but i need to run that api through JS Code
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.