Create Numbered lists in a table column

How do you create numbered lists in a table column that automatically update if you add or remove a row?

3 answers

When in a table cell, start typing with a # then space and you have a numbered list.

Davin Studer Community Champion Apr 29, 2014

You have to type a space after the # for Confluence to start a list, but I don't think this will number the rows like she would like.

Yes, thanks for the correction. I guess it was not clear to me what she intended. I will provide a different answer if that is what she intended. I was thrown off by the term numbered lists. In any case, both meanings are covered by answers :).

0 vote
Davin Studer Community Champion Apr 29, 2014

I think you might have to use javascript to do it for you automatically.

Davin Studer Community Champion Apr 30, 2014

Here is a user macro that I think works for what you are trying to do. Once you have created the user macro then wrap your tables with the table_autonumber macro and it will autonumber all the table rows that are not heading rows.

Macro Name:

Macro Title:
Table Autonumber

Macro Body Processing:

## Developed by: Davin Studer
## Date created: 04/30/2014
## @noparams

#set( $id = $action.dateFormatter.calendar.timeInMillis )
<div id="$id">$body</div>
<script type="text/javascript">
AJS.$('#$id table').each(function(){
var count = 1;

AJS.$('tr', this).each(function(){
if(AJS.$('th',this).length != 0) {
AJS.$(this).prepend('<th class="confluenceTh"> </th>');
} else {
AJS.$(this).prepend('<td class="confluenceTd">' + count + '</td>');

Advanced Tables for Confluence has the Table Plus Macro which supports an autoNumber parameter that addes a column to the front of the table. Autonumbering Rows and Auto-totalling Numeric Columns is an example.

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

370 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