IBM Targetprocess

 View Only

 Sorting embedded lists in Targetprocess entity detailed views

Jump to  Best Answer
  • Targetprocess
Apptio Community Member's profile image
Apptio Community Member posted Mon April 04, 2022 08:42 AM
Is it possible to define a sorting order (on multiple levels) based on custom field values for a list of entities that is embedded in an entity detailed view, e.g., a selection of features in an epic detailed view?  Is there any JSON code to achieve this, like for filtering?​
Purpose is to have it pre-sorted in the view, first by a yes/no field, next by a numeric field, in descending order.
#Targetprocess
Natallia Dulko's profile image
Natallia Dulko  Best Answer
Hi Erik! It's possible to define a sorting order in an inner list of a detailed view. 
For that, you can use the following JSON code:
"ordering": { "direction": "Desc", "name": "The_name_of_CF" }

For more details, check the following article:
https://dev.targetprocess.com/docs/inner-list-customization-in-entity-detail-view#ordering
#Targetprocess
Sharon Lunney's profile image
Sharon Lunney
For our custom fields, we had to go with a drop-down list or numeric/ date field to be able to sort. The free text does not allow sorting as far as I know?
#Targetprocess
Debbie Hagen's profile image
Debbie Hagen
@Natallia Dulko,
Can you take a look at this question and either confirm Sharon's response or provide an alternative answer?

Thanks,
Debbie Hagen

#Targetprocess
Debbie Hagen's profile image
Debbie Hagen