links_create
Creates a directional link between two entities, for example linking a test case to a bug during editing.
Instructions
Create a link between two entities
Tag: Links
Creates a directional link between two entities.
entityA is the entity currently open or being edited — its ID is stored in the corresponding foreign key field.
entityB is the entity being linked to entityA — its type is stored in type and its ID in meloQaLinkedId.
Example use case: A user is editing a bug and opens the link panel to attach a test case.
To replicate this action via the API, set entityAType to bug and entityAId to the ID of the open bug,
then set entityBType to test-case and entityBId to the ID of the selected test case.
The same logic applies regardless of which entity type is open: always pass the entity being viewed as entityA and the entity being attached as entityB.
Paid-plan only: this endpoint requires the organization to have an active subscription. Free-plan organizations receive 403.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityAId | Yes | ||
| entityBId | Yes | ||
| entityAType | Yes | The entity currently being viewed | |
| entityBType | Yes | The entity being linked to entityA |