I have been trying to read a CSV via Groovy and spit out the values of columns into defined variables.
I used CsvReader to read the header and the records. When I run this code in my local groovy console, it gives me the desired output. But when I run it in JIRA Scriptrunner, it give me a null output. Not sure what I'm doing wrong.
Need some help please.
CsvReader products = new CsvReader("D:/Program Files/Atlassian/JIRA/files/test.csv")
String id = products.get("ID")
String project = products.get("Project")
String time_entry = products.get("Open_for_Time_Entry")
String clarity = products.get("Clarity_Project")
String action = products.get("Action")
String length = products.get("Length")
String type = products.get("Type")
String summary = products.get("Summary")
System.out.println(id + "\t" + project + "\t" + time_entry + "\t" + clarity)
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events