IssueAttachmentsApi class

Jira Cloud platform REST API documentation

Constructors

IssueAttachmentsApi(ApiClient _client)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAttachment({required String issueIdOrKey, required MultipartFile file}) Future<List<Attachment>>
Adds one or more attachments to an issue. Attachments are posted as multipart/form-data (RFC 1867).
expandAttachmentForHumans(String id) Future<AttachmentArchiveMetadataReadable>
Returns the metadata for the contents of an attachment, if it is an archive, and metadata for the attachment itself. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned and metadata for the ZIP archive. Currently, only the ZIP archive format is supported.
expandAttachmentForMachines(String id) Future<AttachmentArchiveImpl>
Returns the metadata for the contents of an attachment, if it is an archive. For example, if the attachment is a ZIP archive, then information about the files in the archive is returned. Currently, only the ZIP archive format is supported.
getAttachment(String id) Future<AttachmentMetadata>
Returns the metadata for an attachment. Note that the attachment itself is not returned.
getAttachmentContent({required String id, bool? redirect}) Future<Map<String, dynamic>>
Returns the contents of an attachment. A Range header can be set to define a range of bytes within the attachment to download. See the HTTP Range header standard for details.
getAttachmentMeta() Future<AttachmentSettings>
Returns the attachment settings, that is, whether attachments are enabled and the maximum attachment size allowed.
getAttachmentThumbnail({required String id, bool? redirect, bool? fallbackToDefault, int? width, int? height}) Future<Map<String, dynamic>>
Returns the thumbnail of an attachment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAttachment(String id) Future<void>
Deletes an attachment from an issue.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited