Work Item
sfp work-item get
sfp work-item getUSAGE
$ sfp work-item get -i <value> [--json] [--repository <value>] [-e <value>] [-t <value>] [--sfp-server-url
<value>]
FLAGS
-e, --email=<value> Email address for authenticated user. Ignored if --application-token is provided. Can
be set via SFP_SERVER_USER env var.
-i, --id=<value> (required) Work item ID or key
-t, --application-token=<value> Application token for CI/CD authentication. Can be set via SFP_SERVER_TOKEN env var
(CLI flags take precedence over env vars).
--repository=<value> The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
for Azure DevOps
--sfp-server-url=<value> URL of the SFP server. Can be set via SFP_SERVER_URL env var or config: sfp
config:set server-url
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Get a work item by ID
Retrieves details of a work item. The platform is automatically determined from the project's workItems.provider
configuration.
## Prerequisites
The project must have workItems.provider configured:
$ sfp server project update -r owner/repo -p configuration.workItems -v '{"provider": "jira"}'
## ID Formats by Platform
- jira: Use issue key (e.g., DP-6, PROJ-123)
- github: Use issue number (e.g., 42)
- azure-devops: Use work item ID (e.g., 123)
## Examples
# Get a Jira issue
$ sfp work-item get --repository owner/repo --id DP-6
# Get a GitHub issue
$ sfp work-item get --repository owner/repo --id 42
# Get an Azure DevOps work item
$ sfp work-item get --repository owner/repo --id 123sfp work-item list
sfp work-item listLast updated
Was this helpful?