youngmon/atlassian-qna huggingface dataset:
Automatically create/add a page
Asked by Tom Crapper:

Hi,

I have several templates to make it easier for users to add stuctured content.

I want to also add unstructured content to the created pages, but wish to do this by automatically creating/adding a child page to the one renderd through the template.

**USE CASE:**

A user clicks a link that takes him/her to a template form; this will create a new page in that space. (done this bit).

So, when finished, the user clicks 'Save' and the form creates a new page. IN ADDITION, a child page is created (based upon that parent page name) and is imbedded inside the parent page (using the Include Page Macro {include:...}).

**WHY?**

In doing this, I can have a repository of structured data which can be efficiently presented, searched etc, AND a running notes/test area on the page which can be manipulated by users on the fly. This way, I get a really rich and rapidly grown repository for my userbase.


Answers:
author: Tom Crapper
body: Cracked it (well, in fact Mick Roff did!!! This solution includes his text. Thanks Mick!)

Firstly, put the create childs in a report to minimise when the report is run. This is set it up only to run within the first 60 seconds of the parent page being created. This ensures child pages that have been spawned can be deleted if required. If you don't have this restriction, then the child pages will continue to be spawned if they are not present.

Then, the use of the replace and render function allows you to replace %title% with the name of the parent page.

Finally, add a {create-child} macro (in a {replace} macro) to add a child page of the correct title.

Should look like:

```
{report-block}{local-reporter:content:creation date}{date-filter:creation date|afterValue=-60s|format=hh:mm:ss dd MMM, yyyy}{local-reporter}{report-body}{replace-and-render} {replace-body}{create-child:%title% - Notes|parent=@self|template=Notes Page}   {create-child:Grandchild Page -%title%|parent=Child Page -%title%|template=Blank }{replace-body} {replace-item:%title%} {report-info:report:root content &gt; page:title}{replace-item} {replace-and-render}{report-body}{report-block}
```

And:

```
{replace-and-render} {replace-body}{create-child:Child Page -%title%|parent=@self|template=Blank }   {create-child:Grandchild %title% - Notes|parent=Child Page -%title%| }{replace-body} {replace-item:%title%} {report-info:report:root content &gt; page:title}{replace-item} {replace-and-render}
```

The next thing I have to work out is how to automatically pre-fill the notes page (either with a template or without) in order that It renders content as soon as the main page template is saved. At the moment, it shows the pink 'macro error' lines of text where the child pages should render, which is not fixed until they are opened, edited and saved (which completes the parent page).

Any answers to that last piece of the jigsaw?
Attachment label
Asked by Mattias Cederlund:

Hi!

I'm new to the system so please forgive me if questions are to simple.

I need to add labels/tags to my attachments to make them searchable. Is that possible to do?

Thanks!

Mattias Cederlund


Answers:
author: Kevin Buchs
body: I thought I'd convert my comment to an answer - so I get more good karma.

----

Is the plan to put all attachments on one page, or distribute them around in an orderly/disorderly sequence?

It would seem to be reasonable to put one attachment per page and then label the page with the label you want to associate with the attachment.

You may want to use the Reporting plug-in to generate your lists, because then you could possibly have a compact list of hyperlinks to the attachments and you wouldn't have to remember the search criteria.


author: David at David Simpson Apps
body: Attachments don't have labels though there is an [open request (](https://jira.atlassian.com/browse/CONF-3963)[CONF-3963](https://jira.atlassian.com/browse/CONF-3963)) for this. They can be made searchable though. There are extractors for [Office](https://plugins.atlassian.com/plugin/details/4871) and [OpenOffice](https://plugins.atlassian.com/plugin/details/4904) files, though these aren't currently Confluence 4.0 compatible (according to Plugin Exchange)

You can create new extractors for other file types using the [Extractor Module](https://developer.atlassian.com/display/CONFDEV/Extractor+Module).


author: Mattias Cederlund
body: Hi again and thanks for your good suggestions.

I am new to confluence so I am not aware of all possibilities and limitations yet.

My customers would like to create projects and attach documents - which are formal agreements. Then he would like to have labels to all the agreements to quickly find all attachments that belongs to a specified subjects.

If we want to find all agreements belonging to let's say gardening, we only filter them out.

Am I thinking right here?

comments: author: Kevin Buchs
body: Is the plan to put all attachments on one page, or distribute them around in an orderly/disorderly sequence?

It would seem to be reasonable to put one attachment per page and then label the page with the label you want to associate with the attachment.

You may want to use the Reporting plug-in to generate your lists, because then you could possibly have a compact list of hyperlinks to the attachments and you wouldn't have to remember the search criteria.


author: Mattias Cederlund
body: Sounds like an interesting solution! Thanks Kevin i will give it a try!


author: Sherif Mansour
body: As David mentioned below, we have an open feature reuqest for this right now. Just out of curiosity, I'd love to hear why you want to label attachments? Is it purely because of search? is it because people search by label or is it because people can't find the attachments right now?


author: Radek Kantor
body: You can use "JIRA Searchable Attachments Plugin" (<https://plugins.atlassian.com/plugin/details/4868>) or another one.
Create local copy of Confluence
Asked by Mattias Cederlund:

Hi!

My customer wants to use a local copy of confluence when out on travel.

This is only for read purposes.

Can this be done in an easy way?

Best regards

Mattias Cederlund

Edit: He want's to do it both on PC and Mac.


Answers:
author: David at David Simpson Apps
body: Maybe this?

<http://www.appfire.com/firestarter/>


author: Konzept plus
body: Hi,

isn't it easier to establish a VPN-Connection to allow remote-access?

I haven't seen an "offline" copy, like it is available for Sharepoint.

Here are some articles:

<http://confluence.atlassian.com/display/DISC/Offline+Confluence+Access>

<https://jira.atlassian.com/browse/CONF-3726>

regards Oliver

comments: author: Mattias Cederlund
body: Hi Oliver and thanks for your reply!

The customer travels a lot, and it is for use mainly in airplanes, why vpn won't work.

Is it possible to just create a local copy of the db? Would that work?


author: Konzept plus
body: Hi Matthias,

i could think of using an externel database with replication. So using a working DB an a client-DB as a replic of the original one on the laptop. Then you have to store attachments etc. in the database to avoid replication of files. You should have the same filestructure on both sides. Also you have to install same plugins.

And don't forget the license issue.

That might work but I'm not sure of any impact

Regards

Oliver
How to see all breadcrumbs?
Asked by Konzept plus:

How do I enable all breadcrumbs without having "..." in Confluence 4.0

There is no option inside Adminpanel, at least I don't see it.

Any help?

Thanks  
Oliver


Answers:
author: David at David Simpson Apps
body: Browse to **Confluence Admin \| Look and Feel \| Custom HTML**

In **At the end of the HEAD**, paste:

```
&lt;script&gt;  AJS.toInit(function(){    AJS.$('#ellipsis strong').click();  });&lt;/script&gt;
```

..then save. This will register a click on the ellipsis on page load.

comments: author: Konzept plus
body: That was the trick. Thanks a lot.

Thanks atlassian for complicating simple things


author: AWarren
body: Hello David,

I cannot get the above script to work on Confluence 4.0.

I have added the content to the correct section, and it is there if I check the source of the page. Do you have any other suggestions?


author: David at David Simpson Apps
body: I would expect it to work on Confluence 4.0 as that's what I (quickly) tested it on.

If you view-source, can you see the text in the output?


author: Matthew J. Horn
body: I've tested this with a couple browsers on cConfluence 4.1.2 and it works great. Thanks David!

matt


author: Kevin Buchs
body: You are probably aware that you can dynamically expand the ellipsis by clicking on it. This is required for each page you view, however, so if you need it routinely displayed, then your answer will help.
Introducing Confluence 4.0 - Live Demo & Q&A
Asked by Anni R:

Hi Atlassian people!

Please provide more information for that. Is it like web conference in real time? Is the participants numer is important?

If I register, how can I participate to this conference? Do you send a link for that where I see in real life picture and sound?

Thanks.


Answers:
author: David at David Simpson Apps
body: It's a GoToMeeting webinar. Sign up and you'll get all the details emailed to you:

<https://www2.gotomeeting.com/register/366915714>


author: Anni R
body: Who can't paticipate in webseminar - do you send materials, fails, slideshow somwhere?


author: Anni R
body: What soft I should install to parcipicate the converence?
Can't subscribe to other Confluence Calendars
Asked by Jason George:

Confluence 3.5 with the Calendar plug-in - not Team Calendars. We can't use Team Calendars at this time.

We have a main Calendar, A, with additional Calendars X, Y Z. Trying to subscribe X, Y, Z to Calendar A results in error "An unexpected problem occurred."

Have tried various suggestions; setting space to anonymous view, added a new calendar user, relaxed parsing mode, nothing seems to work.

Is it possible to get this working or not? this is a major deal breaker for us if we have to buy Team Calendars now.


Answers:
author: Azwandi Mohd Aris
body: You will probably need to explicitly specify a username and password in the feed URL. See <http://confluence.atlassian.com/display/CONF35/Passing+username+and+password+via+URL>


Tags: calendar
How to add a side wide banner
Asked by Konzept plus:

I wan't to add a side wide banner via custom html. But when I attach my code for banner "after header" and edit a page, then i miss the last two rows inside the editor. I can't even see the arrow on the right hand side to scroll down.

How can I add a banner without screwing up the editor?

This is the HTML I'm using right now inside Documentation Theme:

\<table width="100%" border="0" cellspacing="0" style="background:#F79618;"\> \<tr\> \<td width="28%"\>\<img src="/images/kp_banner1.gif"\>  
\</td\>  
\<td width="72%"\>\<img src="/images/kp_banner2.gif" align="right"\>\</td\>  
\</tr\>   
\</table\>

Any suggestions?

Regards Oliver

![](http://www7.pic-upload.de/26.09.11/1idczdc7onh6.jpg)


Answers:
author: JamieA
body: Possibly a bug in confluence 4.0? Ie the css fails to take into account the size of banner when drawing the editor and footer etc. Sorry for being so vague but I've had similar problems before.


author: Konzept plus
body: It might help to get rid of the Tip in the footer to make footer smaller. But I also don't know how to remove the tip.


author: Konzept plus
body: For screenshot I was using IE 8 but it's the same with Firefox 5 and 6. It also the same on different machines.


author: Konzept plus
body: I don't know how to attach here, so I uploaded to a hoster

<http://www.pic-upload.de/view-11499346/editor.jpg.html>

<http://www.pic-upload.de/view-11499366/editor_banner.jpg.html>

It's crazy, with Confluence 3.5 it was working perfectly, now with 4.0 it is messed up.


author: David at David Simpson Apps
body: Which browser and version of the browser are you using?


author: David at David Simpson Apps
body: Can you attach a screenshot? This might help


author: Konzept plus
body: Hello David,

thanks for this one. But same problem without tables.

I probaly have to edit the main template and not injecting the code afterwards? But I'm not sure where and how. I'm totally newbie in customizing themes/templates.

Thanks

Oliver


author: David at David Simpson Apps
body: [Don't use tables](http://stackoverflow.com/questions/83073/why-not-use-tables-for-layout-in-html) unless you're adding tabular data.

Try something *more like* this (untested) instead:

```
&lt;div style="background:#F79618;"&gt;  &lt;img src="/images/kp_banner2.gif" style="float:right;"&gt;  &lt;img src="/images/kp_banner1.gif"&gt;&lt;/div&gt;
```

For extra points, externalise the styles.
Can I retrieve a user's profile pic via SOAP?
Asked by Aviram Gabay:

Hi,

I am trying to create a page with a few users names and profile pictures in it.

I want to be able to create that page automatically.

This is why I need a way to get the porfile pictures using SOAP api

Thanks!

Aviram


Answers:
author: Joe Clark
body: It looks like it is not possible to do get a user's profile picture via SOAP. You can vote on this feature request if it's something you'd like to see implemented: <https://jira.atlassian.com/browse/CONF-13709>

Alternatively, you could write a custom plugin that exposes this information through a custom SOAP endpoint.

comments: author: Aviram Gabay
body: Hi Joseph,

Thanks for your reply, any idea which end point contains that kind of data?

I looked up the api's documentation and could not find an endpoint that will contain (along with other attributes of course) a link to the profile image.

Cheers,

Aviram


author: Joe Clark
body: As I said, there is unfortunately nowhere in the SOAP API where you can retrieve this information. If you want to develop a custom plugin to provide this information, I think there is a method on the UserAccessor bean that will return the user's profile picture info.
Display random photo attachment from another page and its child pages
Asked by Jason George:

Trying to grab a random attachment from a photo gallery page - located on a child page, uses the gallery macro - and it's child-pages (the sub-albums).

First, I'd love to know if there's a better way for managing a photo gallery in Confluence.

Second, and my main question, how do I do this? I found a code example using the report-image macro but can't get it to work:

- Home page

- - W page (this is the page I want to display a random image on)

- - - X page (page containing various content, DON'T WANT to get anything from this)

- - - A page (this is a gallery page, may get a random photo/attachment from here)

- - - - B page (sub/child-page of A, could also get random photo from here)

- - - - C page (as B)

- - - - D page (as B)

- - - Y page (another page, don't want to get anything here!)

- - - Z page (as Y)

In short, get random image (attachment) from A, B, C, or D and display on W - but don't get anything from X Y Z or anywhere else in the space.

TIA!


Answers:
author: David Peterson
body: Hi Jason,

You should be able to use something like this:

```
{report-variable:Images}{expanding-reporter:page:attachments|as=Attachment}  {combining-reporter}    {local-reporter:@self|source=A page}    {local-reporter:page:descendents|source=A page}  {combining-reporter}  {text-filter:attachment:content type|include=image.*}{expanding-reporter}{report-variable}{report-image:variable:Images &gt; query:as collection &gt; collection:random &gt; expanded:Attachment &gt; attachment:url}
```

Essentially, it creates a combination list of 'A page' (@self) with the descendants of 'A page' (yes, 'descendents' is spelled that way in the supplier. It's a typo I should fix in the code sometime...). Then, it expands on the attachments of said pages that have a content type starting with 'image'. So, we end up with a big list of all attachments, stored in 'expanded' objects. Then, we select a 'random' item from the complete list and grab it's URL for the {report-image}.

Hope that helps!

David

comments: author: Jason George
body: Thank you David! It sure did, and thank you for making it so clear - plug and play. Beautiful! Have a great day!


author: Jeff Peters
body: This sounds like exactly what I'm trying to accomplish, but unfortunately I'm too much of a non-coder to understand what to do with this. Do I use this code to create a User Macro?


author: Jacob Bartlett
body: This doesn't work for me - I'm trying to place the macro in a panel if that's relevant. I'm just pasting in the macro you wrote, changing the page names. Do you know what I can change?


Tags: gallery

report
Usability of "Minor Change" checkbox.
Asked by Guy Montag:

The "Minor Change (No Notifications will be sent)" check box is a major annoyance that results in 1000s of unecessary spam messages that cause people to ignore said messages.

This could be easily fixed by:

1) Remove the Minor Change checkbox and text

2) Use these action buttonss at the foot of the page:  

\[Save Only\] \[Save and Send Notifications\] \[Cancel\]


Answers:
author: JamieA
body: Assuming this is a question... if you go to confluence admin -\> custom html -\> at the end of head, and paste in the following, it should do what you want:

```
&lt;script type="text/javascript"&gt;    AJS.$(function () {        var minorEdit = AJS.$("#minorEdit");        if (minorEdit.length) {            minorEdit.parent().toggle();            AJS.$("input[type='submit'][name='confirm']").each(function () {                AJS.$(this).clone().click(function () {                    AJS.$("#minorEdit").attr('checked', 'true');                }).val('Save (No notifications)').insertAfter(AJS.$(this));            })        }    });&lt;/script&gt;
```


author: Sven
body: Just for information. We wanted to have the checkbox disabled by default (to prevent accidental SPAMMING ;-)

It's as easy as this (put at the same place like indicated above)

```
&lt;script type="text/javascript"&gt;AJS.toInit(function () {  AJS.$('#notifyWatchers').attr('checked', false);});&lt;/script&gt;
```

comments: author: Joerg Bencke
body: Hi, a small correction :

```
&lt;script type="text/javascript"&gt;AJS.toInit(function () {  AJS.$('#minorEdit').attr('checked', false);});&lt;/script&gt;
```


author: Sven
body: Is this necessary in confluence 4.2 ?

(the other script is definetly working in 4.1)


author: Joerg Bencke
body: Hi Svenni, I did test it with Confluence 3.5, and there "notifywatchers" got me an error.


author: Sean King
body: Confluence v3 requires the box be checked to not notify users as it's asking, "Is this a minor edit?" Therefore:

```
&lt;script type="text/javascript"&gt;AJS.toInit(function () {  AJS.$('#minorEdit').attr('checked', true);});&lt;/script&gt;
```

Confluence 4.x+ is the opposite, it's asking, "Should I notify people of your change?", therefore you don't want the box checked. The ID for the box is also different.

```
&lt;script type="text/javascript"&gt;AJS.bind('init.rte', function() {  AJS.$('#notifyWatchers').attr('checked', false);});&lt;/script&gt;
```


Tags: notification
Mailto: icon not showing
Asked by David Oliver:

Mailto: icon (envelope) does not appear although valid mailto address and syntax. Tested with several browser and different OS. Searched previous questions, no resolution.


Answers:
author: Jean de Laulani?
body: This is a global setting only, i'm affraid.


author: Jean de Laulani?
body: Hi There,

you need to check that in the "general configuration" the option "Show Link Icons" is checked.

cheers,

comments: author: David Oliver
body: Can this be set by each individual workspace or is this a global setting only?


author: David Oliver
body: Thanks! In a large organization and probably not an option for me to request this...Merci!
Where does Confluence 3.5.x store Crowd URL?
Asked by Stephan Haslinger:

Hi,

i need to change the crowd URL in my Confluence 3.5.x but am unable to use the GUI.

(I have restored a xml backup but the crowd url has changed. I cannot login because Confluence cannot connect to Crowd).

As of version 3.5 it should be somewhere in the database?

Regards,

Stephan


Answers:
author: Stephan Haslinger
body: I've found cwd_directory_attribute on my own.

comments: author: Ivar
body: I've been looking for this myself. No information in Confluence about this change, at least not that I could find that was related to 'changing the crowd server url'.


author: Stephan Haslinger
body: it seems as if you have to change both: the database entry + the crowd.properties file


Tags: crowd

sql

url
Why do I login on every action ?
Asked by Eric T:

Hello,

I'm using a standalone Confluence-3.5.5 and on almost every action I do, login is required. This is a little bit boring :)

Can someone help me and indicate how to configure this ?

Thanks in advance

Ticker


Answers:
author: Eric T
body: Found it !

There's an option in $CONFLUENCE_HOME/confluence/WEB-INF/classes/seraph-config.xml :

```
&lt;!-- Invalidate session on login to prevent session fixation attack --&gt;&lt;init-param&gt;  &lt;param-name&gt;invalidate.session.on.login&lt;/param-name&gt;  &lt;param-value&gt;true&lt;/param-value&gt;&lt;/init-param&gt;
```

If you change the parameter value to **false**, it solves the problem :) We haven't this on our enterprise Confluence because we are using Crowd : the seraph config files are by-passed.

Hope this helps

Ticker


author: David at David Simpson Apps
body: I've experienced something similar before on restrictive company networks.

Is this a hosted environment? Do you have a particularly restrictive networking in your company? If so, maybe [Privoxy](http://www.privoxy.org/) may be able to help you track down problem calls that your network blocks.

Do you have a secure network gateway that is invalidating sessions?

comments: author: Eric T
body: Hi David,

The standalone instance of Confluence is installed on my machine (Windows XP) and I access it locally. So it could not be a network problem. But I think you're right : something is invalidating my session...

Thanks for your answer

Ticker


Tags: configuration

login
Problems in configuring Confluence 4.0
Asked by Lee Lee:

Hello everyone. When I configure Confluence 4.0, it's always stopping when it connect to jira and load users and groups from jira. I don't know what happens, and after I uninstall Confluence and install it again, it happens again when I configure.

In this case, I have two users in jira, they are admin and test.

This problem troubles me a lot, please help me, thanks!

![pic](http://i.6.cn/cvbnm/6b/94/92/f94c4d4c2f6200f90278b9fe96c8e712.png)


Answers:
author: BernardoA
body: Actually this bug has been fixed in Confluence 4.0.3 as uptated in the bug report.


author: Azwandi Mohd Aris
body: This is a known bug in Confluence 4.0, see <https://jira.atlassian.com/browse/CONF-23184>. Please try the [workaround](https://jira.atlassian.com/browse/CONF-23184?focusedCommentId=270103&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-270103) provided in the bug report.