Rounding not working in Confluence using Macro: Insert Jira Issue/Filter
Asked by Spirit Super:

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?


Answers:
author: Thorsten Letschert _Decadis AG_
body: Hi [@Spirit Super](/t5/user/viewprofilepage/user-id/1014763),

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

Cheers,  
Thorsten

P.S. This is basically the recommended approach first mentioned by [@Fabian Lim](/t5/user/viewprofilepage/user-id/3131564).

comments: author: Spirit Super
body: Thank you, this was exactly what I was after


author: Fabian Lim
body: Hi [@Spirit Super](/t5/user/viewprofilepage/user-id/1014763)

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.

Cheers


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Spirit Super](/t5/user/viewprofilepage/user-id/1014763) ,

We can suggest trying our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview) app and its [Table Transformer](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro) macro.

Wrap your Jira Issues macro into the Table Transformer macro:

![Fri 2-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/171004i45CABAB46B85E708/image-size/large?v=v2&px=999 "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](https://community.atlassian.com/t5/image/serverpage/image-id/171006iFF455D6F7BFF2DDC/image-size/large?v=v2&px=999 "Fri 2-2.png")

SELECT T1.'Issue',  
ROUND(T1.'Days Opened', 1) AS 'Days Opened'  
FROM T\*

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

The Table Transformer macro also allows you to [perform table calculations](https://docs.stiltsoft.com/display/public/TFAC/Custom+Transformation+-+use+cases+with+advanced+SQL+queries) 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](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+the+app+with+Jira+Issues) on your Confluence pages as well.


author: Katerina Kovriga {Stiltsoft}
body: Hi there,

As this Community thread mentions our [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community) app, we are happy to introduce its new macro -- [Table Spreadsheet](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Spreadsheet+macro?utm_source=atl_community).

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.

![](https://docs.stiltsoft.com/download/attachments/83100938/Conditional%20formatting.png?version=1&modificationDate=1641987630000&api=v2&effects=border-simple,shadow-kn)

comments: author: Keith Lanier
body: Hi [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

It would be really awesome if I could wrap my Jira Issues macro into the new [Table Spreadsheet](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Spreadsheet+macro?utm_source=atl_community) macro! Is this possible today, and if not is it planned?


author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Keith Lanier](/t5/user/viewprofilepage/user-id/3516547),

Unfortunately, it is not possible as for now. But we do have such task on the roadmap -- I've attached the link to this thread to the ticket. Once the feature is implemented, I'll return here to notify you.


author: Keith Lanier
body: Great! Looking forward to when this will be released!

If you need beta tester, please reach out.


author: Alexey Mikhaylov _Stiltsoft_
body: Hello [@Keith Lanier](/t5/user/viewprofilepage/user-id/3516547) ,

Let me inform you we've released a new macro - [Spreadsheet from Table](https://docs.stiltsoft.com/tfac/dc-server/how-to-use-spreadsheet-from-table-152142229.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources%20&utm_vendorID=1216111) - which allows transferring your regular table or a table outputting a macro's content (such as, for example, Jira macro or Page Properties Report) into [Table Spreadsheet](https://docs.stiltsoft.com/tfac/dc-server/how-to-use-table-spreadsheet-macro-83100938.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources%20&utm_vendorID=1216111) with all its tools. It is available starting from Table Filter and Charts for Confluence version 10.0.0.


Tags: confluence-server

filter

server

table

table-filter

table-filter-and-charts

table-spreadsheet

table-transformer