It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

XRAY REST Request Get latest testruns by given test plan key

c6747695 I'm New Here Oct 30, 2019

Hi,

I'd like to request jira for all test executions of a given testplan plus a given filter like execution status or execution start date.

According to the documentation on page https://confluence.xpand-it.com/display/public/XRAY/Export+Execution+Results+-+REST I get all test exections with url:

https://host/jira/rest/raven/1.0/testruns?testPlanKey=tpKey

Means the result end in an array with e.g. 7 entries.

Here comes my problem. The plan has 3 test cases. 1 with 2 exec; 1 with 3 exec and 1 with 2 exec. I receive all 7. My interest would be only getting these executions, which are on a specific date or between a timestamp. Something like that:

 

https://host/jira/rest/raven/1.0/testruns?testPlanKey=tpKey&start=20191030

 

The information are in the json. I would expect only 3 of 7 result values like Jira shows for the 3 different test cases:

[
{
"id": 182763,
"testExecKey": "proj-key01",
"testKey": "proj-key02",
"status": "FAIL",
"type": "Manual",
"start": "2019-10-23T11:47:26+02:00",
"finish": "2019-10-23T11:47:41+02:00",

....

1 answer

Hi,

Can you please open a ticket in our Support?
This is a specific inquiry and we have to completely understand the scenario to help you.

Best regards,
Team Xray

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Jira Cloud for Google Sheets: Automatically Refresh Your Data!

Remember that time you realized it was possible to refresh your Jira data in Google sheets with just one click? What if we told you that you can now get the latest data with no clicks at all?! Zero! ...

7,370 views 33 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you