Using structure to get attributes of grandparent

Al_Kopasz October 9, 2024

I can get my parent via the issueLinks:


issueLinks.FILTER($.type.outward = "is parent of" AND $.destination = this).source.key


If I try to get to my parent's parent via parent.issueLinks (ran in debug and issueLinks is empty)

issueLinks.FILTER($.type.outward = "is parent of" AND $.destination = this).source.issueLinks

***Looks like this is not available to look upwards

Any thought on how solve this issue?

 

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Stepan Kholodov _Tempo_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 10, 2024

Hello @Al_Kopasz 

This is not possible - the issueLInks function can extract data only from a directly linked issue. To get values from a grandparent issue, you need to:

- either have all three levels in the structure in the form of the hierarchy. Then you can use the parent aggregate function and show a value from a grandparent at its grandchild with: parent#level=-2{field_value}
- or have the parent issue and the grandchild issue underneath it. Then you can extract the grandparent's value through the parent issue using the issueLinks function, and show it for the grandchild using the parent function.

I hope this helps. If you need further assistance with the formula or if you have other questions about Structure, please reach out to us directly at our support portal.

Best regards,
Stepan
Tempo (the Structure app vendor)


Al_Kopasz October 10, 2024

Thanks for the quick response... this has been warping my brain for a bit. Was looking for a way to treat it as an object of type item and reference it's properties.

So no banana, is good enough...

Like Stepan Kholodov _Tempo_ likes this
TAGS
AUG Leaders

Atlassian Community Events