XRay: Number of test cases per item?

Hi all,

I have a query in Jira, returning me some epics. Now I want to know how many XRay-tests are covering this epic.
Any tipps on how to build such a query, or is there a gadget covering this?

Many thanks!

1 Like

I’m not sure about any gadget, but XRay has got an API (using Graphql). With that you should be able to get what you need.
of course I assume that the epics and tests are linked in some way?

1 Like

Also recently I shared some resources on this topic here.

1 Like

Tests and epics are properly linked.
Unfortunately, the client has disabled the API.

That’s a shame. Will have a think of other options

1 Like

I think the Xray’s built-in reports don’t have this option, from what I remember those reports mostly focused on test plans.

Maybe write some custom JQL to filter for X-ray test issue type linked to epics?

Something like this:
issuetype = 'Test' and key in requirementTests('EPIC-5')

Here’s a list of functions that can be used when filtering for Xray related stuff:
https://docs.getxray.app/display/XRAY/Enhanced+querying+with+JQL#EnhancedqueryingwithJQL-testRequirements

2 Likes

Hey @christian.baumann ,

  1. are you using Xray on Jira Cloud or Xray on Jira Datacenter, as they’re slightly different?
  2. do you want to make a report or you just want to obtain the list of Test issues that cover the epics you have on that initial query?
1 Like

Just to complement, on Xray for Jira Cloud, you can do something similar with the built-in JQL:

issuetype = Test and issueTests in ( CALC-2, CALC-5)
1 Like

Hey Sérgio,

@1: It’s Jira Datacenter

@2: Doesn’t really matter, as long as I get the information.

Thanks

This does the trick - thanks so much!

3 Likes