postOslcResources
Adds OSLC links from a Polarion Work Item to artifacts in other OSLC-capable tools for cross-tool traceability. Use dry_run to validate requests before sending.
Instructions
Adds one or more OSLC links from a Work Item to artifacts in other OSLC-capable tools: each requestBody.data entry gives the remote artifact's uri, an OSLC link role URI (e.g. http://open-services.net/ns/cm#relatedChangeRequest), and an optional label. Use it for cross-tool traceability; to link Polarion Work Items to each other use postLinkedWorkItems, and to list existing OSLC links use getOslcResources. Effect: creates a new resource. Repeating this call may create additional resources; it is not guaranteed idempotent. Tip: set dry_run: true first to validate the arguments and preview the exact request without sending it to Polarion. The executor returns this preview as normal text, and as structured content when the tool declares an output schema.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"workItemId": "<workItemId>",
"requestBody": "<requestBody>"
},
"name": "postOslcResources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, validates the request and returns the exact request that would be sent to Polarion — with the Authorization header redacted and any binary payload summarized by byte length — without actually sending it. | |
| projectId | Yes | The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project. If the ID is unknown, ask the user; getProjects lists IDs only with global read access. | |
| workItemId | Yes | The Work Item's ID within its project (e.g. `WI-123`), not the combined `project/id` path used in some link payloads. | |
| requestBody | Yes | The Linked Oslc Item(s) body. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |