Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Rounding not working in Confluence using Macro: Insert Jira Issue/Filter

I have created a custom field called Days Open using Calculated Number Field (by JWT)

Math/Numeric expression: {Date and time of resolution} !=null ? (( {Date and time of resolution} - {Date and time of creation})/ {DAY}) : (( {Current date and time} - {Date and time of creation} )/ {DAY})

Display format: Number with the following format: ##.#

The rounding to 1 decimal place works fine within JIRA but when displayed in Confluence using the macro; Insert Jira Issue/Filter, it displays a number to 15 decimal places.

Is there a way to get the rounding to come across in the Confluence view?

4 answers

2 accepted

2 votes
Answer accepted

Hi @Spirit Super,

Your observation, that the number formatting is currently not forwarded to Confluence, is correct.

A current workaround, that results in your number being displayed with one decimal place in Jira and Confluence would be an update of your expression used within the calculated custom field as follows:

round(%yourOriginalCalculationHere% * 10) / 10


P.S. This is basically the recommended approach first mentioned by @Fabian Lim

Thank you, this was exactly what I was after

0 votes
Answer accepted
Fabian Lim Community Leader Nov 25, 2021

Hi @Spirit Super

I don't believe you can do anything to format on the Jira Issues/filter macro. 

I'm not a JWT expert, but I would try rounding it in the formula, if JWT allows you to.  


Hi @Spirit Super ,

We can suggest trying our Table Filter and Charts for Confluence app and its Table Transformer macro.

Wrap your Jira Issues macro into the Table Transformer macro:

Fri 2-1.png

Here I use a simple manually created table, but our macros understand all the dynamically changing tabular Confluence macros such as Jira Issues, Page Properties Report, Content Report Table, etc.

Then use the following SQL query:

Fri 2-2.png

SELECT T1.'Issue',
ROUND(T1.'Days Opened', 1) AS 'Days Opened'

Fri 2-3.png

The Table Transformer macro also allows you to perform table calculations right in Confluence, and with the help of the other macros that are provided by our app you'll be able to create live Jira dashboards on your Confluence pages as well. 

Hi there,

As this Community thread mentions our Table Filter and Charts for Confluence app, we are happy to introduce its new macro – Table Spreadsheet.

The macro allows you to work with fully functional Excel spreadsheets right in Confluence.

You’ll be able to use cells’ formulas, filters, conditional formatting, etc., create pivot tables and charts from the page view and edit mode.

The Table Spreadsheet macro is available for Cloud and Server/Data Center.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

287 views 2 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you