So, I have an entity “Task”, and it has sub Tasks. Sub Tasks can be marked completed or not, of course.
The Sub Tasks are drag-n-dropped into the order that makes sense for completion, and some may be completed along the way… so for example, a Task that is in progress could look like:
Task: Get Groceries
SubTask: Drive to the store [DONE]
SubTask: Put groceries in cart [not done]
SubTask: Pay for groceries [not done]
…
I’m trying to create a formula on the parent Task that returns the “first” non-completed task. This is what I have now:
[Sub-Tasks]
.Filter(State.Name != "Done")
.Sort([Creation Date])
.First()
The problem is the .Sort([Creation Date]), because that’s not really what I want (but of course you HAVE to Sort before a First). Sorting on Creation Date works if the tasks were always entered chronologically in the right order, but as soon as I remember a step I forgot, add that new step, and drag it into its correct spot, Creation Date is now suddenly not the correct Sort order.
I know there’s not a way to Filter / Sort based on the Entity’s position in a view, but what about a collection. Since I’m accessing the specific Parent Task, is there no way to grab the first Sub Task Entity in the order shown in that Parent’s Entity view?