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

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
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

457 views 8 27
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