Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Tasks from deleted pages still appearing in task report

Anyone know why tasks from deleted pages would still appear in the Task Report? When I try to remove them or at least mark them as completed there is an error (likely because the page it is linking to doesn't exist). However, we can't remove these tasks. Ideas?

2 answers

1 accepted

0 votes
Answer accepted

Hi Rob,

in Version 5.4.2, installed version I tested your scenario and the tasks were deleted after page removal. Hmmm. What version do you use? One suggestion to try - REST API [1]

<th>
GET /rest/mywork/task Queries the complete list of tasks the user logged into Confluence.
DELETE /rest/mywork/task/<task ID> Deletes a task by its task ID.
POST /rest/mywork/task Adds a new task and creates an ID for the task.

Take a REST client (browser plugin like Postman) and try to delete them. You need to add request header for

  • Authorization (should be automatically added by the REST plugin if you are logged in)
  • Content-Type: application/json
  • Accept: application/json

Example:

1. Get the tasks using GET http://<domain:port>/<context>/rest/mywork/latest/task

2. Delete task with ID 77: DELETE http://<domain:port>/<context>/rest/mywork/latest/task/77

Maybe this helps,
Sabine

[1] https://developer.atlassian.com/display/CONFDEV/Creating+a+Confluence+Task+Plugin+with+REST#CreatingaConfluenceTaskPluginwithREST-Step2.AddRESTcallsinjs/tutorial-confluence-tasks.js

Sabine,

Thanks for this insight. When I pulled up the task list through the API, the deleted tasks and duplicated tasks did not appear. However, these eroneous tasks still do appear on the Confluence Task Report page. I'm not sure if this is an error with the Dyanamic Task List macro or what the issues is. Any ideas?

Hi Rob,

if you cannot get the duplicates or "delete" by using the REST API, this sounds like they do not exist anymore in the DB. Can you check this on DB level?

To have a clear understanding:

what do you mean by task report page - this plugin [1]? If so, here is the ondemand documentation page [2]. Take a note on this issue [3] - might this relate to your Confluence behaviour?

Within the issue it is written:

This fix will prevent duplicate tasks from being created, but will not remove existing duplicates. That is a separate task tracked by CONF-33903.

If not, please provide information on Confluence version and the plugin you are using.

HTH, Sabine

[1] https://confluence.atlassian.com/display/DOC/Task+Report+Macro

[2] https://confluence.atlassian.com/display/AOD/Task+Report+Macro

[3] https://jira.atlassian.com/browse/CONF-33886

Hi Rob,

the issue is solved for soon coming version 5.5.3 - the latest official release of Confluence is 5.5.2 [1]. Maybe this fix will help to solve your problem. Otherwise, raising a ticket might be good at this point.

So, finally I hope you will get some help from the experts soon.

Please mark a comment as answer.

Thx, Sabine

[1] https://confluence.atlassian.com/display/DOC/Confluence+Release+Notes#ConfluenceReleaseNotes-Confluence5releasenotes

Yes, I'm referring to the Task Report macro. The issue that was sited in the Jira ticket seemed related to our issue in that when pages were moved, that's when the issue occured. However, many of our tasks don't have dates (some do) and we are still getting this issue. Additionally, some tasks were deleted from the pages that were moved yet the tasks still appear.

The Jira ticket you referenced says "resolved" and this is still open for us. I raised a Jira ticket with the details.

I am having this issue now

Hey! I was wondering if you are still having the same issue? I am facing this issue and attempted @Sabine Winkler recommended fix with no luck.  

Yes. Still having the issue.

Have you attempted to use the REST API to query/delete the tasks? One thing I realized when I queried the tasks is the Tasks from deleted pages still appearing in task report were duplicated with different statuses; one was completed and the other incomplete. I am still having the same issue on the tasks report... 

 

What options have you attempted to solve this I can try it out on my end to see if it works...

Can you attempt the following steps and confirm 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.

 

Apparently its a bug in confluence cloud that you will have to raise a support ticket for since we dont have access to our instance's DB

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

70 views 1 6
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