Using MathTool in Velocity script (Pocket Query)?

I am trying to round some values in my SQL query result and table. Is it possible to use the MathTool in the pocketQuery template? I can't seem to get it to work.

2 answers

Hi Nick!

Good point, it's currently not available in PocketQuery template. Thank you for the hint. We will make the $math available in the next versions. Please have some patience.

Best, Felix (Scandio)

Ah, great! That would be pretty cool if we could utilize MathTool!!

Hi Nick!

Sorry, I didn't get back to you here. Since PQ 2.2.0 the MathTool is available in PQ templates as $math.

Note that PocketQuery 3.0 will be released soon with breaking new features. Note also that PQ will become a paid plugin with 3.0. As a past PQ user you will be eligible for a 50% voucher:

It would be nice if you accepted this answer if it solves the issue. Thanks for your support!

Best, Felix 

Hi Felix,


I just excitedly updated to SQ 2.2.0 and unfortunatley it wiped out all of our existing database connections, templates, queries, sad


Is this a known issue? I was updating from 2.1.1.

We are on 5.10.6


Ouch! Confluence 5.10.6 has a bug that prevents PQ to work:

It's a serious bug because of which Atlassian fast released the following version 5.10.7 at the time where the bug is solved.

The only PocketQuery version that contains a patch for 5.10.6 is your old one 2.1.1. So you'll have to rollback to that version (uninstall/install) until you can update your Confluence.

Fear not: no data is lost!

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...

372 views 20 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