youngmon/atlassian-qna huggingface dataset:
How do I manually order Child pages in the Child Display Macro in Confluence?
Asked by Mohamed Sleem:

I am using the Child Display Macro to list all the child pages on the parent page like a table of contents. The option to sort the child page according to the Macro documentation are by Creation, Title, Modified. It also states that the default is Manual if manual is selected. I can't see where i can select manual.

For now I have chosen to sort by Creation which is working for now as I am creating theses page in the order I wont them, but if I ever want to go back and create another page that I want to show higher up on the list then how is this done?

If I leave the Sort by option blank, assuming this is the default, it automatically orders them Alphabetically which i don't want because the pages need to be ordered in a specific way ie, the pages deal with the use of a piece of software and each page explores the software in more deeper detail as the ready progress through the different pages.

Thanks in advance


Answers:
author: Thomas Schlegel
body: Hi Mohamed,

pages in Confluence are ordered alphabetically by default. You can change this alphabetical order by clicking "Reorder pages" on the bottom of the left sidebar:

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

There you can manually change the order of your pages by dragging and dropping them to the right position.

comments: author: Mohamed Sleem
body: Hi Thomas

Thanks for the quick reply. I have reordered the page as you described but this does not translate to how it ordered in the Child Display Macro.

Pages ordered randomly to test you theory:

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

And this is how it shows up when i use the Child Display Macro:

![Child Page list macro.png](https://community.atlassian.com/t5/image/serverpage/image-id/12839i2031460F5B3B8DFE/image-size/large?v=v2&px=999 "Child Page list macro.png")

This seems to show that the Reorder Page function does not effect how the Child Display Macro orders the Child paged when it displays them.


author: Thomas Schlegel
body: This is strange, how did you set the ordering for the children macro?


author: Mohamed Sleem
body: Hi Thomas

I was having a stupid moment. Your right. I forgot to change how the Child Display Macro sorts the pages. I set "Sort Children By" from creation to the default blank value and now the Child pages are ordered as I had set them under Space Tools \> Reorder Pages.

Thanks very much Thomas. Two thumbs up.


author: Thomas Schlegel
body: You're welcome, [@Mohamed Sleem](/t5/user/viewprofilepage/user-id/1178630)
Index Queue Count
Asked by Rilwan Ahmed:

In the viewindexqueue.action, from where is the count fetched from ? Is it from Database or any other action.  

Example: Number of items in queue: 784960

From where is the data fetched "784960" ?  

Intention is to set up alert when count increases 1000.


Answers:
author: AnnWorley
body: The index queue number is from the database, it is the number of items in the database that have not been stored on the file system in the index directories yet.

The number of queued items in your example is quite large. You shouldn't have to set an alert for 1000 items under most circumstances. Please let me know:

* Is the index job running every minute as it should? Please check the History link next to the Flush Local Task Queue in the [Scheduled Jobs](https://confluence.atlassian.com/doc/scheduled-jobs-96567525.html) admin page. If the job is not running as expected, this page has some possible causes: [Searching and Indexing Troubleshooting](https://confluence.atlassian.com/confkb/searching-and-indexing-troubleshooting-180847237.html)
* Is your instance quite large so that over 1000 content changes are being made in less than a minute?
* What version of Confluence are you seeing this issue on? (The indexing functionality has been changed over time and some of our docs are no longer relevant to later versions.)
* Have you reindexed from scratch lately? [How to Rebuild the Content Indexes From Scratch on Confluence Server](https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html)

I look forward to hearing more about your instance and the indexing issue you are experiencing.

comments: author: Rilwan Ahmed
body: The issue with one of our plugins. Can you please let me know which DB table has Index queue number.


author: AnnWorley
body: The **journalentry** table. If you need to log what exact queries Confluence is running to fetch the count, please enable SQL logging as described in:[Enabling Detailed SQL Logging](https://confluence.atlassian.com/doc/enabling-detailed-sql-logging-179030.html)

I look forward to hearing how it goes.
I want to be able to subdivide my blog posts by subject matter, is this possible?
Asked by John Sands:

I have created a blog and it is getting very large and I want to be able to group it by subject matter


Answers:
author: Thomas Schlegel
body: Hi John,

a Confluence space can only have one blog. There is no second one. But you can have more than one page, showing different posts from the blog.

Using the 'Blog Posts'-Macro you can filter on

* time frame
* labels
* authors
* spaces

So, e.g., add labels to your blog posts and create different pages that filter the large blog on these labels.

comments: author: John Sands
body: Hi Thomas I tried this macro and it didn't seem to work. I added it to a different page and added the label.

![config.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/12830i8863C2716E56EDCD/image-dimensions/485x296?v=v2 "config.jpg")

And here is what the finished page looks like.

![page.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/12831i174B88366C6AE340/image-size/large?v=v2&px=999 "page.jpg")


author: Thomas Schlegel
body: Have you added the label to your posts as well?


author: John Sands
body: I have but normally when you start typing it picks up on existing labels and it didn't do this


author: John Sands
body: Hi Thomas I think its because I am using this in my personal space and which has no blog and if I understand rightly this macro needs to be in the space where the blog resides


author: Thomas Schlegel
body: I think you can set the space(s) where the blog posts come from.


author: John Sands
body: All sorted it works now and looks good thanks Thomas


author: Pat
body: if a Confluence space can only have one blog, then why does the UI refer to the plural?

Or has that changed since this question was posed?

![2024-06-14 11_52_55-Blogs - patrick.metzdorf - Confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/329895i2A6235F3D10D5C71/image-size/large?v=v2&px=999 "2024-06-14 11_52_55-Blogs - patrick.metzdorf - Confluence.png")


author: Shannon S
body: Hi John,

I would recommend [applying a label](https://confluence.atlassian.com/doc/add-remove-and-search-for-labels-136419.html) to each blog depending on its subject. You can then display the list of topics later using a [Content by Label macro](https://confluence.atlassian.com/doc/content-by-label-macro-145566.html).

I hope this helps!

Regards,

Shannon

comments: author: John Sands
body: Have tried this Shannon and it seems to work. Thank you very much for your help


author: Shannon S
body: You're welcome John. Take care.

Regards,

Shannon


Tags: blog
I would need the count of users who are accessing our space per day.
Asked by Dominik Aigner:

Is there a way to get how many Users are accessing a space per day?

So not how many views but how many single users.


Answers:
author: Shannon S
body: Hi Dominik,

There isn't a built-in way to do that, but it appears these add-ons might be able to help you with that:

* [Viewtracker](https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.viewtracker/server/overview?_ga=2.86691088.924331227.1516091163-306096126.1516091163)
* [SpaceAuditor system audit and statistics](https://marketplace.atlassian.com/plugins/com.vertuna.confluence.plugins.spaceauditor/server/overview?_ga=2.86691088.924331227.1516091163-306096126.1516091163)

Let us know if you have any questions about that.

Regards,

Shannon


author: devpartisan
body: For Confluence Server or Data Center, one can also [enable access logging](https://confluence.atlassian.com/confkb/how-to-enable-user-access-logging-182943.html). I prefer to pipe those logs to a log aggregator like the commercial Splunk or free Elastic Stack. However, one can also use command-line tools to count users in logs. If you follow the instructions for logging to a separate file, then you can do the following on Linux:

```
cat atlassian-confluence-access.* | awk '$7!="-"{print $7}' | uniq | wc -l
```

The one thing that might throw off the count a little is the first time access logging is enabled, Confluence produces a message to explain the log format. This means the above command will think one of your users is "AccessLogFilter" (because that's the 7th word in the message). So, you might want to check the actual names:

```
cat atlassian-confluence-access.* | awk '$7!="-"{print $7}' | uniq | sort
```

Hope that option helps.


Tags: administration

sql
{expand} user macro; macro body is not expanding
Asked by alana fernando:

I have created a user macro exactly like expand macro.

for some reason text i have entered in the macro body is not expanding. what am i doing wrong?

```
<div class="notice notice-success">
<h1 style="color:#80D651;"><span class="aui-icon aui-icon-small aui-iconfont-$paramicon"> </span> $paramtitle</h1>
<input id="toggle" type="checkbox">
<ac:macro ac:name="expand"> $body</ac:macro>
</div>
</div>
```

![screenshot-atlmockupgrade.millenniumit.com-2018-01-18-11-40-45.png](/t5/image/serverpage/image-id/12803i90D11C6257A3147F/image-size/large?v=v2&px=999 "screenshot-atlmockupgrade.millenniumit.com-2018-01-18-11-40-45.png")


Answers:
author: Thomas Schlegel
body: Hi Alana,

this works for me:

```
<ac:structured-macro ac:name="expand">
 <ac:rich-text-body>$body</ac:rich-text-body>
</ac:structured-macro>
```

comments: author: alana fernando
body: Thanks Thomas
How to import by reference?
Asked by Pat Thomas:

I want to be able to keep my illustrations in a directory and reference them in a Confluence page. FrameMaker has an import-by-reference feature with this capability. For example, if I take a screen shot today and import-by-reference the saved .png file into several documents, when that screen shot gets updated, I can simply save the revised file and the update automatically gets picked up by all documents that reference it.

I know I can use an inclusion library for Confluence chunks/pages, but I'd like to be able to skip the step of updating a Confluence page with an updated screen shot. I'd like updates to occur directly from the saved file in a directory.

Thanks, in advance, for any tips you can provide.


Answers:
author: Pat Thomas
body: Thanks. I'll investigate both suggestions. I think they are both reasonable options.


author: Davin Studer
body: If the folder is web accessible you can use "Images from the web".

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

comments: author: Nic Brough -Adaptavist-
body: \>I know I can use an inclusion library for Confluence chunks/pages

I would still do that - it means you only have to save one file in one place. Davin's trick then solves the other part of your problem.

Although, if you can't do that, I'd be looking for a script that can monitor a remote or shared folder and either drag it into Confluence (assuming it's something in Confluence), or a script that can monitor a shard folder and knows to use REST to poke a new attachment into Confluence into the right "inclusion" page.

I know it's not much help, but I've done both of those, but it was a long time ago (version 2), one as a plugin, and the other used SOAP rather than REST. I'm showing my age...
How do I add jason snippet in confluence pages
Asked by SANDIP KUMAR DEVNATH:

While editing a page in confluence. I wanted to add some json snippet.

When I click "more content" from top tool bar the "+" button. I search for code macro, I get many language like c++/java/c/python etc, but nothing for JSON and XML.

Am I missing anything here ?


Answers:
author: Stephen Deutsch
body: Hi Sandip,

the Code Macro supports adding further languages as SyntaxHighlighter brushes, so you could try to find a brush file and import it into Confluence:

<https://www.google.de/search?q=syntaxhighlighter+json+brush>

Note that this only works for Confluence Server, if you're using Confluence Cloud, then I would recommend installing the [Better Code Macro](https://marketplace.atlassian.com/plugins/com.atlassian.connect.better-code-macro.prod/cloud/overview).


author: Davin Studer
body: JSON is really just JavaScript (JavaScript Object Notation). Personally, I would use that .

comments: author: Davin Studer
body: Also, you should have an option for **HTML and XML**.


author: SANDIP KUMAR DEVNATH
body: I actually tried all languages before posting this question. I don't see even with Javascript, presentation is nothing close to what I get in Jira with code inside "{code:json}" tag.
Automatically updating a table column in Confluence
Asked by Dean Miller:

So our leadership team has a daily issues Confluence page with each row containing a status update and then a column for "Last updated" with the individual being expected to enter that particular date when the updated the other columns on the row. So one of the managers has mentioned that people forget to manually change the date on the last updated column when they update their info and has asked if we could set that column to auto-update if a change has been made in any column in the row.

Is this possible?


Answers:
author: Peter White
body: You could easily achieve this in excel and upload the document when finished each day. Be careful with auto updating dates in case the data was not entered or enteres incorrectly (ie a space bar) which influences the result.


Tags: developer
Include a List of Child Pages in a Table of Contents?
Asked by Paul LaBarbera:

The Children Display macro creates a bulleted list of all child pages.

The Table of Contents creates a bulleted list of all headings on the page.

When I combine these two, by putting a Children Display macro inside a Heading 4 paragraph style, the Table of Contents macro interprets this macro as a single line. Like so:

![conf1.png](/t5/image/serverpage/image-id/12791i1946ECE5DA5B0847/image-dimensions/258x139?v=v2 "conf1.png")![conf2.png](/t5/image/serverpage/image-id/12792i7E770AAF1208745C/image-dimensions/520x144?v=v2 "conf2.png")

I'd like to have that last line read correctly,and each item given it's own bullet. How can I do this?


Answers:
author: Shannon S
body: Hi Paul,

This appears to be a new bug, as I wasn't able to find it reported in our system.

I was able to replicate it on my 6.6.0 instance, and have reported it here:

* [CONFSERVER-54808](https://jira.atlassian.com/browse/CONFSERVER-54808)

At this time I am not able to think of any workarounds, but if you keep an eye on the bug ticket, another user may have found one. It will also help if you vote on the bug, since it helps us keep track of the users who have run into this issue.

Regards,

Shannon

comments: author: Paul LaBarbera
body: Thanks for the quick response!

The version was on 6.2.1 server. Thanks for creating a JIRA so quickly.


author: Shannon S
body: Thank you, Paul.

I added that to the bug.

I tried to see if you could work around this using Source Editor but you cannot edit the contents of a macro using it.

There may be some other way using scripting, but I'm unfortunately not very skilled in that aspect and haven't been able to come up with an appropriate fix that way.

Regards,

Shannon
Import Confluence space content into Confluence Server
Asked by Sylvain gaume:

Hi,

I have a confluence space xml-export (originating from Confluence cloud ). I would like to import it as a child of one given page of my current confluence Server 6.5.

Reading the documentation I found procedure to use the xml-export as a back-up source but not as a source of additional content.

Any clue?


Answers:
author: Shannon S
body: Hi Sylvain,

The documentation to import a space is here:

* [Restoring a Space](https://confluence.atlassian.com/doc/restoring-a-space-152036.html)

This would add the space to your existing Confluence Site provided that the space key doesn't already exist.

Could you let me know what your questions were about that procedure? A space import *is* additional content. Only restoring an entire Site XML Export would overwrite the current instance.

Also please be advised that you cannot make a space the child of another page or space. Once you import the space, however, you can move the individual pages within it to be children of other pages in your instance.

Regards,

Shannon

comments: author: Sylvain gaume
body: Thanks for the quick and precise answer. I'll test and let you know. Cheers


author: Sylvain gaume
body: Hi , The import has been done. Now it seems that new pages have been successfully added into the current confluence server. Now to manage rights and move then to the target structure we do not find where this additional content has been added through the import procedure? Thanks for your help. Regards


author: Shannon S
body: Hi Sylvain,

Since you imported a space, I would recommend having a look at your Space Directory for the imported space.

If you don't see it there, you can perform a reindex in Confluence, and it should display.

Let me know if you have any trouble.

Regards,

Shannon


author: Sylvain gaume
body: Hi Shannon,

we have had no trouble after reindexing, that's fine.

The only minor issue is that comments have been lost, probably when generating the xml export in Confluence cloud (no option was available in the UI to include or exclude comments)

Cheers

sylvain


author: Shannon S
body: Hi Sylvain,

If you export to XML then comments are included:

![Screen Shot 2018-01-25 at 1.35.57 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/13303i49BF7DC6F2A94F17/image-dimensions/833x196?v=v2 "Screen Shot 2018-01-25 at 1.35.57 PM.png")

They're included automatically in the Full Export and then only if you do not uncheck the box for custom export.

Do you remember which option you selected when exporting? You could [check the database](https://confluence.atlassian.com/confkb/where-does-confluence-store-comments-in-the-database-829037420.html) to see if they were imported and maybe you're not seeing them?

Otherwise I would try to make the Full Export again and see if you can try importing again.

Regards,

Shannon


Tags: import
Confluence atlas-package does not work as expected
Asked by Renuka Joshi:

We have a Confluence add on and we are facing problems with quick reload. atlas-package is supposed to do a quick-reload when the instance is already running. Whenever we try to do that, it keeps on doing quick reload several times as seen in the log and instance becomes really really slow to perform any action. As a result, we have to restart our instance altogether. We use standalone instance sometimes but it is not very helpful while debugging the code.

Also, several times we have seen that atlas-package will create another instance of confluence. So, we have to kill the PID and then restart the app.

Have you seen this issue and do you have any suggestions/information about this?


Answers:
author: Gonchik Tsymzhitov
body: Hi Renuka!

I am using for developing the debugger port

<https://developer.atlassian.com/server/framework/atlassian-sdk/creating-a-remote-debug-target/>

and for upload use rest api

<https://developer.atlassian.com/platform/marketplace/registering-apps/>

May I know, do you really need quick reload?

Cheers,

Gonchik Tsymzhitov


Tags: atl-dev
Inline comments report for confluence
Asked by Leslie Wright:

Hi all - For one of my spaces in Confluence I am trying to set up a page for reporting on the comments.

Has anyone done this who would be willing to share how they did it? I am looking for a separate page for the report. I am looking for page title, who added the comment and the comment they added.

Thanks to all!


Answers:
author: Thomas Schlegel
body: Hi Leslie,

we created such a report with the app "[Reporting for Confluence](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.reporting/server/overview)", but there may be also other apps that might help you.

I don't think, that you can create such a report with Confluence-out-of the-box.

comments: author: Leslie Wright
body: Thank you for the lead! I am definitely going to check it out!


author: Irina_Bel_Stiltsoft_
body: Hi [@Leslie Wright](/t5/user/viewprofilepage/user-id/937542) ,

The [Talk Advanced Inline Comments for Confluence](https://marketplace.atlassian.com/apps/978531/talk-advanced-inline-comments?hosting=datacenter&tab=overview) app can help you with your case. Once you start using Talk as inline comments, you can collect them from different spaces and pages with the Talk Report. It automatically provides the following information:

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

When you click on the page name in the Page Column, you find yourself on the relevant comment thread.


Tags: comment

report