Checking/unchecking a Task Item in a page causes other Tasks Items to trigger the same behavior
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
In a page containing multiple task items, when checking/unchecking one of the task items, some of the other task items replicate the behavior.
Environment
Confluence 6.14.3
Diagnosis
- In a page that contains those Task Items, click on the top right menu: ...
- Click on View Storage Format;
You will see, in the storage format, that some of the Task Items contain a duplicated value in the <ac:task-id> tag.
Page Storage Format<ac:task> <ac:task-id>1</ac:task-id> <ac:task-status>complete</ac:task-status> <ac:task-body><span class="placeholder-inline-tasks">Text for task item macro 1</span></ac:task-body> </ac:task> <ac:task> <ac:task-id>2</ac:task-id> <ac:task-status>complete</ac:task-status> <ac:task-body><span class="placeholder-inline-tasks">Text for task item macro 2</span></ac:task-body> </ac:task> <ac:task> <ac:task-id>2</ac:task-id> <ac:task-status>complete</ac:task-status> <ac:task-body><span class="placeholder-inline-tasks">Text for task item macro 3</span></ac:task-body> </ac:task>
Cause
Each Task Item in the Task List macro must have a unique ID. When two or more Task Items have the same task-id value, checking one of them will trigger other tasks with the same id to check as well.
Solution
You need to eliminate the duplicated task-ids. There is two ways to accomplish this:
- Re-create the Task Item:
- Copy the Task Item description to another text editor;
- Delete the Task Item;
- Manually create a new Task Item by clicking on Insert more Content ( + ) > Task List. Do not copy another Task Item from the same page;
- Paste the description from the text editor into Confluence.
- Directly edit the page source code:
- Install the Confluence Source Editor app;
- Edit the page;
- Within the Page Editor, click on the Source Editor: < >;
- Manually replace the duplicated task-ids for unique values.