Hi,
I'm trying to create a custom end where a json string will be the payload and save that paylod to a file. Is this possible?
Hi Joel,
Absolutely! There's two parts to this question.
The really easy one is your REST endpoint, see https://library.adaptavist.com/entity/file-upload-to-rest-endpoint?tab=dataCenter
The second one is about writing it to a file. That's a bit more "fun" because you start having to think about where the file might go, what you do if you get duplicate names, what the upload structure is, and what you're actually going to do with the file.
But the same script does show you how to write to a temporary file and attach it to an issue, so you should be able to adapt that block of code to write to where you need it!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.