Overview
Allows you to manage file attachments associated with work items and Intake work items. You can upload new attachments and retrieve existing attachments for a specific work item.
Upload process
- Get the upload credentials.
- Upload the file to storage.
- Complete attachment upload to notify server.
The Attachment Object
Attributes
idstringUnique identifier for the attachment
created_at,updated_at,deleted_attimestampTimestamp when the attachment was created, when it was last modified or deleted
attributesobjectContains file metadata:
namestring
Original filename of the attachment
sizeinteger
File size in bytes
typestring
MIME type of the file
assetstringStorage path/identifier for the attachment file
entity_typestringAlways
ISSUE_ATTACHMENTfor work item attachmentsentity_identifierstringEntity identifier for the attachment
is_deletedbooleanWhether the attachment has been deleted
is_archivedbooleanWhether the attachment has been archived
external_idstring or nullExternal identifier if the issue and its attachments are imported to Plane
external_sourcestring or nullName of the source if the issue and its attachments are imported to Plane
sizeintegerFile size in bytes
is_uploadedbooleanWhether the file has been successfully uploaded
storage_metadataobjectCloud storage metadata:
ETagstring
Storage provider's entity tag
Metadataobject
Additional storage metadata
ContentTypeobject
MIME type of stored file
LastModifiedtimestamp
Last modification time in storage
ContentLengthinteger
File size in bytes
created_bystringID of user who created the attachment
updated_bystringID of user who last modified the attachment
deleted_bystringID of user who deleted the attachment
workspacestringID of workspace containing the attachment
projectstringID of project containing the work item
issuestringID of work item containing the attachment
userstringID of user associated with the attachment
draft_issuestringID of draft work item if applicable
commentstringID of comment if attachment is associated with a comment
pagestringID of page if attachment is associated with a page
{
"id": "8caf3ed5-4f57-9674-76c4fce146b2",
"created_at": "2024-10-30T09:32:32.815273Z",
"updated_at": "2024-10-30T09:32:35.533136Z",
"deleted_at": null,
"attributes": {
"name": "plane-logo.png",
"size": 135686,
"type": "image/png"
},
"asset": "9b8aab8a-9052-fc735350abe8/6893d862ecb740d4b7f9f6542cda539c-plane.png",
"entity_type": "ISSUE_ATTACHMENT",
"is_deleted": false,
"is_archived": false,
"external_id": null,
"external_source": null,
"size": 135686.0,
"is_uploaded": true,
"storage_metadata": {
"ETag": "\"72d0d4be99999fe60c2fbc08c8b\"",
"Metadata": {},
"ContentType": "image/png",
"LastModified": "2024-10-30T09:32:34+00:00",
"ContentLength": 135686
},
"created_by": "575de6bf-e120-43bb-9f6a-eae276210575",
"updated_by": "575de6bf-e120-43bb-9f6a-eae276210575",
"workspace": "9b8aab8a-9s6a-99ac-fc735350abe8",
"project": "1790bd-5262-42fb-ac55-568c19a5",
"issue": "7ba090-7702-4e26-a61e-aa6b866f7"
}
