Versions Compared

Key

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

...

This report shows hours for all  users even if they haven't logged any this month, which is something Tempo's reports can't do.

Implementation

This was done with the free Play SQL Base plugin:

Image Removed

querying a view in the database:

Include Code
languagesql
urlhttps://raw.githubusercontent.com/redradishtech/jira-interesting-sql-queries/master/worklog_monthly.sql

Because PlaySQL has no security, I restrict it to querying only views in a queries  schema, using a dedicated jira_ro  user. Confluence's conf/server.xml  has a datasource defined for PlaySQL to use:

Code Block
                    <Resource name="jdbc/QueriesDS" auth="Container" type="javax.sql.DataSource"
                           username="jira_ro"
                           password="<redacted>"
                           driverClassName="org.postgresql.Driver"
                           url="jdbc:postgresql://localhost:5432/jira?currentSchema=queries"
                           maxTotal="20"
                           validationQuery="select 1"/>

All quick and ugly, but it works.I have expanded on the implementation in a KB article, Creating interactive Jira reports in Confluence using free tools