Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this tutorial you will learn how to create basic report template using Jaspersoft Studio and Smart Reports for JIRA. If you are familiar with Jasper Reports technology - whole tutorial should take about 10 minutes of your time.

Overview

In the big picture creating a report template for Smart Reports has two steps:

...

Steps

  1. Launch Jaspersoft Studio. Select New Jasper Report, then select Blank A4 theme. In the end - name your template. This will prepare your IDE to design a template for Smart Reports - simple and easyImage Modified
  2. We will create report that help us for an every day start of work with JIRA. We will fire our report in the morning to have nice picture on what we should do each day. We will need for that issue key, summary and QR code which points to the URL for this specifc issue. To achieve this, first, we define a proper JQL Dataset. Right click on the root node of the navigator and choose Dataset and query. Image Added

    Image Removed

  3. In the popup enter JQL in language input and enter the query assignee = currentUser() and statusCategory != Done in query area.

    Image Removed

    Image Added

  4. Now we define fields we want to use in our report template. For the first field - right click the fields node in navigator and choose the Create Field option. Name the field as Key and enter the implementing class java.lang.String. Enter all other needed fields: Summary with implementing class java.lang.String and URLwith implementing class java.lang.String. Key and Summary are common JIRA issue fields - you can use them in your custom template as many other fields. You can use even JIRA custom fields as well! URL is a special field - it contains URL to the issue itself.

    Image Removed

    Image Added

  5. In next steps we will define layout of our template - how data we selected will be shown. Navigate to Outlineand delete nodes: Title, Page Header, Column Header, Column Footer, Page Footer and Summary - leave alone only the Detail 1 section. Result should be as followed screen:

    Image Removed

    screen Image Added

  6. Expand Fields node in Outline and drag the Key field onto design canvas.Image Added

    Image Removed

  7. Drag Summary under the Key. Expand the $F{Summary} field on canvas a little bit.

    Image Removed

    Image Added

  8. From the Palette choose Rectangle and drag as in scheenshot below.

    Image Removed

    Image Added

  9. Now we will place the URL to the issue, but as a graphical QR code. Drag the Barcode element from Paletteonto Canvas. For now only Barcode4j library is supported, so choose QR code from this library. Expand QR code onto canvas.

    Image Removed

    Image Removed

    Image AddedImage Added

  10. We will feed the QR code with URL value. Choose QR code on canvas, then choose section Barcode from Properties. Fill field Code Expression with $F{URL} value. Image Added

    Image Removed

  11. The last thing - name your report. Choose the root element from Outline and find the Report Name in its properties. Save the result. We are ready to upload our template into Smart Reports in JIRA.

    Image Removed

    Image Added

  12. We are ready to upload our template into Smart Reports in JIRA. Go to Smart Reports managing templates page. Click the +Add new template and upload your first report template. Click on it when ready and generate your first custom smart report!

    Image Removed

    Image Added






...

D