How can I add space name to updates in the Confluence dashboard?

Currently, dashboard updates only show the following information:

  • title of page updated
  • user who made the update
  • time of update

How can I modify this to also include the name of the space containing the page.

2 answers

 I would also like to do the same, I have not found yet

We've been using a block of custom Javascript to do this for a long time. I'm looking for a better option now as I'm sick of maintaining this hack. See details here...

It seems there have been a few changes since I last looked at this. For the old dashboard, the logic which could support this is contained within the recently-updated-dashboard macro. You can embed that Macro in a page and open the Macro browser to see the available options. No where is there an option to display the space name, which is a shame as the effort to add that support to the Macro would be minimal. The new one works a bit different, there is no macro reference in the global layout. I'm guessing the old dashboard is not going to get any love now, so any hopes of a configuration option is dead and burried.

I've tracked down the actual file with the template on the file system this time for the new dashboard. It exists within Confluence Dashboard Plugin. If you are hosting your own Confluence 5.10.4, you can find that plugin here... confluence/WEB-INF/atlassian-bundled-plugins/confluence-dashboard-1.0.39.jar

Editing this seems a better option than the javascript hack I've been using in the past. It'll still have to be maintained on every upgrade though. Shutdown Confluence, keep a backup of the jar somewhere (in another directory) and rename the file with a .zip extension. Extract it if need be. Edit the logic which is at the end of templates/modules/stream-item/ to include an entry with spaceName, e.g.

            <span class="update-item-title">{$changeItem.html |noAutoescape}</span>
            {if $changeItem.spaceName}
                <br/><span class="update-item-date">{$changeItem.spaceName}</span>

Zip it back up, ensuring the structure is the same. Rename it and replace it where it was originally then restart confluence. You'll need to to a hard refresh in the browser to notice the change.

My plan now is to disable the Opt-Out button on the new dashboard, but if you want to maintain the old dashboard, a similar approach should work on the file called confluence-dashboard-macros-5.10.4.jar too.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,508 views 4 13
Read article

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