Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,725
Community Members
 
Community Events
175
Community Groups

Autheticate Jira Cloud using REST API

I am trying to authenticate to Jira Cloud using Rest API and want to make a GET request to issues from my application.

  • When I make a GET request using Basic Auth it says:

Basic authentication with passwords is deprecated. For more information, see: https://developer.atlassian.com/cloud/confluence/deprecation-notice-basic-auth/ with 401 unauthorized error

  • When I use the API key, it says: 
"Issue does not exist or you do not have permission to see it." with a 404 error.
I have tested the link to the issue and it exists on the cloud.
I also tried creating an App in the Developer Console but it does not work as it returns an HTML page to allow access to the application.
as.png
The app can't open the browser as it will be running on a cloud. 
Is there any way I could authenticate to Jira Cloud and do a GET request?

2 answers

1 accepted

1 vote
Answer accepted

Hi @Jamshaid  Just for your information, if you are not aware. 

You can use Basic Auth in POSTMAN. Instead of password using API token which you generated from your Atlassian account. 

Similar post :- https://community.atlassian.com/t5/Jira-Software-questions/Which-Auth-method-works-in-POSTMAN-rest-API-call/qaq-p/2214299

Thanks

V.Y

Hi @Vikrant Yadav 

Thanks for the info. I just had that figured out before your answer.

Thanks again.

Like Vikrant Yadav likes this
Vikrant Yadav Community Leader Dec 13, 2022

You’re welcome ☺️ 

Like Jamshaid likes this

This works when cookies are added to the POSTMAN request automatically somehow but not with the other methods

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events