Checking/unchecking a Task Item in a page causes other Tasks Items to trigger the same behavior
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
要約
In a page containing multiple task items, when checking/unchecking one of the task items, some of the other task items replicate the behavior.
環境
Confluence 6.14.3
診断
- 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>
原因
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.
ソリューション
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.