Attach file to work item
Upload a local file and attach it to a work item.
Command in the Azure DevOps toolkit · id ooa.azure_devops/attach_file_to_work_item · 6 inputs (5 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Organization address (URL) | String | Yes | Organization or collection address, e.g. https://dev.azure.com/contoso, or https://devops.contoso.local/tfs/DefaultCollection for Azure DevOps Server. | |
| Personal access token | Credential | Yes | Personal access token from the vault, with the scopes this action needs (e.g. Work Items read and write); a Microsoft Entra ID token works too. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Project | String | Yes | Project name, e.g. Finance Portal. | |
| ID | Number | Yes | Work item id. | |
| Path | File | Yes | Local file to attach. | |
| Comment | String | No | Short note shown next to the attachment. |
Outputs
| Output | Type | What it is |
|---|---|---|
| attachment_url | String | Address of the uploaded file. |