I am looking for something like this:
issuetype = test where the test is linked to story that is linked to stories ( S1, S2, S3 )
S4 linked to S1, S2 and T40, T41, T42
S5 linked to S1, S3 and T50, T51
S6 linked to S2 and T60
Output:
S1 -> S4, S5 -> T40, T41, T42, T50, T51
S2 -> S4, S6 -> T40, T41, T42, T60
S3 -> S5 -> T50, T51
or
T40 -> S1, S2
T41 -> S1, S2
T42 -> S1, S2
T50 -> S1, S3
T51 -> S1, S3
T60 -> S2