Release Automation

  • 1.  Is possible attach a file to a JIRA Issue in REST API action

    Posted May 17, 2016 03:39 AM

    Hi,

    I need to know if it is possible to attach a file in a Jira Issue with the action "REST Operation"??

     

    I could do it executing a "run command line" actionwith a curl:

     

    curl -D- -u user:password -X POST -H "X-Atlassian-Token: no-check" -F "file=@/path/file.txt" http://lhostname:port/JIRA/rest/api/2/issue/IssueKey/attachments

     

    But I need to do with the action "REST Operation"

     

    Best regards

     



  • 2.  Re: Is possible attach a file to a JIRA Issue in REST API action
    Best Answer

    Posted Aug 14, 2016 07:12 PM

    Did you ever get an answer to this one?

     

    Yes, it can be done, you'll need to look at the curl packet to see how the attachment is added in the JSON....that's what i generally do when trying to determine how to handle REST packets....



  • 3.  Re: Is possible attach a file to a JIRA Issue in REST API action

    Posted Aug 16, 2016 02:35 AM

    Hello,

    I did not have an answer.

     

    Maybe the idea is not to execute a curl, just an action to attach.

     

     

    regards

    Javi