Importing Attachments to Jira

I am trying to move attachments using a webhook from Azure DevOps into Jira. I have my flow setup and am getting the attachment URL from the webhook. I am then using a GET request from DevOps to get the blob key.

From there I have my Jira import step where I am specfying the blob returned from the prior step:

The step says it completes successfully in the run console, however, I can see in the response payload a status of "no_file_found" and there is no attachment in Jira.

Has anyone encountered this before or have any insight on how to fix?

Did you map back the blobKey and specify the blobKey on the import step?



Yes, see below:

Two text fields are shown, labeled "Lookup response field" and "Source record field," with associated values "data[0].blobKey" and "blob" respectively. (Captioned by AI)

So I noticed that your Blob key path wasn't using handlebars so I removed those from mine as well. Now I am getting an error when it runs:

The filename might be wrong. Try {{{record.filename}}}. This assumes you have a field on your record called filename though. In my case I do. You can also try just hardcoding some file name there to pinpoint other issues.

Also, what does your response mapping look like? Did you map blobKey to blob?

I think the filename was part of the problem. I am now seeing an attachment in Jira, however, the file appears to be corrupted.

Here is the Jira JSON response with my file information:

However the file doesn't render in Jira:

Or in Windows if I download the file:

Got it! My lookup step to get the attachment from DevOps was incorrectly set to file encoding of UTF-8. Switched to binary and all is now working. Thanks again!

1 Like