youngmon/atlassian-qna huggingface dataset:
Export a Confluence page to PDF from shell
Asked by Eugene Tan:

Hello, I am trying to export a confluence page to a pdf in some build automation (Jenkins).

I have managed to get the pageId of the page I want to export.

When I tried to use the URL in the following fashion

wget {url copied from the tools -\> export pdf } -o blah.pdf

I get the following error

<br />

*$ wget <https://confluence.blah.com:8443/spaces/flyingpdf/pdfpageexport.action?pageId=13959783>*

*--2014-01-02 15:20:09-- <https://confluence.blah.com:8443/spaces/flyingpdf/pdfpageexport.action?pageId=13959783>*

*Resolving [confluence.blah.com](http://confluence.blah.com)([confluence.blah.com](http://confluence.blah.com))... 105.144.22.63*

*Connecting to [confluence.sisa.samsung.com](http://confluence.sisa.samsung.com)(confluence.blah.com)\|105.144.22.63\|:8443... connected.*

*ERROR: The certificate of 'confluence.blah.com' is not trusted.*

*ERROR: The certificate of 'confluence.blah.com' hasn't got a known issuer.*  
Any suggestions on how I can go about exporting a pageId from confluence to PDF?.  
THank you,  
/et


Answers:
author: Renjith Pillai
body: Add --no-check-certificate to wget command line and it should work mostly.


author: NCSU Libraries Information Technology
body: For you guys asking how to handle authentication you should be able to pass --user and --password to wget.


author: Sam Hall
body: Did you ever get this to work along with authentication?


author: Sam Hall
body: Has anyone ever got this working? How did you handle authentication?


author: MJ
body: If you want to perform actions on your Confluence instance through cli, I would advice you to have a look at the [Atlassian Command Line Interface](https://bobswift.atlassian.net/wiki/display/ACLI/Atlassian+Command+Line+Interface). Several examples of command you can use, among which pdf page exports, can be found [here](https://bobswift.atlassian.net/wiki/display/CSOAP/Examples)


Tags: cli

export

pdf
Error displaying Jira gadgets in Confluence after migrating to 5.4
Asked by Adolfo Casari:

After migrating to Confluence 5.4, some Jira gadgets stopped working. I am getting errors like:

*The selected filter filter-11157 has an error: A value with ID '10000' does not exist for the field 'project'..* or*The selected filter filter-10210 has an error: Field 'issuetype' does not exist or this field cannot be viewed by anonymous users..*

depending on the filter. This was working OK prior to upgrading.

Anyone has seen this?

Thanks in advance.


Answers:
author: Adolfo Casari
body: I found that is actually a bug, fixed in <https://jira.atlassian.com/browse/CONF-31993>


Tags: moderators
List users admin page default number of users displayed?
Asked by Marc Thompson:

Concerning "User management" in Confluence, on the List Users results page how can I change the default max. users displayed to be higher than 10? I would rather it default to 50 per page rather than 10...

An alternative I guess would be to add ?resultsPerPage=50 to the "Show all users" link but how can I do that?

(/admin/users/showallusers.action?reset=true\&resultsPerPage=50)


Answers:
author: Marc Thompson
body: Works GREAT!

\<script type="text/javascript"\>  
AJS.toInit(function() {  
AJS.$(".buttons \> a\[href\^='showallusers'\]").attr('href', 'showallusers.action?reset=true\&resultsPerPage=50');  
});  
\</script\>


author: Marc Thompson
body: Thanks for the tip! I was able to take your Custom HTML example and make it work for our needs. Just tweeked the selector a bit. Here's what I came up with that finally worked on the "Users" admin page:

\<script type="text/javascript"\>  
AJS.toInit(function() {  
AJS.$(".buttons \> a\[href\^='showallusers'\]").attr('href', 'showallusers.action?reset=true\&resultsPerPage=50');  
});  
\</script\>


author: Aseem Parikh
body: One way to accomplish this would be to edit the link in the admin section in Confluence core and recompile Confluence.

A significantly easier approach would be to add a bit of JS to your Custom HTML:

```
&lt;script type="text/javascript"&gt;AJS.toInit(function() {    AJS.$(".aui-nav &gt; li &gt; [href='/confluence/admin/users/showallusers.action']").attr("href", "/confluence/admin/users/showallusers.action?resultsPerPage=50");});&lt;/script&gt;
```

Just be sure to update the context path to match your own, if you're not using /confluence.
Is there a way to limit email notifications for watchers?
Asked by Kassidy Iwashita:

Is there a way to only notify watchers every couple hours? For example: If someone is editing a page and does 10 edits, I don't want watchers to get 10 emails because they saved it 10 different times. Or, is there a way to make it so that there is one notification per 24 hours without having to uncheck the notifiy watcher box?


Answers:
author: jing_hwa_cheok
body: Hi Kassidy,

You can uncheck the **Notify watcher** checkbox below the page edit as you can see in the screenshot below:

![](../../upfiles/sample_2.png)

That will prevent watchers from receving notfication when you edit the page.

comments: author: Kassidy Iwashita
body: Yes, thank you!


author: jing_hwa_cheok
body: Hi Kassidy,

<br />

I can also use javascript to uncheck your notification box automatically. Put the code below in your**Confluence Admin \>\> Custom HTML \>\> HEAD**

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

Hope this helps!

Regards,  
Jing Hwa


author: Sohina
body: [@jing_hwa_cheok](/t5/user/viewprofilepage/user-id/781637) Can you please share Screenshot again? I am not able to view.

Thank You.

Sohina


Tags: email

notification

watcher
Can some tell me how to upgrade confluence 3.3.3 to 5.3
Asked by satya prasad:

Can you provide me the steps to upgrade confluence 3.3.3 to 5.3.


Answers:
author: AnnWorley
body: Hi Satya,

Atlassian recommends upgrading to 5.03 from 3.5 and then to a higher version.

[](https://confluence.atlassian.com/display/DOC/Upgrading+from+Confluence+3.5+to+5.1+-+Simplified+Guide)<https://confluence.atlassian.com/display/DOC/Upgrading+from+Confluence+3.5+to+5.1+-+Simplified+Guide>

Cheers,

Ann


author: Nic Brough -Adaptavist-
body: Upgrade it to 3.5, then 5.3.

See [](https://confluence.atlassian.com/display/DOC/Upgrading+Confluence)<https://confluence.atlassian.com/display/DOC/Upgrading+Confluence>for the details.
Is there a way to make it so that there is one notification per 24 hours?
Asked by Kassidy Iwashita:

Is there a way to make it so that there is one email notification per 24 hours without having to uncheck the notifiy watcher box?


Answers:
author: Adrien Ragot 2
body: Hi Kassidy,Sorry, there is no way to group emails into a daily summary. Confluence is designed for instant interaction. This allows for very dynamic decision making when you put important documents in Confluence.Cheers,Adrien

comments: author: Kassidy Iwashita
body: Hi Adrien,

Thank you for informing me!


author: Richard Boult
body: Is there any related feature request for this.

I want to watch pages, and get notifications inside Confulence, but I don't want the emails (who uses email anyway, old technology!)


author: Kay Brown
body: Hi Davin,

I got almost 2,000 of them on Thursday.

Kay


author: Davin Studer
body: Am I the only one getting notified about Kassidy Iwashita having accepted Adrien Ragot's answer over and over and over .... like hundreds of times.

comments: author: Adrien Ragot 2
body: Yeah but my answer was very good! I've received the 2000 emails too, and this question has 147 followers. Submitted [ANSWERS-1281](https://jira.atlassian.com/browse/ANSWERS-1281) (because 2000 good answers x 15 karma per answer = ... ).


author: Jeremy Largman
body: We had this happen once before - see [ANSWERS-252](https://jira.atlassian.com/browse/ANSWERS-252). I've unchecked and rechecked the answer, which I hope fixes it as a workaround. Can anyone confirm that? Also, you can try unsubscribing from the question - that worked before.


author: Davin Studer
body: Unsubscribing didn't work for me. Hopefully your unchecking and re-checking will fix it.


Tags: email

notification

watcher
Is there a "back to the top" button plugin?
Asked by Kassidy Iwashita:

Is there a plugin or macro that creates a "back to the top" button: a button that a viewer would click to return to the top of the page? I've tried CSS but none of them seem to work for the wiki.


Answers:
author: E. Alex Haywood
body: You can create an **anchor** at the top of the page, and then create **links** that will go to the anchor.

Visit <https://confluence.atlassian.com/display/DOC/Working+with+Anchors> for more info.

comments: author: Kim Tillett
body: Unfortunately, this link is no longer valid. Try this instead: [https://community.atlassian.com/t5/Confluence-questions/How-To-Create-a-Scroll-Back-To-Top-Button/qaq-p/874039](https://community.atlassian.com/t5/Confluence-questions/How-To-Create-a-Scroll-Back-To-Top-Button/qaq-p/874039?)


author: Levs Blinnikovs
body: [@Kim Tillett](/t5/user/viewprofilepage/user-id/2265784) link doesn't work.


author: Kim Tillett
body: Oops! Looks like I didn't grab the entire URL the first time. Thanks for letting me know [@Levs Blinnikovs](/t5/user/viewprofilepage/user-id/2278836). This one should work!

<https://community.atlassian.com/t5/Confluence-questions/How-To-Create-a-Scroll-Back-To-Top-Button/qaq-p/874039#U940264>


author: Ryan Goodwin
body: AFAIK there is no add-on available to get this functionality. Have you tried using this jquery:

<http://www.zachleat.com/web/trash-that-back-to-top-link/>

comments: author: Ali
body: Is there a way to wrap that jQuery in a custom macro? (I haven't written a macro before.)


Tags: app

button

macro
Unable to find some users in People search or to mention them using @
Asked by Julian Kippels:

Hi,

we have a strange bug with confluence. Most users can be mentioned with @ and are findable using the people search. But some aren't Those users have the additional handicap of not beeing able to mention others, at least not all users. I have already tried to rebuild the index, but it did not help. We are running Confluence 5.4.1.

<br />

Thanks in advance,

Julian


Answers:
author: Phillip Ponzer [Cprime]
body: Were you ever able to find a solution? We're using Confluence 5.4 and have the same problem, except I can @mention someone but I have a user that cannot.


author: Julian Kippels
body: @Ryan GoodwinI want to comment your answer, but the site won't let me...

Thanks for your answer. Rebuilding from scratch didn't solve the problem. I don't think that there is a permission issue, because as far as I can see every file in confluence-home ist owned by the confluence user and group. These are the installed add-ons:

* Atlassian Universal Plugin Manager Plugin
* Dynamic Task List 2 Plugin
* Gliffy Confluence Plugin
* IM Presence NG Plugin
* RB Storage - Confluence
* RB Storage - Core
* RB Storage - Servlet

User Alice can not be found using people search, not even if Alice searches for Alice. But she can access her own profile. Bob can not find Alice, nor mention her. However, he can access her profile via [http://confluence-url/display/\~alice](http://confluence-url/display/%7Ealice)


author: Ryan Goodwin
body: Hi Julian,

I would recommend trying a rebuild from scratch if you haven't already:

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

The people directory is built off the index. Are the affected users able to 'see' the desired users in the people directory? If not, I'm guessing there is a permissions issue or possibly a 3rd party add-on interference.
Alternative to the 'Recommended In Confluence' email?
Asked by Jim:

My users like the idea of the Recommended in Confluence email but want to know how to personalise it for themselves or restrict it to certain spaces, etc. I know that neither of those settings are available - the only things I can control (as an admin) are On/Off and Daily/Weekly.

So, are there any alternatives out there - plugins perhaps - that would allow my users to dictate their own settings for a Recommended-style email? Set the frequency, a drop-down list of spaces to include/exclude, that kind of thing...


Answers:
author: Jim
body: Hi Ann,

Thanks, but no, that's not really what I need. My users want to be able to subscribe to some, not all, of pages and blogposts. Basically they want to tailor the email to their individual interests. At the moment, all they can do is all or nothing. For example, an engineer may want to see the notifications for the Eng and IT spaces but not the HR space - this is not currently possible with the Recommended in Confluence email. I am asking if anyone knows an alternative, more personalised, version of this functionality.


author: AnnWorley
body: Confluence users can choose their personal settings, which will override the defaults as shown on this page:

[](https://confluence.atlassian.com/display/DOC/Subscribing+to+Email+Notifications+of+Updates+to+Confluence+Content)<https://confluence.atlassian.com/display/DOC/Subscribing+to+Email+Notifications+of+Updates+to+Confluence+Content>

Will this suit your purpose?


Tags: app

email

recommendation
Option to make AND search logic the default
Asked by David J. Lewis:

Is there an option to make AND logic the default for search queries. This would make...

fun games

... search for...

fun AND games

...instead of the current...

fun OR games

If there is no such option (which I suspect) I would like very strenuously to propose one. The current default is arguably a bug -- AND logic is by a large margin the prevalent default method (as in google and every other search engine I know), and also by far the most intuitive.

In fact, AND logic is so much better a choice, that it ought to be the default in Confluence and all Atlassian products. But I recognize that many users have gotten accustomed to default OR logic and it's not fair to them to change the built-in default. But at least provide an option.


Answers:
author: David J. Lewis
body: OK, I'll put in an improvement request. There are several changes and improvements I would like to suggest in the Confluence search function, but this is by far the most urgent.

comments: author: Andreas
body: Great, I'll give you a "me too" on that request!


author: Nic Brough -Adaptavist-
body: I don't think it can be fixed in Confluence without coding (let alone OnDemand where you can't do anything with the code)

I think it needs to be an improvement logged with Atlassian.


author: David J. Lewis
body: Great! Can we fix it for Confluence OnDemand? OR default logic is just as confusing there as anywhere.


author: Nic Brough -Adaptavist-
body: "And" is the default in Jira already, and always has been, as "or" in there would be confusing at best.


Tags: cloud

confluence-cloud

search
Template Restriction
Asked by Moran Alon:

Hello,

In Confluence, Is there a way to restrict a template to be a child page for another page in my space?


Answers:
author: StephanieC
body: Hi Moran,

you can do this by using a link (like a create button on your wiki page). It works like this:

https://\<your wiki\>/pages/createpage-entervariables.action?spaceKey=\<space key\>\&templateId=\<ID of your template\>\&fromPageId=\<ID of the page to be parent\>

Have fun!

Stephanie Hoffmann


author: Davin Studer
body: Templates don't have restrictions, but a work around could be to create a page and give it restrictions. Then have your users just copy that page to create a new page. This is what I have done here for one template we have.


author: jing_hwa_cheok
body: Hi Moran,

Unfortunately, it is not possible to achieve this in Confluence. As you can see here [](https://jira.atlassian.com/browse/CONF-13794,)<https://jira.atlassian.com/browse/CONF-13794>, we have previously receive a feature request regarding this. The feature request did not receive many vote therefore the value score of the ticket is low. It has been recently close due to inactivity.

<br />

Hope this clear your doubt.


author: jing_hwa_cheok
body: Hi Moran,

<br />

Could it be that those child pages are now orphaned? Try to look for them through **Browser \>\> Space Operation \>\> Orphaned Page**.

Regards,  
Jing Hwa

comments: author: Moran Alon
body: Hi Jang,

Thanks for the quick respond.

I think you didn't get me, What I want is to be able to create a page from a template, and it will be automatically linked to a parent page that I will define in advance.

What kind of restrictions can an adminstrator pull on templates, if it's even possible?
How to enable links for non-logged in Confluence users?
Asked by David Harms:

I use Confluence for a subscription-based web site, and at present if users aren't logged in any links to subscriber content are disabled. This is sometimes confusing for my non-logged in users. I would like to enable the links at all times so the users are prompted to log in when necessary. Is this possible?

Thanks,

Dave


Answers:
author: David Harms
body: While not the idea solution, the following is the best option I've come up with so far. I added the following Javascript in Custom HTML at the end of the page. It looks for URLs that end in # (Confluence's convention for hiding inaccessible URLs) and replaces them with one of two publicly-accessible pages on my site, depending on whether or not the user is logged in.

```
&lt;script type="text/javascript"&gt;AJS.toInit(function ($) {        for (var ls = document.links, numLinks = ls.length, i=0; i&lt;numLinks; i++){            if (!!ls){	        var l = ls[i].href;                if (l.indexOf("#") + 1 == l.length){                    if (AJS.params.remoteUser == ''){                        ls[i].href= "insert login-required URL here";                    } else {                        ls[i].href= "insert not-covered-by-subscription URL here";                    }                }            }        }});&lt;/script&gt;
```


author: AmrtaA
body: Hi Dave,

I believe you can achieve that by enabling a space to be accessed by anonymous users.

In order to set a space to be accessible by anonymous user, you need to login as confluence admin, then click on **Space Tool \> Permission.** In Anonymous access section you click on **Edit Permissions** and then you can select the permission as required.

Or if you want your whole site to be accessible by anonymous users you can set your Confluence to do so too.

You might find the following document usefull:

[](https://confluence.atlassian.com/display/DOC/Setting+Up+Public+Acces)<https://confluence.atlassian.com/display/DOC/Setting+Up+Public+Acces>

Hope it helps.

comments: author: David Harms
body: Ah, but that's just the problem. I don't want subscriber-only spaces to be accessible by anonymous users, but I want anonymous users to see real links so that when they click on those links they're prompted to log in.


Tags: confluence-administration
How do I get the full name of a user from an email address in Confluence?
Asked by Kathryn Moye:

I have a table-data of user full names and their email addresses. I use the column of email addresses to generate a list-data in a scaffold form. Is there a way to use the email address I have and retrieve the user's full name from Confluence?

Thanks


Answers:
author: jing_hwa_cheok
body: Hi Kathryn Moye,

<br />

Happy New Year!

<br />

The answer is yes. All user is stored in Confluence CWD_USER table. Here the query to list their display name and email. Replace the \<EMAIL\> in the query with your user email.

```
select DISPLAY_NAME from CWD_USER where EMAIL_ADDRESS=&lt;EMAIL&gt;;
```

Hope this help!

Regards,  
Jing Hwa

comments: author: Kathryn Moye
body: Happy New Year to you!

Our admins won't give us access to the SQL macro. Is there any other way?

Thanks!


author: Kathryn Moye
body: Hello,

Is there a way to do this without the SQL macro?

Thanks
page tree broken on space import
Asked by Robert Lauriston:

I'm creating documentation in installed Confluence 5.3.1 because I need some add-ons that are not supported by OnDemand. I'm using the Documentation theme.

I exported a space and imported it to Confluence OnDemand. It's using the Documentation theme, but the page tree has been lost, so it's impossible to reorganize pages. Only the first page is on the Page Tree page, all the others are missing.


Answers:
author: Adrien Ragot 2
body: Have you reindexed your OnDemand instance after importing?

comments: author: Robert Lauriston
body: According to the messages Confluence displays during space import, the instance is reindexed automatically.


author: Adrien Ragot 2
body: I'll give it another try: Did you set a home page for your space? Go to the Space Tools -\> Overview. What's in the field "Space Home"?


author: jing_hwa_cheok
body: Hi Robert,

<br />

Could it be that those child pages are now orphaned? Try to look for them through **Browser \>\> Space Operation \>\> Orphaned Page**.

Regards,  
Jing Hwa

comments: author: Robert Lauriston
body: There are no orphaned pages.

The first page shows up in the tree. The others are missing. They all show up in the alphabetical list.


author: jing_hwa_cheok
body: Sorry if I misunderstood you but could you explain to me what you meant by
> all show up in the alphabetical list

Isn't the page suppose to be missing from the tree?


author: Robert Lauriston
body: The Space Operations \> Pages tab has three views, Recently Updated, Tree, and Alphabetical. All the pages appear in the Alphabetical view. All but one have disappeared from the Tree.


Tags: cloud

confluence-cloud

import

page-tree

space
Broken Macros after Confluence upgrade v3.5.13 -> v5.4
Asked by JT:

We just recently upgraded from Confluence v3.5.13 though v4.x and to v5.4 in our development environment. None of the macros appear to be working in v5.4. If I try to edit a page with a macro, I get a Page Not Found error.

For example,

In our production environment, we have the following macro's on our space home pages:

{section}{column:width=60%}  
{table:cellspacing=15}  
{tr}{td}{include:Overview} {td}{tr}  
{table}  
{column}{section}  
{recently-updated}

The page renders and you can see all of the information included from the Overview page

In the development environment the macro is displayed instead of the data:

{section}{column:width=60%} {table:cellspacing=15} {tr}{td}{include:Overview} {td}{tr} {table} {column}{section} {recently-updated}

If I attempt to edit the page, a Page Not Found error is returned.


Answers:
author: jing_hwa_cheok
body: Hi Jeanne,  

The first issue seem to be related to imcompatible or outdated plugin. It is possible that the plugin in the developement enviroment is outdated therefore the macro could not be rendered properly in the page. You will need to update all your plugin in the developement sever then go to this URL in your browser:***\<Confluence Address\>/admin/force-upgrade.action*** and select wikiToXhtmlMigrationUpgradeTask in the Upgrade task to perform a force migration.  

For the second issue "If I attempt to edit the page, a Page Not Found error is returned", I suspect this is due to some customisation or script in your ***Confluence Admin \>\> Custom HTML*** which direct you to a wrong URL. Try to remove all the customisation in your ***Confluence Admin \>\> Custom HTML*** and see if the issue persist.   

Regards,  
Jing Hwa


Tags: confluence-administration

macro

upgrade