Where should I put the 'opencsv-3.5.jar' file for ScriptRunner to know it?

Franck LAMBEZ October 22, 2015

I tried to put opencsv-3.5.jar on JIRA_HOME/lib (of course I stopped and started Jira) but in behaviour script I still have :

import au.com.bytecode.opencsv.CSVReader : unable to resolve

Is it supposed to be on JDK?

 

regards,

Franck

4 answers

1 vote
Thanos Batagiannis _Adaptavist_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2015

Hi Frack 

As Jamie suggested in a previous post https://answers.atlassian.com/questions/31674855 you can use the JIRA native com.mindprod.csv.CSVReader and then get your file 

CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));

You can find the documentation for it here : http://mindprod.com/application/csv.manual.html

0 votes
Franck LAMBEZ October 25, 2015

Hello,

 

I try to reproduce : http://www.kellyrob99.com/blog/2010/07/01/groovy-and-csv-how-to-get-your-data-out/

 

in fact

import au.com.bytecode.opencsv.CSVReader
leads to an error : unable to resolve class CSVReader
import au.com.bytecode.opencsv
is accepted
but
List<String[]> rows = new CSVReader(        new InputStreamReader(getClass().classLoader.getResourceAsStream(TEST_FILE_NAME)))
            .readAll()
leads to an error : unable to resolve class CSVReader
regards,
Franck
0 votes
LAMBEZ October 22, 2015

Hello,

 

Still not working...

Regards,

Franck

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2015

<jira-install>/atlassian-jira/WEB-INF/lib

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events