Trying to run multiple JQL queries inside of the ScriptRunner console, then write the output to a local file. Getting directory errors but path is correct. Ex:
File file = new File("Documents/script_output/sr_output.txt")
file.write "output"
The starting point for relative paths is your jira install/bin directory.
You can confirm by running this in the console:
<span>def currentDir </span><span>=</span> <span>new</span> <span>File</span><span>(</span><span>"."</span><span>).</span><span>getAbsolutePath</span><span>()</span>
So if you want to output somewhere else, you should start from the root/drive.
It looks like you're new here. Sign in or register to get started.