Forms for Confluence - How to calculate the sum of several inputs?

After users have selected a unique value in 5 different fields (through 5 drop-down lists) and submitted a form, I would like to calculate the sum of these 5 values. Is it possible via the 'Forms for Confluence' macro?

Here is an example for a submission:


Userid - Date - Risk - Access complexity - Confidentiality - Exploit
xxxx - 20/03/2017 - 5 - 3 - 5 - 1


In this case, sum should be: 14


1 answer

1 accepted

0 votes
Accepted answer

Hi Nicolas,

Currently there is no way we can calculate the fields.

The good news is that we're releasing soon a new version of ScriptRunner for Confluence that will allow one to create Script Macros that can inject Javascript. This will allow you to calculate the sum of fields on the fly.

I'll let you know when we release this new version.



Hi Rafael,

Do you have an update on the new Scriptrunner for Confluence version?

Hi Shari,

The latest version of ScriptRunner for Confluence contains the possibility of adding Javascript in a ScriptMacro.

Could you please update and let me know if you're now able to calculate the fields?



Hi Rafael,

I actually just submitted another question because I don't think the ScriptRunner for Confluence is something that will work for me. My question is at the link below. Perhaps you can help me with that one?

Thanks for your reply,


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

875 views 44 6
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