Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Custom endpoint to receive json string and save the json string a file

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?  

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 11, 2023

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!

TAGS
AUG Leaders

Atlassian Community Events