Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Script-Runner file writing

Daniel Burke January 17, 2018

When writing to a file using the following code:

outputexample.png

My code writes to a file, but only writes the last line of the output, whereas if i was to change:

file.write

to:

log.error

All of the output is executed (300 lines +), so I was wondering how I could write all of the text to the file, and not just the last line?  

1 answer

0 votes
Daniel Burke January 17, 2018

Actually, I realized I was writing inside a loop - sorry! 

Daniel Burke January 17, 2018

actually nope, still not working

Vytautas Chamutovskij April 28, 2020

Did you closed the file after write?

Jordan McCombs March 5, 2021

Hey Daniel, were you able to find an answer to this?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events