Task Report macro shows duplicate tasks that cannot be completed
Asked by Xavier Krantz:

Reopening the question posted here:

<https://community.atlassian.com/t5/Confluence-questions/Task-Report-macro-shows-duplicate-tasks-that-cannot-be-completed/qaq-p/1534866>
> I have a page with a **Task Report macro** showing all open tasks for a project.
>
> Recently, some tasks listed are **duplicates** and have **an incorrect page** under the "Task appears on" column. I've tried deleting and creating a new macro on the page, but it still shows the duplicate tasks. I also **get an error that the "task change couldn't be saved"** when I try to mark it as completed from the macro. Since the page listed under "Task appears on" is incorrect, then there's no way to find the task otherwise. Is there a fix for this?

**The suggested solutions in the answer marked as "solution" do not work**, especially on a Atlasian Cloud instance with no access to the DB...

Please help us !


Answers:
author: Diego
body: Hello [@Xavier Krantz](/t5/user/viewprofilepage/user-id/3829732) !

This behavior has been reported and was resolved by Atlassian recently. You may still encounter pages that are affected by this may need to follow the workaround presented under the comments there or raise a ticket.

Here is the report:
> * ++***[\[Confluence Cloud\] Copying a page duplicate tasks](https://jira.atlassian.com/browse/CONFCLOUD-71132)***++

Let us hear from you!

comments: author: Xavier Krantz
body: Hi [@Diego](/t5/user/viewprofilepage/user-id/1188952) ,

Thanks for the heads up.

Unfortunately, we still have the issue. We are running Jira/Confluence on Atlasian cloud.


author: Tamimi
body: I can confirm that the issue is still present on our end unfortunately... We are running Jira/Confluence on Atlasian cloud as well, and the issue is that I can see a duplicate task when querying all the tasks under a space, both tasks have different ids (content, global and id) but I am unable to delete a task by itself


author: Tamimi
body: [@Xavier Krantz](/t5/user/viewprofilepage/user-id/3829732) can you attempt to do the following steps and see if it resolves your issue

1. Create a new, blank page.
2. Copy the content of the affected page that is causing the duplicated tasks, and paste into the new page.
3. Delete the affected page.
4. Rename the new page, so it uses the name of the deleted one.


author: Xavier Krantz
body: Hi [@Tamimi](/t5/user/viewprofilepage/user-id/4363983)

I have just try your suggestion and I have the same issue


author: Tamimi
body: I meant the deleting the page where the actual tasks resides in and not the page where the macro is configured in (just incase there was confusion in what I suggested..)

The way that I cam across this is by using the [Confluence cloud REST API](https://developer.atlassian.com/cloud/confluence/rest/intro/) to query all the tasks in a space

\`https:/\<your_confluence_host\>/wiki/rest/api/inlinetasks/search?spaceKey=\<space_key\>\&limit=500\&assignee=\<user_id_for_which_there_is_dup_tasks\>\`

and I realized that the same tasks content has two occurrences with different IDs. I followed the steps of create new blank page, copy content, delete affected page, rename new page and that fixed my issue


Tags: cloud

confluence-cloud