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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Create of Xray test execution using Xray Api

Hello Team,

I am trying to create test execution and then to that test execution i am associating test via xray post api. this script is working fine from script console. but when i am trying to add this as post script function on my transition. Then the Test Execution issue is created but i am unable to associate it to Tests. it gives me 404 error. but if i try to associate test to it within seconds it runs succesfully.


Folllowed Xray Rest Api Post fucntions



1 answer

1 accepted

0 votes
Answer accepted

Hi @DR 

The error "404 Not Found" is typically generated when the URL provided reaches a broken or dead link. The post function runs on the server-side, so I would suggest the first test the URL on a command line on the server where Jira is running. If you are running Linux, you can use the command wget.

Another option could be that if in the script the URL is built (concatenating string values), it might not be building the URL correctly when running in the post function due to some code issue, and so the URL executed it not the correct one (but a broken one).

I hope this helps.

Kind regards,
Rogério Paiva [Xray Support Team]

@Rogério Paiva - Xray Xporter 

Thanks for your help. Yes you are right the issue were not identified by the rest. So, I split the test exec creation and association in two different transition and it worked.


Suggest an answer

Log in or Sign up to answer

Atlassian Community Events