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!

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?

Also recently I shared some resources on this topic here.

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

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

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

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?

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)

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!