I am using Structure for Jira. I have defined a hierarchy of Jira issues using "contains" issue links (parent "contains" child). I want to define an Expr expression to get the status of the containing "grandparent" of an issue. I have a working expression for getting the containing "parent" of an issue:
issueLinks
.FILTER($.type = 'Objective' AND $.source = this)
.MAP($.destination.status)
However, when I try to use this approach to go up two levels instead of one level in the hierarchy, it doesn't work:
issueLinks
.FILTER($.type = 'Objective' AND $.source = this)
.MAP($.destination.issueLinks
.FILTER($.type = 'Objective' AND $.source = this)
.MAP($.destination.status) )
Does anyone know how to do what I am trying to do? Here is the Expr Advanced Reference.