Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to parse excel spreadsheet from scriptrunner Edited

Hi All,   I am trying to pull data from an excel spreadsheet.   I have found several excel parsers for groovy that are based on apache poi which seem like what I need.

But I am having trouble just loading the libraries,  

I  tried using  grape to get this to resolve.

/*import groovy.grape.Grape
groovy.grape.Grape.grab(group:'org.apache.poi', module:'poi', version:'4.0')
groovy.grape.Grape.grab(group:'org.apache.poi', module:'poi-ooxml', version:'4.0')

@Grab(group='org.apache.poi', module='poi', version='4.0'),
@Grab(group='org.apache.poi', module='poi-ooxml', version='4.0')

import org.apache.poi.hssf.usermodel.*
import org.apache.poi.sssf.usermodel.*

InputStream inp = new FileInputStream("C:\\temp\\testFile.xlsx")
Workbook wb = WorkbookFactory.create(inp);

  Error grabbing Grapes -- [unresolved dependency: org.apache.poi#poi-ooxml;4.0: not found,unresolved dependency: org.apache.poi#poi;4.0: not found] j

Failed, on all saying that org.apache.poi was unresolved.

So I have downloaded the apache.poi jar files version 4.0 and placed the 6 jar files into web-inf/lib folder

Now I removed the grapes code and ran it and I get no errors on the import lines but it says it cannot resolve Workbook.  (Even if I scope it to

I tried doing import and that does fail.

But the documentation for java says that is where it is located.


I am running the above script from the Jira->Add ons->Script Console

Scriptrunner is 5.5.2

Jira 7.5.2


Any Ideas??



0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Introducing External Collaboration for Confluence

We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...

175 views 0 6
Read article

Community Events

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

Events near you