Forums

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

How to use broad date range in decision report macro

Elizabeth McCune January 28, 2022

I want to show decisions from the last two months, not from a specific date so that the same document cane be used but the decisions are rolling. However, it's not clear how to pass cql queries correctly into the custom filter. I've tried now("-90d") and similar but the render always fails. Is there a way to do this?

Screen Shot 2022-01-28 at 3.06.49 PM.png

3 answers

2 votes
Katerina Kovriga _Stiltsoft_
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.
January 31, 2022

Hi @Elizabeth McCune ,

We can suggest trying our Table Filter and Charts for Confluence app and its Table Filter macro: wrap the Decision Report macro in the Table Filter macro body, set the corresponding date format and use the -3m (-2w, today, etc.) variables.

Mon 5-1.pngMon 5-2.pngMon 5-3.png

Hope this helps your case.

2 votes
Brant Schroeder
Community Champion
January 28, 2022

@Elizabeth McCune The supported format for the date field in CQL is one of the following 
"yyyy/MM/dd HH:mm", "yyyy-MM-dd HH:mm", "yyyy/MM/dd" or "yyyy-MM-dd" https://developer.atlassian.com/cloud/confluence/cql-fields/#created

Elizabeth McCune January 30, 2022

so that would mean there isn't a way to try and do what I'd like to do? i.e. a customized "two months" or two weeks type deal. I didn't want to pick a hard datetime point.

0 votes
Pramodh M
Community Champion
January 28, 2022

Hi @Elizabeth McCune 

Welcome to Confluence!!

Could you try functions in your instance and let me know if it's working?

https://developer.atlassian.com/server/confluence/cql-function-reference/#CQLFunctionReference-startOfMonth

We could use startOfMonth("-2")

Let me know

Thanks

Elizabeth McCune January 28, 2022

sadly same performance @Pramodh M 

Screen Shot 2022-01-28 at 3.52.26 PM.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events