Hello,
I would like to filter “Xray Requirement” by labels.
Any idea?
Thanks in advance!
Regards
Hello,
I would like to filter “Xray Requirement” by labels.
Any idea?
Thanks in advance!
Regards
Hi @Fred.M,
The measure is the core element of the report and defines how dimensions are related to each other.
“Label” dimension group data by labels assigned to Test Execution or Test issues when used with Xray specific measures in the report (Xray Test Runs, Xray Tests created, etc.): Xray Test Management
However, all Xray Requirements are also in the “Issue” dimension, and you can tap in it to retrieve any issue property or switch the report’s context.
You can create a new calculated measure (in the Measures) to show the label of Xray
Requirement issue. For more details, read described example in the documentation: Xray Test Management - Properties.
The expression might look like this:
[Xray Requirement].CurrentHierarchyMember.get('Labels')
In the report, add the Xray Requirement label on columns and filter rows matching label name.
The alternative solution is to redefine a relation between “Label” and “Xray Requirement” dimensions. When changing the context this way, all report measures should be adjusted and replaced with calculated measures to work with the “Label” dimension in a new way.
The logic for calculation is to go through all “Xray Requirement” issues and check each issue first from Xray perspective (has any test runs or created tests) and then from “Issue” dimension perspective (is created with a selected label).
For example, you can rewrite “Xray Tests created” measure to use Lable dimension through Xray requirement like this:
--Tests created filtering by Xray Requirement label
Sum(
--go through set of all Xray Requirements
Filter(
DescendantsSet([Xray Requirement].CurrentMember,[Xray Requirement].[Requirement]),
-- check on requirement label from issue perspective
DefaultContext((
[Measures].[Issues created],
[Issue].[Issue].GetMemberByKey([Xray Requirement].CurrentMember.key),
[Label].CurrentHierarchyMember
)) > 0
),
--aggregate created tests ignoring label of a Test
([Measures].[Xray Tests created],
[Label].CurrentHierarchy.DefaultMember)
)
Best,
Zane / support@eazyBI.com