JIRA JQL in Confluence Templates?

I do a weekly status report in Confluence for my group. At the end, I insert JIRA pie charts showing the status of tickets in a handful of JIRA issues, one chart per project. I'd like to take my normal weekly report and turn it into a template. These charts are all keyed off JQL. Here's the JQL from one of them:

project = FOO and (resolutionDate > "2014-03-04 23:59" or createdDate > "2014-03-04 23:59" or resolution is EMPTY)

I'd like to replace the date/time strings in there with something keyed to one week before the date a report is created from that template. Is that possible with templates? Is it possible with normal values in templates, but not within macros embedded within templates? I guess I could replace the date strings with something like endofday(-7d), but I have a feeling that the values of those funcations will be recalculated whenever someone looks at that report, not be pinned to the date the report was created.

Suggestions?

1 answer

Pete,

I think your idea of using the offset is a great one. What happens when you do a pdf export of a confluence page containing the pie chart with the date offset. You might have a single master reporting page with a number of pdf attachments that would have snapshots of the data run from the previous week.

Thanks, Daniel. I think that might be a good idea. He doesn't like going to look at the Confluence page anyway, so capturing it all in a PDF and pinning the graphs to that point in time might be a good work aorund.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

450 views 21 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you