Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Parameters or variables in JQL stored in a dashboard

Paul Thompson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 9, 2024

I have dashboards that display the current status of various deliverables and metrics per quarter in a year (bugs logged, epics completed, etc). Every quarter, I need to copy and tweak a bunch of jql filters and then copy and tweak the dashboard to use the tweaked jql filters. It is very tedious.

What I would like is a way to store some parameters or variables in a dashboard and apply those parameters to every filter on the dashboard. Then I could just copy the dashboard, tweak the parameters and all my widgets get updated. Is that possible?

2 answers

0 votes
Danut M _StonikByte_
Atlassian Partner
July 10, 2024

Hi @Paul Thompson,

An easier way could be to use a gadget that offers these statistics and can group data by quarter automatically. 

The Pivot Table & Pivot Chart gadget offered by our Great Gadgets allows you to create multi-dimensional stats (by multiple fields) by count, sum of a field, percentages, etc and it can group data by quarter.

The info can be displayed in various ways. Here is just a simple example.

As table:  

image.png

As heat-map table

image.png

As chart (of various types)

image.png

See more examples of this gadget (and the many others offered by the same app) in these articles:

You can start with an 1 month free trial. If you need any help, feel free to contact us at support@stonikbyte.com.

Hope this helps.

Danut. 

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 9, 2024

Hi @Paul Thompson -- Welcome to the Atlassian Community!

Short answer: that is not possible with built-in dashboards, but there are several possible workarounds.

Some possible workarounds are:

  1. use a marketplace addon / dashboard
  2. use chained, saved filters
  3. use automation rules to dynamically update the saved filters

 

For #1, you could check the Atlassian Marketplace to find other dashboard gadgets, or dashboard replacements, that can do that.  https://marketplace.atlassian.com/

 

For #2, you could save a base filter which has your timeframe, or other parameters, and have the others filters build on that.

For example, one saved filter could be this:

project = myReportingProject AND reportingQuarter = "2024Q2"

After that filter is saved, you may find its id by looking in the browser URL.  For example:

myJiraURL/issues/?filter=10035

Then any saved filters in the dashboard could refer to that first filter.  For example, this one adds a check of status category to the filter

filter=10035 AND statusCategory = Done

Later, only the first filter needs to change to update the other ones used in the dashboard.

Similarly, the date functions could be used for more dynamic filtering, such as with startOfMonth(): https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#startOfMonth--

 

For #3, automation rules can run on a scheduled trigger.  With that, a rule could call the REST API endpoint using the Send Web Request action to edit a saved filter on a schedule, changing the JQL.  An example of this scenario is to dynamically change the sprints included in filters for a dashboard.

 

Kind regards,
Bill

Paul Thompson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 9, 2024

Thanks Bill, I'll give those a try.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events