Hello,
We want to have a listener on the "Issue Deleted" event that will write into a file the id of the deleted issue. I know th Auditor plugin logs this, but that info can't be accessed from a script so we need to make our own log.
I am playing around and trying this:
import org.apache.log4j.Logger
import org.apache.log4j.Level
File file = new File("test.txt")
file.write "Issue " + event.issue.getKey() + " was deleted"
log.debug("Issue " + event.issue.getKey() + " was deleted " + file.absolutePath)
It should be simple but the file is not at the location indicated by file.absolutePath. Why can't I find this file? Is there some restriction from Scriptrunner/Groovy for writing to my own files?
Our JIRA is running on Linux and it's inside a Docker container (I've already checked it and the file isn't there either)