youngmon/atlassian-qna huggingface dataset:
Confluence PDF Export - setting macro
Asked by Duje:

Hi,

is there a way to set a macro value on PDF layout title page, header or footer?

If I have a simple macro showing current date for example, can it be included in one place or it has to be included on the pages being exported?

Thanks!


Answers:
author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Duje](/t5/user/viewprofilepage/user-id/1795450),

Including a macro in the PDF layout - title page, header or footer?! I am afraid there isn't a way to do it. Your example 'current date' or any dynamic content cannot be added to the PDF stylesheet, since CSS cannot pull such variables. However, you might want to try and see if one of these [PDF exporter plugins on the Marketplace](https://marketplace.atlassian.com/search?product=confluence&query=pdf&_ga=2.56851241.2039043093.1544521430-748161253.1533556773) or [Content Exporter (Word, PDF, HTML)](https://marketplace.atlassian.com/plugins/com.metainf.confluence.plugin.pagetreeexporter.pagetree-word-exporter-plugin/server/overview?_ga=2.56851241.2039043093.1544521430-748161253.1533556773) can be of any help.

But, you can use current date or any other macro in your Confluence pages and have it exported into a PDF output. I am sure you must be knowing this already!

You may also want to refer to [this](https://confluence.atlassian.com/conf69/customize-exports-to-pdf-950284429.html) article to understand how to customize your PDF exports.

Hope this helps!

Thanks

Sireesha

comments: author: Duje
body: Hi Sireesha,

yes I am aware that it can be added to pages, but only functionality I need is to add macro to the export so that every export has the same format... Otherwise we would have many current-dates if we would put it on every page, because not always are users exporting the whole space.

Nevertheless, thanks for your response!

Regards,

Duje Jurica


Tags: confluence-server

export

macro

server
Will Confluence cluster will accept hostnames instead of pod ip address
Asked by Bhanu Teja M:

I am installing confluence cluster on kubernetes. As installation is completed successfully and i have checked in general section --\> clustering i can see only one pod ip. if i delete pod it will get new ip and confluence cluster will throw out old ip and will not add new ip.  
So is there any way that confluence will accept hostnames instead of ip address.


Answers:
author: Shankar Asam {Appfire}
body: Hi Bhanu,

Are you talking about "Cluster Address" section on Clustering page? These IP addresses are defined in a file called "`<confluence-home>/confluence.cfg.xml`. They should look like this:

    <property name="confluence.cluster.address">224.222.163.162</property><property name="confluence.cluster.name">atlassian_cluster</property>

You can modify the file to add new cluster node IP addresses here. If you want to change the cluster node name to a human-readable name, you can do so by adding below to setenv.sh file;

CATALINA_OPTS="-Dconfluence.cluster.node.name=node1 ${CATALINA_OPTS}"

You can also find other system related properties for confluence [here](https://confluence.atlassian.com/conf510/configuring-system-properties-829078212.html?_ga=2.150281142.1810334672.1544595427-1148215165.1535622243).

Hope it helps.

-Shankar

comments: author: Sid
body: [@Bhanu Teja M](/t5/user/viewprofilepage/user-id/2424614), as of now hostnames cannot be added. Only IP can be added


Tags: confluence-server

server
disable confluence users via sql
Asked by maarten breesnee:

Hi,

I am in a team who took over confluence sys management. First of all we want to clean up all the users who haven't logged in for 6 months.

However its a lot of work to do this. Is there a safe query to do this?


Answers:
author: Amith Mathur _Appfire_
body: Hi [@maarten breesnee](/t5/user/viewprofilepage/user-id/674302),

You can retrieve the list of users who have not logged in since a specific date or by last login date. Please run the query, according to your confluence version, from [this page](https://confluence.atlassian.com/confkb/how-to-identify-inactive-users-in-confluence-214335880.html).

Once you do so, you can execute the below query to disable the users. However, it is advisable to do it through API or the UI. If you want to do it from the database, test it thoroughly in staging environment before doing so in the production.

    UPDATE CWD_USER set ACTIVE = "F" where user_name="userid";

Thanks,   
Amith Mathur


author: Alexis Robert
body: Hi [@maarten breesnee](/t5/user/viewprofilepage/user-id/674302),

you can't bulk remove users like this directly in Confluence, but there is [an addon](https://marketplace.atlassian.com/apps/1211109/user-deactivator-for-jira?hosting=server&tab=overview) that can do that if you want to give it a try.

Let me know if you have any questions,

--Alexis
Is it possible to configure the default selections in the Attachments Macro?
Asked by Rene Schade:

Currently "Show Previews" is selected by default when you insert the macro on a page:

![2018-12-11_11-46-29.png](/t5/image/serverpage/image-id/39971i5F823F2408EC3E7B/image-dimensions/471x654?v=v2 "2018-12-11_11-46-29.png")

I would like "Show previews" to be deselected by default.

<br />

Is that even possible?


Answers:
author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Rene Schade](/t5/user/viewprofilepage/user-id/874599),

I am afraid the answer is NO. You cannot change the default settings of any macro.

Macros come with these default settings. The only option you have is to unselect this check-box the first time you use the macro and you will not see it every next time. :)

Thanks

Sireesha


Tags: attachment

confluence-server

server
Login dates macro for JIRA login date but on Confluence page
Asked by Alex Fox:

Using [this amazing thread](https://community.atlassian.com/t5/Confluence-questions/Macro-that-produces-a-list-of-users-last-login-date/qaq-p/426611#M72347) I can now generate a list of user login dates on a Confluence page. My problem is that our user management is all via JIRA (we don't use Crowd) so what I actually need is for the macro to look at the JIRA login date. Can anyone advise me on how to amend the macro to retrieve this information rather than looking at Confluence log in dates?

Thank you!


Answers:
author: Stephen Sifers
body: Hello Alex,

The thread you linked is indeed an excellent question and example of how to create a user macro to display user logins along with other stats. To access Jira from Confluence you will have to communicate over the following: com.atlassian.jira.bc.security.login.LoginInfo

As I am not the author of the original script posted in the other thread, I will have to spend some time to figure out how to get that added. Here is the example script we are working with;

```
## @noparams

#set($containerManagerClass = $content.class.forName('com.atlassian.spring.container.ContainerManager'))
#set($getInstanceMethod = $containerManagerClass.getDeclaredMethod('getInstance',null))
#set($containerManager = $getInstanceMethod.invoke(null,null))
#set($containerContext = $containerManager.containerContext)

#set($loginManager = $containerContext.getComponent('loginManager'))
#set($users = $userAccessor.getUsers())

<table class="confluenceTable">
 <tr>
 <th class="confluenceTh">User</th>
 <th class="confluenceTh">Last Successful Login Date</th>
 <th class="confluenceTh">Active</th>
 </tr>
 #foreach($user in $users)
 <tr>
 <td class="confluenceTd">#usernameLink($user.name)</td>
 <td class="confluenceTd">$action.dateFormatter.formatDateTime($loginManager.getLoginInfo($user).lastSuccessfulLoginDate)</td>
 <td class="confluenceTd" style="text-align:center;">
 #if($userAccessor.isDeactivated($user))
 False
 #else
 True
 #end
 </td>

 </tr>
 #end
</table>
```

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/40991iA4538B443DF48BBA/image-size/large?v=v2&px=999 "image.png")

We can attempt to find a way to access this information, but we do not have an estimate time to have something deliverable. Meaning we will do best effort.

Regards,  
Stephen Sifers

comments: author: Alex Fox
body: Hi Stephen, thank you very much for the reply.

You seem to have got the same results as I did in my testing, does this mean that this information is not exposed in a way that Confluence can access it?


Tags: atl-adm

confluence-server

jira

jira-server

server
how to recover missing pages when even the server backups are missing?
Asked by Nicholas Sim:

So this is gonna be a little long and hopefully not too confusing.   

1) tried to login into confluence one day after 2 weeks of not using it,  
2) realized my password wasn't working.   
3) logged in through the admin account, realized the latest update was Aug 2016 and all pages were reverted to that date.

4) Our server backup were also dated to that last known date.


Answers:
author: Fadoua
body: [@Nicholas Sim](/t5/user/viewprofilepage/user-id/553276)

Did you check the logs? What error(s) are you seeing?

Best,

comments: author: Nicholas Sim
body: Hi Fadoua,

would the log analyzer be the appropriate place to look at this ?   

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/40293iCACF2EA8AA87027F/image-size/large?v=v2&px=999 "Capture.PNG")


author: Fadoua
body: Hi [@Nicholas Sim](/t5/user/viewprofilepage/user-id/553276)

Not really. You will need to look into the Home Directory for a folder called: logs.

It should be something like atlassian-confluence.log

Best,


Tags: confluence-server

server
Resize status label
Asked by Maria Martinho:

Hi!

How can I resize the status label in a table column in order to be visible all the text label?

Thank you.

Maria


Answers:
author: Diego
body: Hello there Maria!  
Currently, the Status Macro is **not resizable** . To workaround this you could set the table size to **Responsive** and the table should resize automatically to fit the macro.   
If you set the table with a **Fixed Width** , you will need to **manually resize it** so the entirety of the macro shows.   

You can check further information about tables and the Status macro for Confluence Server here:  
**- [Confluence Server - Tables](https://confluence.atlassian.com/doc/tables-136463.html)**   
**- [Confluence Server - Status Macro](https://confluence.atlassian.com/doc/status-macro-223222355.html)**   

For Confluence Cloud you can check here:  
**- [Confluence Cloud - Add formatting to your page](https://confluence.atlassian.com/confcloud/add-formatting-to-your-page-724764836.html)**   
**- [Confluence Cloud - Status Macro](https://confluence.atlassian.com/confcloud/status-macro-724765291.html)**   

Let us know your thoughts!

comments: author: Haran Kumar
body: Thanks Rodrigues, its working


author: ytoeda
body: [@Diego](/t5/user/viewprofilepage/user-id/4008020) 's suggestion to use responsive table works! Thank you.
Automatic page creation(s) from master page to multiple pages
Asked by Mattias Viberg:

Hi,

I would like to know if someone has knowledge of creating multiple pages from a master page with certain information.

Example:

Master page contains "all" information i need (text)

I would like to be able to select what information i want, for instance;

XYZ

ZXY

This information should then be published to two pages:

Page 1; XYZ and ZXY information

Page 2: ZXY information and some text from XYZ.

Doing this i can automatically create specific pages containing only relevant information.


Answers:
author: Victor Mutambuki
body: Mattias,

You can do so by creating a template that can be used to create pages. See link below  
<https://confluence.atlassian.com/doc/create-a-page-from-a-template-296093793.html>

victor


Tags: automation

page

script

scriptrunner
New AD user recognized as deactivated by confluence
Asked by GFI IT:

We recently added several new users to our AD and once Confluence synced, two of them were added to Confluence, but the third was listed as deactivated. The users are all in the same groups and have the exact same settings. This particular user has been active and currently works in our network. He has no other issues, other than Confluence will not recognize him. I've restarted the sync to our DC several times and still he is listed as deactivated even though he never has been. Does anyone have any ideas on how to set him as active?


Answers:
author: Thomas Deiler
body: Dear [@GFI IT](/t5/user/viewprofilepage/user-id/311969),

have you tried to make him/her active within Confluence? User Management-\>show all users-\>select user-\> enable?

So long

Thomas

comments: author: GFI IT
body: Hi [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715),

there is no button to activate / deactivate the user.

I have managed to reactivate the user by updating the "active" field in the "cwd_user" table in the Confluence DB.

    UPDATE cwd_user
    SET active = replace
        (active,
        'F',
        'T')
    WHERE
        user_name LIKE 'InactiveUser';


author: Thomas Deiler
body: Dear [@GFI IT](/t5/user/viewprofilepage/user-id/311969),

that was brave! Accessing DB directly is risky. At all, did you shut down Confluence, first?

Here a screen shot of what I mean:

![enable.png](https://community.atlassian.com/t5/image/serverpage/image-id/40133i5F4047AB23F02CD8/image-size/large?v=v2&px=999 "enable.png")

So long

Thomas


author: GFI IT
body: Hi [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715),

please see my attached screenshot. As mentioned before, there is NO option to enable or disable a user in our Confluence instance. Users are synced with our AD, NOT the Confluence Internal Directory.

![grafik.png](https://community.atlassian.com/t5/image/serverpage/image-id/40209i73C978C23AB9FE83/image-size/large?v=v2&px=999 "grafik.png")![grafik.png](https://community.atlassian.com/t5/image/serverpage/image-id/40210iB76676F78881C07D/image-size/large?v=v2&px=999 "grafik.png")


Tags: confluence-server

server
Confluence - macro adding or editing does not work
Asked by Stefan Reijgwart:

I am creating a template in my Cloud Confluence environment.

Adding a macro does not work. When I select a macro the pop-up screen does start, you can add the details and configure but *preview* as well as the button*insert* gives an **blank (empty)** **result.**

When I copy the macro from another template the *edit* button does not respond. The **edit window won't open**.

Suggestions what I could do to solve this issue?


Answers:
author: Diego
body: Hello there Stefan!  
As I understand, a specific macro is not being **correctly inserted** into your instance. Is that correct?  

Could you clarify a few points for us:
> 1- Are you **creating a page** when this happens?  
> 2- Are you **creating a page using a template** when this happens?   
> 3- Are you trying to **create a new custom template** for your instance?  
> 4- Is this present in **any browser?**   
> 5- is this present in **incognito / private mode?**   
> 6- Were you able to **perform this previously?**   
> 7- Is this affecting **other users as well?**   
> 8- **What macro** are you trying to insert?  
> 9- Are you able to insert **other macros?**

Also, would it be possible for you to try and insert **other macro** and check if that works?

Looking forward to your reply!


Tags: cloud

confluence-cloud

macro
How to find the location of all pages using the Include Page macro to a source page?
Asked by Richard Wiltshire:

I was going to delete a source page and was alerted that 6 other pages were using it (via Include Page macro) -I only knew of one dependent page, but could not work out where the other 5 dependent pages were located - how do I get this information?

Thanks


Answers:
author: Richard Wiltshire
body: Hi [@Richard Wiltshire](/t5/user/viewprofilepage/user-id/2420534),

Any page which you include as part of the Include Page macro will show up under the outgoing link inside the page information.

<br />

**Outgoing links**: A summary of the links contained on this page, pointing to other pages on the Confluence site or to external websites.

**To see the information about the page:**

1. View the page.
2. Choose .... \> Page Information

Please see the page [View Page Information](https://confluence.atlassian.com/doc/view-page-information-139408.html)for reference.

Regards,  
Vijay Ramamurthy

comments: author: Richard Wiltshire
body: Hi @\[deleted\] - appreciate your quick reply - I now see the problem - the ... \> Page Information Option is not available in our drop down list.

The [View Page Information](https://confluence.atlassian.com/doc/view-page-information-139408.html?_ga=2.243107652.736130663.1544488740-1055745190.1544488740) simply isn't in the list.. (see below) maybe its a setting that needs to be activated?

![Confluence ... List.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/40030iB504FB6C3879E044/image-size/large?v=v2&px=999 "Confluence ... List.JPG")


author: Richard Wiltshire
body: @\[deleted\] thanks again as it helped me find a workaround...

1. ... \> **Page History
   ![Screen Shot 12-12-18 at 09.39 AM 001.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/40031iFAF12D47FF459313/image-size/large?v=v2&px=999 "Screen Shot 12-12-18 at 09.39 AM 001.JPG")**
2. In Page History -- click on**Return to Page Information
   ![Screen Shot 12-12-18 at 09.40 AM.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/40032iAD7B36BC970231C6/image-dimensions/523x210?v=v2 "Screen Shot 12-12-18 at 09.40 AM.JPG")**
3. **Page Information** now appears!  
   Incoming Outgoing links can be seen  
   ![Screen Shot 12-12-18 at 09.48 AM.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/40033iF6F95D09CEDFDE22/image-dimensions/391x282?v=v2 "Screen Shot 12-12-18 at 09.48 AM.JPG")


author: Richard Wiltshire
body: @\[deleted\] - final note - our Admin guy sorted the Page Information in the ... dropdown - it now appears.

Cheers
How to Auto populate name
Asked by Rajeev Das:

Hi,

I have created one page and I want to auto populate name in confluence page. ex, if I want to search name it should search name starting from that letter. is it possible?

Thanks for your help.


Answers:
author: Patrick Cartier [Candylio]
body: Hi [@Rajeev Das](/t5/user/viewprofilepage/user-id/2311286),

I'm not sure if I understand correctly, but if you are just looking for confluence to populate a page title on creation then you could consider creating a blueprint for that page, then training users to use that blueprint when creating similar pages.

<https://developer.atlassian.com/server/confluence/confluence-blueprints/>

comments: author: Rajeev Das
body: Thanks Patrick for your reply,

let say I have created one form with name filed, I want to search in that name let say Patrick, instead of writing full name if I give pat it should give me all the name which starts with Patrick.

thanks


author: Patrick Cartier [Candylio]
body: Hi again,

If it's a form, what plugin are you using for it?

Out of the box Confluence, if you write the (@) symbol before you start typing the person's name it should search for all the names that start with the same letters.

You can even test this out on a message here. There are lots of options for different names.

Hope this helps.
Validating space import
Asked by Geoff Herbig:

I am working towards moving some content from one Confluence instance to another.

Having trawled the knowledgebase and community for a number of days I have landed on utilising the XML export option and then importing into the destination instance.

What I have not been able to identify is how I can validate the export and import to ensure that everything is carried across?


Answers:
author: Yoga Reddy {Appfire}
body: Hi [@Geoff Herbig](/t5/user/viewprofilepage/user-id/2420495)  

<br />

Before you start the process, you need to take a note of the Database Statistics from the System Information Page. Once you import, you can verify the Database Statistics to know if the pages and space count has increased.

<br />

Take a snapshot of the following Confluence Statistics :

Users:  
Groups:  
Total Spaces:  
Site Spaces :  
Personal Spaces :  
Content (All Versions) :  
Content :  
Search Index Size :

<br />

Alternatively, you can run the [database query](https://confluence.atlassian.com/confkb/how-to-find-the-number-of-pages-blogposts-and-attachments-in-a-space-720636388.html) before and after the export/import  

Thanks

Yoga

comments: author: Geoff Herbig
body: Thanks [@Yoga Reddy {Appfire}](/t5/user/viewprofilepage/user-id/676173), although that seems focused at validating a full database rather than just a space.

Are there ways to get those sorts of stats at a space level rather than a database level?

The 'Space Details' screen does not provide much detail in this way.

cheers

Geoff


Tags: confluence-server

server
Breadcrumb navigation not reflecting page relationship (SHOULD BE SIBLINGS)
Asked by Micah Ramirez:

![Screen Shot 2018-12-10 at 6.14.49 PM.png](/t5/image/serverpage/image-id/39944iF3C905C0BF1B148C/image-size/large?v=v2&px=999 "Screen Shot 2018-12-10 at 6.14.49 PM.png")

I was attempting to create anchors on headers across sibling pages, but somehow I wound up having the sibling page become the parent of "Scheduling Admin Website". I can't seem to revert this.   

I want to have   

.../ Technical Architecture  
.../ Scheduling Admin Website  

How do I make this happen? I do not see this structure in the markdown. This is painful to work with.   

I tried reverting the error to a version that I know wasn't like this. The issue persists.


Answers:
author: Diego
body: Hello there Micah! As I understand, a specific page is now **under another one** but should be placed at the **same hierarchy level** as the other. Is that correct?

<br />

This is a strange behaviour indeed. Have you tried to **reorganize the pages via Space Tools:**

**[Move and reorder pages](https://confluence.atlassian.com/doc/move-and-reorder-pages-146407727.html#MoveandReorderPages-Reorderpageswithinaspace)**

What we will need to do to reach this is:
> 1- Go to the **Space** where the**pages are located**   
> 2- Click **Space Tools** in the bottom left corner  
> 3- Select **Content Tools**   
> 4- Click the **Reorder Pages** tab  
> 5- **Reorder pages** as desired

Also, could you clarify a few points for us:
> 1- Are **other pages affected** by this?  
> 2- Were these pages at some point in the **desired hierarchy level?**   
> 3- Were those page **created by you?**

Let us know if you are able to reorder the pages using Space tools!
Documentation release management
Asked by anuchettur:

We are planning to use Confluence as our customer facing tech documentation wiki and would like to plan releases of documentation.

How does one achieve this? Say we would like to make changes to 2 existing documents and add 3 documents in one shot. Do we maintain a "pilot" confluence and then mirror the docs over somehow ?

Anu


Answers:
author: Thomas Deiler
body: Dear [@anuchettur](/t5/user/viewprofilepage/user-id/692192),

have a look at Scroll Versions plugin. That's probably what you are looking for.

So long

Thomas