best approach to use Script Runner to create a report

I have been tasked to automate creation of report, like show issues not linked, not closed etc.

The end result should be excel or word doc with several columns containg list of issues. I can generate these lists running my separate groovy scripts in Script Console. Then I copy/paste results to different columns. But I'm wondering if end users (Prod Managers) could just click a button and have report ready. What is the best approach to this? My only guess is to create a custom issue type with scripted fields. Please advise if anyone had similar task.

2 answers

0 vote

I was going to do "script reports" but didn't bother because the reports functionality in jira seems to be getting increasingly marginalised. Instead I wrote a general reports and gadgets plugin but abandoned it.

I don't have a good answer right now. Maybe workflow actions on a specific issue type that will generate the excel or whatever and add to the issue as an attachment? Seems a bit clunky.

Thank you Jamie, I'll take a look at your reports plugin. BTW, nice Order of the Red Star :)

Thanks ;-)

I wouldn't bother with the reports plugin, try the other idea...

We are using two methods (basically postfunctions in WF adding attachment):

  • Groovy Script with MarkupBuilder for creating HTML reports
  • Postfunction from XPorter (with reasonable pricing) for DOCX reports, followed with script attaching generated file to issue

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

364 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you