Dashboard gadget "Created vs. Resolved" filter search
Asked by Andreas Rossi:

Trying to accomplish the following:  

Show in a dashboard "Created vs Resolved" epics and initiatives created in several projects for only the current year but I got stuck on what JQL filter query I should create to make it work.

at the moment I got stuck at this:

project in (CPPC, CFA, DNEWCPI, ROBG, RSCRSB) AND issuetype in (Epic, Initiative) AND status changed to Done after startOfYear() AND status = Done  

But this will cause the gadget to show issues created as far back as the number of days that I set in the gadget (for example 900) instead of only showing created during current year:  
![CreatedVSResolvedIssue.png](https://community.atlassian.com/t5/image/serverpage/image-id/344029i0A892C81FF0EDD22/image-size/large?v=v2&px=999 "CreatedVSResolvedIssue.png")  

<br />

There must be a smarter solution to only showing created vs resolved during current year?


Answers:
author: Danut M _StonikByte_
body: Hi [@Andreas Rossi](/t5/user/viewprofilepage/user-id/5536281) ,

Unfortunately this Jira gadget (as well as the "Recently Created Chart" gadget, which also displays the created vs resolved) only allows entering the number of days back. So you will not be able to configure the gadgets to display data since the beginning of the year.

A solution would be to look for an app on Atlassian Marketplace that provides such chart, which allows you to enter a date range.

If you consider the idea of using an app, then our [Great Gadgets](https://marketplace.atlassian.com/search?query=stonikbyte%20great%20gadgets%20agile) app can be a good solution, because it includes a gadget that allows you to set a start date (January 1st in your case).

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/344657i4D1CF3C97F735419/image-size/large?v=v2&px=999 "image.png")

See this article on how to configure the gadget: [A powerful Reported vs Done chart for Jira dashboards](https://community.atlassian.com/t5/App-Central-articles/A-powerful-Reported-vs-Done-chart-for-Jira-dashboards/ba-p/2610902). If you have any questions, please contact support@stonikbyte.com.

Danut.


author: Andreas Rossi
body: My issue is the same if I instead try to use the "Configure - Created vs Resolved Issues Report" within a project and not use the dashboard gadget as this one also shows the graph based on previos days seting and does not care about the filter search query.


author: Duc Thang TRAN
body: Hello [@Andreas Rossi](/t5/user/viewprofilepage/user-id/5536281)

In my opinion, you only need to retrieve issues that were created at the start of the year. It might not be necessary to include `status = done`, as you also want to see issues that were created at the start of the year but are still not finished.

project in (CPPC, CFA, DNEWCPI, ROBG, RSCRSB) AND issuetype in (Epic, Initiative) AND created \>= startOfYear()

comments: author: Andreas Rossi
body: Thanks for the suggestion. However the Gadget is still showing the timeline based on the number of days set in the "Days Previously" setting for the gadget.

It seems really limited to have the gadget force this value even when you have filtering query in the background?  

Is there another way to display these values to work around this issue so that it only shows current year and the graph data is only based on search filter?


author: Duc Thang TRAN
body: [@Andreas Rossi](/t5/user/viewprofilepage/user-id/5536281)

The filter serves as the main scope of your report, while the "days previously" acts as a sub-filter.

For example, in your case, you are retrieving issues created since the start of the year (240 days ago). If you set "days previously" to 300 days (the maximum value), it will broaden the filter criteria, but it will return zero results if there are no issues within that extended timeframe.


author: Andreas Rossi
body: Ok thank you, I guess there isn't a possibility to have this gadget work as a current year rolling report then sadly.   
It is quite limiting with having to use external tools to display quite basic statistics :)

Is there a good way to report these limitations and suggest future enhancements to the dashboard and gadgets?


Tags: dashboard

data-center

jira-data-center

jql