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:
def currentDir = new File(".").getAbsolutePath()
So if you want to output somewhere else, you should start from the root/drive.
Unlock your potential and learn how to use Jira Product Discovery to your advantage. You’ll have the expertise to revolutionize ideas and insights, roadmapping, engage and align teams and stakeholders, and deliver the best solutions—faster. Enroll today!
Start Learning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.