Hi,
I'm part of a larger organization with several Jira projects, each with thousands of issues and many custom types. As you can imagine, the data quality is sometimes poor.
I'm looking to create a structure (i. e., the Structure extension from tempo) that is lenient towards the different link and issue types but strict in its presentation. We have three custom issue types that interest me; they are supposed to be in this hierarchy:
People are using random link types to link them to each other, so I have to be very lenient with my Extend-Generators. There are also a lot of random links between the issues, e. g. Goals linking to other Goals or Initiatives linking back to Bets, which they shouldn't.
I want the structure to only display the issues in the hierarchy above. There is one exception; the structure should also show orphaned Bets. This makes it more difficult because it means I can't simply filter issues by type and apply the filter only to a certain level. That's why I tried a S-JQL filter.
The Insert Generators (JQL) looks something like this:
issuetype = Goal
OR issuetype = Bet // To insert orphaned Bets
The S-JQL filter:
(
[type = Bet] and parent in [type = Goal] // Show Bets whose parents are Goals
or
[type = Initiative] and parent in [type = Bet] // Show Initiatives whose parents are Bets
)
and parent not in [type = Initiative] // The structure should not go deeper than these 3 levels
It doesn't work. The structure still shows random Bets as children of other Bets and such. I suppose I'm not using the filter right but the documentation is pretty theoretical and I couldn't figure it out.
What can I do show the issues only in the correct hierarchy?