youngmon/atlassian-qna huggingface dataset:
Adding a label from a listener
Asked by Yagnesh Bhat:

Hello,

I am working on a custom blueprint that should force the users to add labels to their page, before saving the page. The approach for this that I took is that when the user tries to save the blank page thats created by the blueprint, the code below listening for the PageCreateEvent and its during this time that I am currently trying to add an hardcoded label. But as of now I am not sure why the label is not getting added to the page. I do see those sysouts on the console but am clueless why the label is not getting added to the page. Please help.

```
public class PageCreatedListener implements DisposableBean {		 protected EventPublisher eventPublisher;	 private final LabelManager labelManager;	 private final PageManager pageManager;	 private final Logger log;	 	 public PageCreatedListener(EventPublisher eventPublisher, LabelManager labelManager, PageManager pageManager) {	        this.eventPublisher = eventPublisher;	        eventPublisher.register(this);	        this.labelManager = labelManager;	        this.pageManager = pageManager;	        log = LoggerFactory.getLogger(PageCreatedListener.class);	 }	 	 @EventListener	 public void pageCreateFromTemplateEvent(PageCreateEvent event) {		 Page page= pageManager.getPage(event.getPage().getId());		 				System.out.println("PAGE ID " + page.getId());				labelManager.addLabel((Labelable) page, new Label("timesheet"));		System.out.println("LABEL 1 ADDED");        labelManager.addLabel((Labelable) page, new Label("timesheettwo"));        System.out.println("LABEL 2 ADDED");		 	 }	@Override	public void destroy() throws Exception {		eventPublisher.unregister(this);			}}
```


Answers:
author: Robin Peters
body: To add a label to a page, try to use the *LabelUtil.addLabel("label", labelManager, page)* - method.  
This works fine for me:  
for(String i : labels)LabelUtil.addLabel(i, labelManager, event.getPage());
User-Profile Data Table
Asked by J?rgen M?ller:

Hi, in which table the user data profile is stored ?

Thanks.


Answers:
author: Nic Brough -Adaptavist-
body: Depends on what version of confluence you're on, what user management system you're using and what data you want from the profile.

Start with the tables named CWD\* though, for more recent versions of Confluence

comments: author: J?rgen M?ller
body: it's confluence 5.3.4 and in the tables named CWD\* are not the profile data. I want all profil data inculde the path to the profile picture


author: Nic Brough -Adaptavist-
body: Ok, that's a start. You still need to look at the CWD table if you're using internal users because the keys on it are used to tie data to users.

You'll need to define exactly what you mean by "profile data" though because there's several things you might mean, and data on users is held in many places.

Taking the one item you have named as an example... the file is treated as an attachment, and to find out what profile picture is tied to a user, you get the user's ID, then look in "values" to find out what to look for in "attachments"


Tags: confluence-administration
How to show priority names in Jira issues list macro?
Asked by Martin Heinemann:

Hi,

what key must i enter in the Jira Issues List macro in confluence to show up the priority name instead of the icon?

I tried priority.name but this was a silly guess, i guess.


Answers:
author: Eric Brahmann
body: Hi all,

sth new here? I am trying to display an two dimensional Jira Filter within Confluence, but Priorities are not shown coreectly, instead it is all irrelevant ..... although Priority is filled correctly within Jira. ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/14475i95DAB37A35ED3C37/image-size/large?v=v2&px=999 "image.png")

PS I need an ootb solution as I am working i a big company .... Admin Ways are very long .....


author: david guo
body: [Editing Confluence JAR Files](https://confluence.atlassian.com/display/CONFKB/How+to+edit+files+in+Confluence+JAR+files)

The vm file that needs to be updated is templates\\extra\\jira\\staticJiraIssues.vm in "confluence-jira-plugin-5.6.12.jar".

The lines I deleted:

```
#elseif( $col.equals('priority') &amp;&amp; $item.getChild('priority').getValue())&lt;img src="$!xmlXformer.findIconUrl($item.getChild($col.key))" alt="$generalUtil.htmlEncode($!item.getChild($col.key).getValue())" class="icon" /&gt;
```

1. Shutdown Confluence
2. Create WEB-INF\\classes\\**templates\\extra\\jira**
3. Copy updated staticJiraIssues.vm file to WEB-INF\\classes\\templates\\extra\\jira
4. Start Confluence


author: Guilherme Nedel [Atlassian]
body: Hello Martin,

You might be able to accomplish that by customizing the [JIRA Issues Macro](https://marketplace.atlassian.com/plugins/confluence.extra.jira) look for the .vm files, and uploading the resulting .jar to Confluence plugins folder - you can use [this KB](https://confluence.atlassian.com/display/CONFKB/How+to+Replace+a+Bundled+Plugin) as aid.
How to log the usage of heavy Confluence plugins?
Asked by Oleksiy Brushkovskyy:

Does anyone know is there a way to log a plugin usage by Confluence users?

Some class name to log, that would help to identify what plugin did particular performance impact which we caught using monitoring system.

I'm interested as in Scaffolding and Reporting plugins as in any other "heavy" plugins.


Answers:
author: Oleksiy Brushkovskyy
body: Hi Daryl,

Thanks a lot for the links!

I've just found the answer here:  
[](https://confluence.atlassian.com/display/DOC/Identifying+Slow+Performing+Macros)<https://confluence.atlassian.com/display/DOC/Identifying+Slow+Performing+Macros>


author: darylchuah
body: Perhaps you can try to have a read on the following documentation which cover the basic and fundamental of performance tuning for Confluence:

* [](https://confluence.atlassian.com/display/DOC/Troubleshooting+Slow+Performance+Using+Page+Request+Profiling)<https://confluence.atlassian.com/display/DOC/Troubleshooting+Slow+Performance+Using+Page+Request+Profiling>
* [](https://confluence.atlassian.com/display/DOC/Performance+Tuning)<https://confluence.atlassian.com/display/DOC/Performance+Tuning>
* <https://confluence.atlassian.com/display/DOC/Requesting+Performance+Support>
replace all the links with new links
Asked by SURESH CHITIKELA:

The followingneeds helpin confluence

<br />

A. I need to identify ALL the links.  
B. All the different links need to be identified/grouped.  
C. All the links need to be changed to the new ones.  


Answers:
author: AafrinA
body: Hi Suresh,

Here is the solutions for your question:

**A. I need to identify ALL the links.**

As mentioned by Steve, you can generate the xml backup and then use any text editor to separate and modify the links.

**B. All the different links need to be identified/grouped.**

My suggestion would be the Sublime text editor as it provides multi line edit and and also grouping of keywords by using CTRL + D.

**C. All the links need to be changed to the new ones.**

Multiline editing is possible or you can use find and replace to change the links.


author: Steve Gerstner [bridgingIT]
body: Hi Suresh,

you can do a xml-backup.

In the backup zip, you get the content in one single xml file. You can then analyse it with tools you prefer or write something to do so. Identifiing links should be easy in this file.

But there is nothing out of the box.

Regards

Steve


author: Davin Studer
body: Your question doesn't make much sense.

comments: author: SURESH CHITIKELA
body: did u understand the question?
Replace dashboard by it's own page
Asked by F:

I want to replace my dashboard by our own page. I tried to change the Home site web page, using a dedicated dashboard, but it's doesn't works well. The URL is changed and the left side bar still appear (and it's not easy to remove it).

So I decide to used the [include macro in the global layout](http://www.adaptavist.com/display/AtlassianConfluence/Custom+Dashboards) and remove the defaut content.

But when I use it, my page isn't format correctly (I have section and columns inside this page). The columns are badly manage.

Here the code I put in the global layout:

```
&lt;div class="dashboard"&gt;        &lt;div class="dashboard-section"&gt;            #if ($mode == "dashboard")                #parse ("/decorators/includes/dashboard-navigation.vm")                #requireResourcesForContext("dashboard")                #rssautodiscovery($action.rssDescriptor)                #permitSearchEngines()                &lt;div class="dashboard-group left"&gt;                     $helper.renderConfluenceMacro("{include:DAS:HomeLeft}")                &lt;/div&gt;## left                &lt;div class="dashboard-group right"&gt;                    $helper.renderConfluenceMacro("{include:DAS:HomeRight}")                &lt;/div&gt;## right            #else
```

```
....
```

And here the code of my page that will be the dashboard:

```
{section}{column:width=50%}Insert your introduction text here{spaces}{column}{column:width=50%}{recently-updated:width=100%|types=page,news,comment|spaces=*}{favpages}{column}{section}
```

When I do this, the both columms are display vertically and not horizontally. There is a big empty column on the right, and all content are write in the left column.

How to avoid this problem ? There is a css style to change ?

thanks.


Answers:
author: Matthew J. Horn
body: Not off the top of my head, but you do have to modify the global and layout decorators. Feel free to poke around the CSS. We basically overrode the standard styles with our own column layout.


author: F
body: ok thank you. Your site looks great !

Do you know which style that must be modified to get rid of the columns problem ?


author: Matthew J. Horn
body: Yes, you're going to have to change the CSS quite a bit to get rid of the Confluence look-and-feel. It's not terribly easy, but if you have a decent designer, it's definitely doable. Our dashboard looks like a "regular" web site. You can see it here: <http://devcenter.verivo.com>


author: F
body: yep it's nice, but it's not free...


author: J?rgen M?ller
body: Take a look on  

[](https://marketplace.atlassian.com/plugins/com.simplenia.confluence.plugins.customdashboards)<https://marketplace.atlassian.com/plugins/com.simplenia.confluence.plugins.customdashboards>

It's a nice plugin, the only disadvantage is that the settig of the user homepage not always work.

[](https://bitbucket.org/simplenia/custom-dashboards-for-confluence/issue/4/new-filtering-rule)<https://bitbucket.org/simplenia/custom-dashboards-for-confluence/issue/4/new-filtering-rule>

comments: author: F
body: yep it's nice, but not free...


Tags: confluence-administration
Decision register showing 'Due Date' in american format instead of australian format.
Asked by Nino Carabella:

Decision register showing 'Due Date' in American format yyyy/mm /dd instead of Australian format dd mmm yyyy. All other places show correctly. Can this be configured?


Answers:
author: HosseinA
body: Hi

At the moment Confluence does not have any configurations for this, however, there is an improvement request to standardize date display format within blueprints, and you can visit:

[](https://jira.atlassian.com/browse/CONF-30046)<https://jira.atlassian.com/browse/CONF-30046>

It is worth mentioning that users can modify the dates to their desired format.
Confluence Generate private URL for pages for public sharing superceding space permission
Asked by hkhowie:

Is it possible to generate page level private URL for one-time access in a private space for non-space users?

Use Case: Meeting notes documented in a private space, but would like to share with non-space members (because we don't want them to have access to all of space documents).

Can accomplish this but granting everyone access to the space, but manually restrict specific pages to specific groups. However, this is extremely time consuming in terms of content and site administration.

Thoughts anyone? Thanks!


Answers:
author: Gorka Puente _Appfire_
body: Hi @Howard Kwong,

We've just released the new version of [Share Attachments and Pages](http://kcy.me/1bbhp), which lets users share a live view of a page (changes are immediately reflected in the shared pages) or a snapshot (a picture of the page, exported as an attachment). This add-on generates unique URLS that can be accessed by non-Confluence users.

Regards,

Gorka

comments: author: Howard Kong
body: I think you mean Howard Kwong @Howard Kwong.


author: Gorka Puente _Appfire_
body: Sorry! It's corrected now.


author: Guilherme Nedel [Atlassian]
body: Hello Howard, that is a good candidate for a feature request, which can be raised within our [issue tracker](http://jira.atlassian.com), since currently there isn t such feature. Maybe the meeting notes could be exported as a PDF directly from Confluence tools, to be sent ot the participants.

Alternatively, the meeting notes can live in a different space, and be included in the restricted one using the [Include Page Macro](https://confluence.atlassian.com/display/DOC/Include+Page+Macro).

Hope this helps.


author: hkhowie
body: Thanks Guilherme!

comments: author: Guilherme Nedel [Atlassian]
body: You are welcome Howard. Kindly accept this answer (ticking the top right corner of it) so this thread can help other people. :)


Tags: confluence-administration
Replace an Administrator
Asked by Bessie Weiss:

I set up our account for Confluence, but am leaving the organization and need to hand over control to someone else. How can I do this?


Answers:
author: Mauro Badii
body: Hi Bessie,

You'll find answers at the [Licensing \& Purchasing FAQ](https://www.atlassian.com/licensing/purchase-licensing)

Specifically in [4. How can I update contact information on my Atlassian account?](https://www.atlassian.com/licensing/purchase-licensing#managingmyaccount-4)

Hope that helps

Cheers!


Tags: cloud

confluence-cloud
Can i get a heat map of user behavior on some Confluence page?
Asked by Mike Lench:

Need to understand how our customers using our confluence documentation:

* what is the most viewable places of page
* which button is the most clickable
* and etc.

Is there any ways to track user behavior?


Answers:
author: Matthew J. Horn
body: You can do this with Google Analytics. Many folks have successfully integrated GA with their Confluence installations. More info:

[](/questions/89931/google-analytics-on-confluence-pages)<https://answers.atlassian.com/questions/89931/google-analytics-on-confluence-pages>

[](http://davidsimpson.me/2009/03/18/tracking-atlassian-confluence-usage-with-google-analytics/)<http://davidsimpson.me/2009/03/18/tracking-atlassian-confluence-usage-with-google-analytics/>

hth,

matt

comments: author: Mike Lench
body: Matthew, thanks fo usefull links!

our confluence is not opened for the internet. that's why i think that GA is not available

i also think that there is no solution to my case :(

plugins are helples, using GA is impossible. what's more, do you know?


author: Matthew J. Horn
body: Google Analytics can work on intranets -- as long as the intranet can reach OUT to the internet:

[](https://support.google.com/analytics/answer/1009688?hl=en)<https://support.google.com/analytics/answer/1009688?hl=en>

It doesn't have to allow external access IN.

matt


author: Guilherme Nedel [Atlassian]
body: Hi Mike, I believe that might be possible by [customizing](https://confluence.atlassian.com/display/DOC/Styling+Confluence+with+CSS) the application along with a third party tool that would perform the acitvity gauge. Nevertheless it would require experimenting. Currently there are some solutions to increase usage tracking, such as [Viewtracker](https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.viewtracker) or the [Usage Stats](https://marketplace.atlassian.com/plugins/com.atlassian.confluence.ext.usage).

comments: author: Mike Lench
body: Guilherme, thx for answer!

we already use this plugins, but it not enough for us


Tags: confluence-administration
Sorting Comments (Most Recent First)
Asked by Eugenie Kim:

Am I correct in understanding that there is no way to sort comments in Confluence OnDemand so that the most recent one is at the top? Is there any chance that this may be updated in a future release? Thanks.


Answers:
author: Mauro Badii
body: I'm afraid it is only possible on the downloaded version of Confluence. It requires a custom layout and that is [not supported](https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand) on OnDemand.

Feel free to vote and watch [this feature request asking for it](https://jira.atlassian.com/browse/CONF-2587) for updates. There is no information at the moment saying if it will be available on future updates.

Regards,  
Mauro

comments: author: Eugenie Kim
body: Thanks, Mauro.


Tags: cloud

confluence-cloud
Single Sign On options for OnDemand Confluence?
Asked by kev Zettler:

Hi I want to use Confluence as a documentation center with Single Sign On for an existing app.  

I was hoping to use CAS but I'm not sure what options I have with an OnDemand instance of confluence.


Answers:
author: Rodrigo Girardi Adami
body: Hi Kev,

I could find these two questions here which might be of help:

[](/questions/171665/google-apps-sso-with-confluence-on-demand)<https://answers.atlassian.com/questions/171665/google-apps-sso-with-confluence-on-demand>

[](/questions/246798/single-sign-on-for-jira-on-demand-confluence-on-demand-fisheye-standalone-crucible-standalone-and-bitbucket)<https://answers.atlassian.com/questions/246798/single-sign-on-for-jira-on-demand-confluence-on-demand-fisheye-standalone-crucible-standalone-and-bitbucket>

If your application can use Google Apps, then you might create a connection between it and the Ondemand. Just an idea. ;)

As regarding CAS, I believe that's not possible since the Ondemand platform is limited on the customizations you need to perform. I couldn't find any documentation for that.

Regards,

Rodrigo


Tags: cloud

confluence-cloud
Spaces not displayed in Space Directory for Confluence 4.3
Asked by Eli Kim:

I created an export off of Confluence 4.3.3 and imported it into a fresh install of Confluence 4.3.7. I don't see any errors and it says that it was sucessful. The search index and the did you mean index have been built.

However, I am not seeing ANY spaces within the Spaces Directory. I can see all the tabs, but nothing is within the tabs. BUT I can see Spaces on my dashboard and when I try to go to dashboard I am able to go into the pages. When I do a search for a page, no suggestions come up.

The following does not apply to my case:

[](https://confluence.atlassian.com/display/CONFKB/Spaces+are+not+Being+Displayed+on+Dashboard+or+in+Spaces+Directory)<https://confluence.atlassian.com/display/CONFKB/Spaces+are+not+Being+Displayed+on+Dashboard+or+in+Spaces+Directory>

All my space status are CURRENT.


Answers:
author: AnnWorley
body: Hi Eli,

Please try reindexing:

[](https://confluence.atlassian.com/display/DOC/Content+Index+Administration)<https://confluence.atlassian.com/display/DOC/Content+Index+Administration>

If that doesn't work please try rebuilding the indexes from scratch:

[](https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch)<https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch>

Cheers,

Ann Worley

Support Engineer

Atlassian

comments: author: Eli Kim
body: Hello,

This did not have any effect. What data does it retrieve to get the spaces in the tabs within the Spaces Directory? While the tabs exist, there is nothing inside of each tab in Space Directory


author: Valentin Rudolf
body: Hi,

I have the same problem since last Confluence Cloud update (v. 1000.0.0-d1082ac). My spaces are not displayed anymore on the space directory (/wiki/spacedirectory/view.action).

It seems the 'indexing action' is disabled on Confluence Cloud (see <https://community.atlassian.com/t5/Confluence-questions/Why-is-cloud-confluence-indexing-disabled/qaq-p/337558>).

How can I solve this ?

Thanks in advance,  
Valentin


Tags: backup

confluence-administration

import

space
How to create a Glossary in Confluence
Asked by Beth Buonanno:

Does anyone have a step-by step procedure on how to create a Glossary in Confluence? We are currently using 3.5.9, but will be updating to 5.4 in near future. I am a neophyte when it comes to macros and widgets....and cannot figure out how to create a glossary term that is searchable. I also do not know what plugins I would need to accomplish this task.

Thank you


Answers:
author: Anis Othman
body: Hi Beth,

I recommend you to try this new Glossary plugin. You can view it here, in the Atlassian Marketplace:

[](https://marketplace.atlassian.com/plugins/fr.spectrumgroupe.confluence.plugins.glossary)<https://marketplace.atlassian.com/plugins/fr.spectrumgroupe.confluence.plugins.glossary>

It's easy to use it and it lets you manage thousands of terms and their definitions inside a smart wiki page tree.

It contains a search box to quickly find a term definition.

If you have further questions about it, please contact us at [](http://lab.spectrumgroupe.fr/jira/browse/BPGLOS)<http://lab.spectrumgroupe.fr/jira/browse/BPGLOS>

comments: author: Sorin Sbarnea (Citrix)
body: Before clicking the link you may want to know that it costs, $2000 for maxxed Confluence.


author: Beth Buonanno
body: Thank you Anis for this information! I will talk with my company about this product.


Tags: glossary
How to use the Product Requirements blueprint?
Asked by Martim Schnack:

When I create a page using the Product Requirements blueprint, the page looks nothing like the screenshot provided in the documentation ([](https://confluence.atlassian.com/download/attachments/329975392/RequirementsIndex_annotated.png "Follow link")<https://confluence.atlassian.com/download/attachments/329975392/RequirementsIndex_annotated.png>).

For instance, the requirements list is a simple table, not connected to Jira, and there is no "Add Product Requirement" button.


Answers:
author: Christian Czaia _Decadis AG_
body: You are mixing things up. Each line in tha screenshot you provided is a singe product requirements page. If you add the blueprint you automatically get the "Product Requirements" short link. This overview is the result from the screenshot...

comments: author: Martim Schnack
body: Gotcha. Thanks for your quick reply :)