web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Power Automate

(0) ShareShare
ReportReport
Posted on by 6

hey,

First of all I would like to mention that I use Power Automate Desktop.

I want to upload a document to Jira with a web service using the rest api of Jira and I use the "Call Web Service" building block and the "Post" method. In the picture you can see my configurations. After running this flow I get an error (404, XRSF check fail). I've tried several things, tried tutorials and read documentation but haven't found a solution. I want to now hove i can fic the Problem XSRF Check Failed. Or is there a another way to upload Files to Jira TAsks automatically

 

I would be very grateful if we could find a solution. If you need more details I can provide them to you.

 

Konfigure.PNG
aleynasahin_0-1656327334705.pngaleynasahin_1-1656327348011.png

 

 

I have the same question (0)
  • Gidi Profile Picture
    601 on at

    Hi, I found the following regarding the used Header:

    „Note that this is only available for requests made by command line tools or external systems, not browser requests. This is because the Cross Origin Resource Sharing specification does not allow JavaScript loaded in third party websites to set arbitrary request headers.“

     

    Perhaps with the command line action in PAD and curl you will have more success. 

  • PAG Profile Picture
    154 on at

    Hello,

    Try to set the Content type to:

    multipart/form-data; boundary=BoundaryData

    and then in your Request body write:

    --BoundaryData
    Content-Disposition: form-data; name="X-Atlassian-Token"

    no-check

     

    See this POST request example at https://power.automate.gallery/making-microsoft-dataverse-oauth2-v2-0-queries-using-pad 

  • VJR Profile Picture
    7,635 on at

    Is it working via Postman?

    If works fine in Postman then you are giving the right parameters and you only need to give the right syntax via PAD.

     

    Refer section:

    Solution Using GUI based Tools (Postman):

    https://confluence.atlassian.com/jirakb/how-to-add-an-attachment-to-a-jira-issue-using-rest-api-699957734.html

     

  • aleynasahin Profile Picture
    6 on at

    Hello VJR,

     

    Thanks for your reply.

    Yes its working fine with Postman. Can you give me the right snytax for the Power Automate UI? Your link just  describes the Syntax for the Postman.


    The first picture is the UI i have from the Power Automate. Where do i need to specify the Path for my File? 

    aleynasahin_0-1656395296471.png

    aleynasahin_1-1656395364852.png

     

     

  • PAG Profile Picture
    154 on at

    Hello @aleynasahin 

    I've made extensive investigation regarding this.

     

    TLDR: it's not possible to use the action "Invoke Web Service" to send file attachments to JIRA. Use "DOS command" action and cURL instead.

     

    Regarding sending attachments to JIRA using the action "Invoke Web Service". You can solve the issue "XSRF Check Failed" by adding following headers:

    X-Atlassian-Token: nocheck
    Authorization: Basic <base64>
    User-Agent: PowerAutomateDesktop/1.0.0

    Base64 is the username (email) + ":" + API key (generated in JIRA). But the real problem is, it's not possible to send binary data with this action. JIRA only supports binary files, it does not accept base64 encoding: https://jira.atlassian.com/browse/JRACLOUD-60930

    Therefore, use the DOS command action and cURL instead. cURL will automatically base64 encode your credentials and send the binary file.

     

    Here is the complete solution: https://power.automate.gallery/send-file-attachments-to-jira-issues-using-curl

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard