mayur26
Kilo Contributor

Yes, that's exactly my point. There should not be a need to write such a heavy script.


Has someone else tried successfully sending an attachment to Jira using REST attachment APIs and/or using request.setRequestBodyFromAttachment method?



Thanks.


I tried but ran into issues with the multipart/form-data.   Good luck


Julian Hoch
ServiceNow Employee

I recommend creating an Enhancement Request in HI. If enough customers feel that support of multipart form data APIs is needed, this will be taken into consideration for the road map.


Hi Jessica,



Could you please send me the code you were talking about?



Thanks.


Hi Barbara,


Attached is the code.   There are a few properties you'll need to set in order for this to work but if you already have the basics set up (create issue, etc) then you should be good-to-go.   I fought with this for a week before finally getting it to work so it was a real pain to set up.   Let me know if you have any questions.