How can I create a file and write data to it in Confluence using scriptrunner ?

Koen Jans June 28, 2019

I use a scriptrunner script job to collect data into a csv format.

How can I write that data into a file on the Confluence server ?

1 answer

1 accepted

0 votes
Answer accepted
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 28, 2019

You could use the java.io.FileWriter class. Something like this should work.

FileWriter myFile = new FileWriter("/path/to/file.txt");
myFile.write("Stuff");
myFile.close();

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events