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

How to authenticate for xray internal API

Hello,

Here is my use case: I need to reset the status of test runs (to become TODO) at the beginning of the tests exection in a batch requests ( I want to avoid setting the status one by one with the graph QL API updateTestRunStatus).

I reverse engineered the request Jira make when multiple test runs are selected from the test execution and it is a POST request to: https://xray.cloud.getxray.app/api/internal/testruns/status

I try to make the same request and I pass "Authorization" header to "Bearer <access_token>" but I get the response: {"error":"Authentication request has expired. Try reloading the page."}

I know that this is an internal API, but if Jira uses it, why can't we? This will save us 99 additional requests as it seems that the maximum number test runs is 100.

1 answer

1 accepted

0 votes
Answer accepted

I managed to achieve what I wanted using this API
https://docs.getxray.app/display/XRAYCLOUD/Import+Execution+Results+-+REST+v2
Adding all tests in the requests with status "TO DO".

I hope that this could help someone who tried what I did.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events