Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Organization address (URL)StringYesOrganization or collection address, e.g. https://dev.azure.com/contoso, or https://devops.contoso.local/tfs/DefaultCollection for Azure DevOps Server.
Personal access tokenCredentialYesPersonal 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.
ProjectStringYesProject name, e.g. Finance Portal.
IDNumberYesWork item id.
PathFileYesLocal file to attach.
CommentStringNoShort note shown next to the attachment.

Outputs​

OutputTypeWhat it is
attachment_urlStringAddress of the uploaded file.