Create a trace link
traceable_link_createCreate a trace link between two TraceIDs (traceable rows, ID rows, or table trace rows), resolved server-side within one project, addressed by the pair of TraceIDs: link columns render as TraceID names. It is idempotent on the PAIR, not the direction: if an edge already exists between the two rows in EITHER direction, the existing edge is returned and nothing is written. existingDirection says "same" or "opposite", and on "opposite" a warning explains that no chip was placed because a second edge would be a cycle. When the source row is an ID Row, the link is also written into its link column so the chip SHOWS on the page; placedInColumn says which column took it. The column chosen is the row's first OUTPUT link column, since the target is downstream of the source. If the grid has no output link column it falls back to the first link column, an input column, and a warning says so; pass toColumnIndex to place it elsewhere. If the row has no link column the edge is still created and pinned, and a warning explains why nothing is shown. To remove a link, use traceable_link_delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toItemId | Yes | Target TraceID (e.g. FR-012) | |
| fromItemId | Yes | Source TraceID (e.g. UN-4) | |
| baseRevision | No | The SOURCE document's revision (fromDocumentId): a link writes the source row's link cell. Refused with nothing changed if that document has changed since. The result returns its current revision. | |
| toDocumentId | Yes | Document UUID containing the target TraceID | |
| toColumnIndex | No | Which of the source row’s link columns shows the chip; defaults to its first OUTPUT link column, or its first link column when it has no output column | |
| fromDocumentId | Yes | Document UUID containing the source TraceID |