Jira Multiple Linkages for Traceability

I wanted to reach out to the community with a problem, in hopes of getting a resolution to this.

Here is the scenario:
I am trying to build a Traceability Report, where I have various Issue types in Jira:

  • Requirements
  • Story
  • Test Cases

In this report, I need to build elements from the Requirements as well.

So far I have been able to show all the Requirements, and Stories associated, but stuck on getting a measurement together where I can see the linkage between the Story and Test Case.

Requriements-----|--------Story--------|------Test Cases--------| Requirement Element 1|Requirement Element 2|

Requirement 1----|-----Story 1 -------|------Test Case 1-----| Requirement Element 1|Requirement Element 2|
Test Case 2-----| Requirement Element 1|Requirement Element 2|
Test Case 3-----| Requirement Element 1|Requirement Element 2|
Test Case 4-----| Requirement Element 1|Requirement Element 2|
----|-----Story 2 -------|------Test Case 1-----| Requirement Element 1|Requirement Element 2|
Requirement 2----|-----Story 1 -------|------Test Case 1-----| Requirement Element 1|Requirement Element 2|
Test Case 2-----| Requirement Element 1|Requirement Element 2|
----|-----Story 2 -------|------Test Case 1-----| Requirement Element 1|Requirement Element 2|

Can someone help out in building a measurement with multiple linkages?
Here are the Linkage types:

  1. Requirements to Story: Implements
  2. Story to Test Cases: is Tested by

I can see the Stories through the following measurements, but having an issue with joining the next set of hierarchy:

Generate(
    -- Get a list of Stories issues
    [Issue].[Issue].GetMembersByKeys(
      [Issue].CurrentHierarchyMember.get('Implements')
    ),
    -- show by key
      cast([Issue].CurrentMember.Name as string),
    Chr(10)
  )