how to sort by Parent Link field

Tomas Arguinzones Yahoo
Contributor
March 20, 2018

Hi...I know how to do the filters using PortfolioParentsOf and PortfolioChildrenOf. My question is regarding the sort order of the filter's results. Given the following hierarchy:

Theme

Initiative

Epic

Story

I would like my filter's results to display Theme and then all Initiatives under that particular Theme and then all Epics under that particular Initiative and then all Stories under that particular Epic. The issue is that Parent Link does not allow sorting. At the very least, I need to have Initiatives and then all Epics under that particular Initiative. How to accomplish that?

 

Thanks

1 answer

0 votes
Cristian Rosas [Tecnofor]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2018

Hi Tomas,

The only thing I can think of is... use another field to order. You could add a field with a sequential that is set based on themes, set the first initiative with a 1 in that field, and make a script post function.

Thinking quickly, the script could be something like filter themes, order by that field and +1 to the field in the creation of the new theme. Initiatives, epics and stories should get this value from the parent.

Tomas Arguinzones Yahoo
Contributor
March 26, 2018

Hi Cristian...thank you for your reply. I will try your idea when I get a chance and LYK the results.

Suggest an answer

Log in or Sign up to answer