How to hide all user updates from one user on the main dashboard

Hello,

I am working on a script using xmlrpc to update a confluence page once a day from tests that run over night. There are several pages that need to be updates, however, I do not want the updates to appear on the main dashboard's "Popular" stream, or even on the "All Updates" stream.

I have tried writing the pages using xmlrpc with the minor_edit set to True, but they still appear in both streams.

I have a specific user account that does not do anything else, so is there a way to just completely hide all updates from this user from the main dashboard?

Thanks!

2 answers

1 accepted

3 votes
David Simpson Community Champion May 26, 2014

Hi John

In Confluence Admin | Look & Feel | Custom HTML | At the END of the HEAD, paste:

var hiddenUser = 'david'; // Change this as required

	AJS.toInit(function ($) {
		var hideUpdates = function () {
			AJS.$('#recent-updates a[data-username="' + hiddenUser + '"]').parents('.grouping,.stream-item').hide();
		};
	
		hideUpdates(); // for the initial page load
		$('#recent-updates').ajaxComplete(hideUpdates); // for tab clicks
	});

This will hide all updates from the user david and will also hide any updates when you click on different tabs in the activity stream.

David Simpson Community Champion May 26, 2014

@John Shaw: If it works, mark it as correct ;)

tried that. didn't work. any ideas?

Hi David,

 

A similar script for the new (Modern) Dashboard?

 

BR,

 

Normann

0 vote

Hi John,

I believe there's no way to do that for some specific user, however you can do for all users by disabling some plugins as we can see in this answer.

go to the Dashboard Macros plugin, click Manage plugin modules and disable the Popular Tab module.

Cheers,

Rodrigo

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

1,131 views 22 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