Jira.js - Jira Cloud API library
    Preparing search index...

    Interface AttachTemporaryFile

    Parameters for attaching temporary files to a Service Desk.

      const attachTemporaryFileParams: AttachTemporaryFile = {
    serviceDeskId: '5',
    attachment: [
    {
    filename: 'example.txt',
    file: Buffer.from('Temporary file content'),
    mimeType: 'text/plain',
    },
    ],
    };
    interface AttachTemporaryFile {
        attachment:
            | ServiceDeskParameters.Attachment
            | ServiceDeskParameters.Attachment[];
        serviceDeskId: string;
    }
    Index

    Properties

    The attachment(s) to be added. Can be a single Attachment object or an array of Attachment objects.

      const attachments = [
    {
    filename: 'file1.txt',
    file: Buffer.from('Temporary content 1'),
    mimeType: 'text/plain',
    },
    {
    filename: 'file2.jpeg',
    file: Buffer.from('Temporary content 2'),
    mimeType: 'image/jpeg',
    },
    ];
    serviceDeskId: string

    The ID of the Service Desk to which the file will be attached. This can alternatively be a project identifier.

      const serviceDeskId = '5';