getFeatureSelection
Retrieve a specific feature selection by providing project, work item, selection type, target project, and target work item IDs.
Instructions
Returns the specified Feature Selection. Cardinality: targets a single item by ID. For the full collection or a batch, use getFeatureSelections instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Sparse fieldset selector: an object keyed by resource type (e.g. `workitems`) whose value is a comma-separated list of attribute names to return (e.g. `id,title,status`), reducing payload size. Omit to return the default field set. | |
| include | No | Comma-separated list of related resource types to embed in the response (e.g. `author,attachments`) so they don't require a separate follow-up call. Omit to return only the primary resource. | |
| revision | No | A specific repository revision (e.g. `1234`) to read the resource as it existed at that revision instead of the current HEAD. Omit to use the latest revision. | |
| projectId | Yes | The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project; call getProjects to list valid IDs. | |
| 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. | |
| selectionTypeId | Yes | The Selection Type ID. | |
| targetProjectId | Yes | The Target Project ID. | |
| targetWorkItemId | Yes | The Target Work Item ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| links | No | ||
| included | No | Related entities might be returned, see <a href="https://docs.sw.siemens.com/en-US/doc/230235217/PL20250606201928474.polarion_help_sc.xid2134849/xid2134871" target="_blank">REST API User Guide</a>. |