It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way in Confluence to create a checkbox without it being a task?

Ronald Yeshulas Dec 01, 2014

I would like to create a checklist on a confluence page, but the list is not a list of tasks. I have looked at the checklist plug-in, but don't want to create a page for each item on the list (could be as large as 20 or 30 items). Anyone have any ideas?

8 answers

1 accepted

6 votes
Answer accepted
Davin Studer Community Leader Dec 02, 2014

How about something like this? Just put a comma separated list in the macro body.

Macro Name:

Macro Title:
Dynamic Checkboxes

This will create dynamic checkboxes from a comma separated list.

Macro Body Processing:


## Developed by: Davin Studer
## Date created: 12/2/2014
## @noparams

#set ($containerManagerClass=$content.class.forName('com.atlassian.spring.container.ContainerManager'))
#set ($getInstanceMethod=$containerManagerClass.getDeclaredMethod('getInstance',null))
#set ($containerManager=$getInstanceMethod.invoke(null,null))
#set ($containerContext=$containerManager.containerContext)
#set ($contentPropertyManager=$containerContext.getComponent('contentPropertyManager'))
#set ($d = '$')

#if($req.getParameter('submit') == "true" && $req.getParameter('checkbox') && $req.getParameter('checkbox') != "")
    #if($req.getParameter('value') && $req.getParameter('value') != "")
        #set ($value = $req.getParameter('value'))
        #set ($value = "")
    $contentPropertyManager.setStringProperty($content, $req.getParameter('checkbox'), $value)
#if ($body != "")
    <form class="aui" id="dynCheckboxForm">
    #foreach($box in $body.split(","))
        #if($contentPropertyManager.getStringProperty($content, "dynCheckbox$box") == "checked")
            #set($checked = 'checked="checked"')
            #set($checked = '')
        <div class="checkbox">
            <input class="checkbox dynCheckbox" type="checkbox" name="dynCheckbox$box" id="dynCheckbox$box" $checked value="checked" />
            <label for="dynCheckbox$box">$box</label>

<script type="text/javascript">
            type: 'GET',
			data: {
                submit: 'true',
                checkbox: AJS.$(this).attr('id'),
                value: AJS.$(this).is(':checked') ? 'checked' : ''
			url: "$content.getUrlPath()",
			success: function(data) {
			error: function() {
Ronald Yeshulas Dec 03, 2014

I guess I hit my limit for comments yesterday, so had to wait until today to say thanks. This is exactly what I needed.

Davin Studer Community Leader Dec 03, 2014

Glad it works.

Todd Hank Jun 23, 2015

This is Fansastic! Thank you

Mike Muekni Jul 20, 2015

This is a fantastic macro but it doesn't save the checked state for me. Is there any way to do it?

Alex Christie Mar 09, 2018

Hello Davin, you're an absolute legend for sharing this! The code doesn't seem to work for me. I pasted the code and entered the corresponding title,name and macro body processing.


When I insert the macro i get this error 


"Error rendering macro 'dynamic_checkboxes' : Error occurred rendering template content"


Any ideas? I'm on confluence server 6.4.0

Davin Studer Community Leader Mar 09, 2018 • edited

That is because when Atlassian migrated this forus from their previous site they messed up code blocks. So, all the html is now escaped out. Copy the code and do a find a replace on these in this order ...

Like Alexander Khrennikov likes this
Eitan Yomtovian Apr 04, 2018

If I have Conflunce-cloud, where do I write this code?

Davin Studer Community Leader Apr 04, 2018

There is no way to do this with the cloud version as you cannot write user macros.

Meredith B Sep 05, 2018

Hi Davin, 

Are you still able to answer questions about this?

I'd like to share a page I'm creating with our staff. It has a checklist to refer to in it. However, if I use the built in formatting, everything is automatically considered a Task. Almost none of our staff have edit rights to pages, so they can't tick anything off.

Your code up there works perfectly to create non-Task checkboxes, so thank you very much for sharing it! 

However, I can't use it, because Confluence remembers what's checked between sessions. Is there a way that I can set it up so that if the page is refreshed, all the check boxes are cleared?

Thanks very much in advance.

6 votes
Robert Ortner May 09, 2017

Just enter [] without blanks - automaticly converted to a checkbox. Very usefull in tables instead of using yes/no or similar stuff

Vicki Lea Tsang Jun 01, 2018

Awesome! Thanks Rob!

UNSW Global IT Oct 17, 2018


3 votes
Matt Batten Aug 08, 2016

Just want to add a simple solution that I found to this problem in case others are still looking to do this.

If the task does not have any text after it, it does not register as a task. So to create a checklist I put the task checkbox into a table cell by itself with the items for the checklist in a cell beside it.

It functions purely as a checkbox then with saved state and does not register as a task. Really easy to add with the shortcut [] as well.

image2016-8-8 21:8:40.png

Davin Studer Community Leader Aug 08, 2016

Nice work around.

.mike Sep 07, 2016

not "working arround" with me.

placing the "checkbox-symbol" OUTSIDE the table (somewhere on the page) = OK
saving the page will create a checkbox that users can click on the viewpage.

placing the "checkbox-symbol" INSIDE the table = NOK. users cannot click the checkbox on the viewpage.


1 vote
Alex Medved Dec 02, 2014


I understand you have no plans to spend money purchasing the plugin to help you with checkboxes, but may be, a bit more advanced plugin will help you to solve this particular problem, as well as anything else when you want to store some structured data in Confluence. Take a look at ConfiForms

Various types of forms: checklists, registrations, feedback... also, with rest api, so you can do some reporting when needed 

0 votes
Rodrigo Adami Atlassian Team Dec 02, 2014

Hi Ronald,

I believe you are looking to a macro like this one: Checkbox by Gumvillage.

I hope this helps.



Ronald Yeshulas Dec 02, 2014

Thanks for your response. I did see that macro, but was trying to avoid spending money for a checkbox.

David Skreiner Jul 06, 2016

Addons also cause headaches when upgrading to the next build. I find it very unfortunate that most answers on are someone telling us to buy paid plugins, especially considering the price of the base product.

Davin Studer Community Leader Jul 06, 2016

The above user macro is free. I promise I won't charge for it. smile

0 votes
Davin Studer Community Leader Dec 02, 2014

Is there a reason you can't use the task list for this?

0 votes
Ronald Yeshulas Dec 02, 2014

A little more information might help. We have spaces for client projects. The space has an area with meeting notes and action items are identified during these meetings and tracked as tasks in confluence. Additional project work is tracked in JIRA. The main page of the clients space shows these action items. As part of the project plan there is a "shopping list" of items we need from the client. The space contains a page with a list of these items and I would like to turn this list into a checklist without adding to the action item list. I can filter tasks from that page using a label, but then I would also lose the ability to note action items/tasks on that page and wanted to avoid that. I think what I'm really going to need to do, is learn how to write my own macro for a checkbox and add it as a user macro, but I just don't have the time to do that right now.

0 votes
George Cakiades Dec 21, 2018

If you are creating the page from a template, the following code populates a checkbox:


I don't think the task-id is very important, but you may want to increment it depending on what you're doing.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

918 views 0 19
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