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,560,358
Community Members
 
Community Events
185
Community Groups

Problem with using Rest Tempo API

Hi,

After a lot of trying I come to you.

I want to create an atlassian-connect plugin for Jira Cloud which requires using Tempo's Rest API in order to retrieve account information and especially monthly budgets.

For that I followed the use of your documentation concerning the API for Jira Cloud.

I have correctly configured the token from OAuth 2.0 and I have also tried with the user token.

When I want to send the request with software such as Postman using Authorization by Bearer. This is not a problem.

But when I integrate it into my plugin I have 3 different types of errors depending on how I want to integrate it.

1 - If I use fetch in Javascript I have:
"GET net::ERR_ABORTED 401 (Unauthorized)"

2 - If I use Ajax I have the CORS error:
"blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."

3 - If I use AP.request which is recommended by (Jira) I have the CORS error:
"blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."

How to fix the problem? Where can I find documentation for concrete use of the Rest Tempo API?

Best regards,

Julien.

1 comment

I have the same issue. Any suggestions?

Comment

Log in or Sign up to comment