You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Join now to unlock these features and more
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
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.
Rogério Paiva [Xray Support Team]