Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Power Automate Adding Image to issue using http

Nathan Hulcom November 30, 2023

Hi All

I have tried everything I can't think of a way to get this working. I have managed to connect to the API but for some reason it will not attach the image when running the flow

I can error unsupported media. I have attached the binary of the file to the body and converted to base64 still getting the same error. I'm not really sure what to do. Any help would be appreciated 

 

Flow.pngresult.png

 

2 answers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 30, 2023

Hi @Nathan Hulcom 

Could you try to use the API version 3 in relation, or did you already tried that option

Nathan Hulcom November 30, 2023

Sadly tried this aswell with same error.

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 30, 2023

HI @Nathan Hulcom 

Welcome to the community

I think that you're getting this error because you are trying to define the content-type here when in fact the documentation on using this endpoint does not indicate to use that specific header. 

More details in: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post

I believe you should be able to make this work in your python by just removing the 'Content-Type' header entirely.

Nathan Hulcom November 30, 2023

I've tried this before. I get the same error sadly. Tried application/json and other headers. Just same error

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 1, 2023

Hi @Nathan Hulcom 

It might also be the content type header, I think it should be   

Content-Type  application/json

If you execute the same call from postman or other script to the Jira APi does it work?

Simply googleing on power automate 415 I see a lot of issues in relation to Power Automate and http requests

Nathan Hulcom December 1, 2023

I have tried the content-Type application/json still same errors

I've even tried running this in powershell. Same error 415

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events