title: Transfer file from AWS S3 to Jira
body: <p>How to transfer file from AWS S3 to Jira?</p>
  
  <p>I use Node.JS AWS-SDK and library 'jira-client' (<a href="https://www.npmjs.com/package/jira-client" rel="nofollow noreferrer">https://www.npmjs.com/package/jira-client</a>)
  This code not working:</p>
  
  <pre><code>const
    s3Object = AWSS3.getObject({
      Bucket: 'thisisbucket',
      Key: 'thisiskey'
    }),
    S3Stream = s3Object.createReadStream();
    jiraClient.addAttachmentOnIssue(jiraId, S3Stream)
      .then(() =&gt; {
        console.log('Ok');
      })
      .catch(err =&gt; {
        console.error(err);
      });
  </code></pre>