Currently, dashboard updates only show the following information:
How can I modify this to also include the name of the space containing the page.
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... https://answers.atlassian.com/questions/149261
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/stream-item-template.soy 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> {/if} ...
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.