I am writing a script that needs to read some data from a csv file. This is the line that I want to use to access the file and store the data.
InputStream inputFile = getClass().classLoader.getResourceAsStream("projectToEpicMap.csv")
String[] lines = inputFile.text.split('\n')
List<String[]> rows = lines.collect {
it.split(',')
}Where do I have to put my csv file so this line will be able to access it? At the moment all I am receiving is a NullPointerException. Right now I have the csv file in this location.
<JIRA Install Directory>\atlassian-jira\WEB-INF\lib