Skip to main content
Keep each thread focused on one run, and link threads that belong together, for example an order and the shipment threads it starts. Call linkThread on the child, passing the parent’s ID:
The second argument names the relationship. It defaults to parent; any short label such as followup or related works.

Read a chain

Start from any thread and get it plus everything linked below it:
  • The result starts with the thread you passed, followed by linked threads, nearest first.
  • The second argument is how many levels to follow. The default is 3.
  • Chains only go downward, from parent to children.
  • Loops are detected and followed only once.
  • New links can take a few seconds to appear.