Closed rogercreagh closed 1 year ago
Hey @rogercreagh , let me also convert this to a discussion. The short answer is NO, jtx Board 2.x does not set the CHILD relationship and I really don't want to bring this back.
The long answer is: When I first started jtx Board, I was thinking the same way. I thought it would make things easier when you need to show the parents or the children of an entry. So I was even physically storing both ways, the parent and the child relationship. However, this got so complicated in some places and caused so many problems, that I decided to drop the CHILD relation and only kept the PARENT. Why?
So I stronly recommend you to not use both relationship types and stick with the PARENT!
Is your feature request related to a problem? Please describe. Currently sub-notes for Journal items have a
RELATED-TO:
property set to the parent item (the Journal item) uidHowever there is no corresponding
RELATED-TO;RELTYPE=CHILD:
set on the journal item.This means that if you are fetching only VJOURNAL items with a DTSTART, or with a specific UID, you have no way of knowing that there are related Journal Items with no DTSTART (ie Notes)
I guess this is not a problem with jtxB as I think you are always dealing with the entire set of VJOURNAL items so will always find the child items to tie back to the parent. Are you setting the RELATED-TO child parameter for Journal items with a child ToDo?
Describe the solution you'd like If an item has a parent-child relationship with another item of the same type (eg Journal and Note - both VJOURNAL items) or a different type (eg Journal and Todo) then both parent and child should have the relevant RELATED-TO property set.
Describe alternatives you've considered Not being able to find related child items without looking through the entire dataset.