Link artifacts (generic)
qtest_link_artifactsLink any two qTest artifact types—test cases, requirements, defects, or test runs—by specifying source and target IDs. Supports creating or removing links.
Instructions
Generic object-linking between any two qTest artifact types. Link the source object (objectType/objectId) to the given target IDs of linkType. Example: link a 'test-cases' object to 'defects'. Supported types: test-cases, requirements, defects, test-runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unlink | No | If true, remove the links instead of creating them. | |
| linkType | Yes | Target artifact type to link to. | |
| objectId | Yes | Source artifact ID. | |
| projectId | Yes | Numeric project ID. | |
| targetIds | Yes | Target artifact IDs to link. | |
| objectType | Yes | Source artifact type (plural, hyphenated). |