youngmon/atlassian-qna huggingface dataset:
How to find out which is the most recently modified attachment using REST API?
Asked by Peter Kapteyn:

I'm using the REST API to download attachments from a confluence page. I'd like to find out which one was been modified or uploaded most recently.

I'm using this to download as of now:

```
https://mydomain.net/wiki/rest/api/content/12345/attachment
```

This gives me the data that looks like this:

```
"id":"att1356398593",
"type":"attachment",
"status":"current",
"title":"myFile.bin",
"macroRenderedOutput":{

},
"metadata":{
"mediaType":"application/octet-stream"
},
"extensions":{
"mediaType":"application/octet-stream",
"fileSize":...,
"comment":"",
"fileId":"FIELD_NUM"
},
"_expandable":{
"childTypes":"",
"container":"/rest/api/content/...",
"operations":"",
"children":"/rest/api/content/.../child",
"restrictions":"/rest/api/content/.../restriction/byOperation",
"history":"/rest/api/content/.../history",
"ancestors":"",
"body":"",
"version":"",
"descendants":"/rest/api/content/.../descendant",
"space":"/rest/api/space/..."
},
"_links":{
"webui":"...",
"self":"...",
"download":"..."
}
```

Is there anything here that I can parse to get date modified? Or should a use a different API request?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Peter Kapteyn](/t5/user/viewprofilepage/user-id/4085198) and welcome to the community,

You can use this endpoint:

```
GET /attachments
```

which you can sort by modified date:
> **sort**
>
> AttachmentSortOrder  
> Used to sort the result by a particular field.  
> Valid values: `created-date`, `-created-date`, `modified-date`, `-modified-date`

<https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment/#api-attachments-get>


Tags: cloud

confluence-cloud
How do I configure Confluence in Docker behind HA Proxy?
Asked by David Bond:

After install, and configuring Docker environment variables, the following are working:

* Basic UI
* Connection to Jira for user management

**However**, there is a box top right on EVERY page:

--

**Tomcat config is incorrect**

The Tomcat server.xml has an incorrect configuration:

**scheme** should be 'https'  
**proxyName** should be 'confluence.\<MYDOMAIN\>.com'  
**proxyPort** should be '443'

--

There is NO WAY to set **scheme** via environment variables, as far as I can tell. The other two are configured correctly, I believe.

My docker.compose's .env file contains:

```
ATL_JDBC_URL=jdbc:postgresql://POSTGRES_SERVER_REDACTED:5432/confluence
ATL_JDBC_USER=POSTGRES_USERNAME_REDACTED
ATL_JDBC_PASSWORD=POSTGRES_PASSWORD_REDACTED
ATL_DB_TYPE=postgresql

ATL_PROXY_NAME=confluence.<MYDOMAIN>.com
ATL_PROXY_PORT=443
ATL_TOMCAT_PORT=8090
```


Answers:
author: David Bond
body: To answer my own question:

Your .env file should look like this:

```
ATL_JDBC_URL=jdbc:postgresql://POSTGRES_SERVER_REDACTED:5432/confluence
ATL_JDBC_USER=POSTGRES_USERNAME_REDACTED
ATL_JDBC_PASSWORD=POSTGRES_PASSWORD_REDACTED
ATL_DB_TYPE=postgresql

ATL_PROXY_NAME=confluence.<MYDOMAIN>.com
ATL_PROXY_PORT=443
ATL_TOMCAT_PORT=8090
ATL_TOMCAT_SCHEME=https
ATL_TOMCAT_SECURE=false
```

Note the last two lines.

Hope this helps someone!

comments: author: Webeazy Consulting
body: Indeed you can also add the following env variables directly in environment section of your confluence/jira service (in your docker-compose.yml)

```
environment:
  ATL_PROXY_NAME:confluence.<MYDOMAIN>.com
  ATL_PROXY_PORT:443
  ATL_TOMCAT_PORT:8090
  ATL_TOMCAT_SCHEME: "https"
  ATL_TOMCAT_SECURE: "false"
```


author: Enissay
body: [@David Bond](/t5/user/viewprofilepage/user-id/196780) Can you please share your HAProxy config as well ?


author: david_bond
body: haproxy.cfg relevant lines:

```
backend confluence_<mydomain>_com
server <servername> <serverip>:8090 check
```

domain2backend.map relevant lines:

```
confluence.<mydomain>.com confluence_<mydomain>_com
```


author: Enissay
body: [@David Bond](/t5/user/viewprofilepage/user-id/196780) Sadly I ended up making my own post, please feel free to comment should you see anything wrong with my config

<https://community.atlassian.com/t5/Jira-Software-questions/Jira-Software-on-Docker-HTTP-Status-404-Not-Found/qaq-p/1640076#M129101>


Tags: confluence-server

docker

haproxy

server
How do I change the color of a table border?
Asked by Patrick McCarthy (Everseeker):

With the "new" editor, when looking at a table, unless you have REALLY GOOD eyesight, you can no longer make out the difference between the background and a table border. Removing the Wiki markup option removed low level workarounds

Can I do it somehow? I don't care if I have to change some global setting somewhere... It's a global problem for us


Answers:
author: Fabienne Gerhard
body: Hi [@Patrick McCarthy (Everseeker)](/t5/user/viewprofilepage/user-id/727839)

which version are you running?

Maybe you wanna have a look a this [Article for Color Table](https://confluence.atlassian.com/doc/table-of-contents-macro-182682099.html) written by [@Alana Fernando](/t5/user/viewprofilepage/user-id/1134267) to costumize your tables - also have a look on second page where some improvements for Version 7.\* where mentioned.

Hope this may help you. Also feel free to ask for more help!


Tags: confluence-server

server
Page tree is not visible
Asked by Shah Baloch:

I created a new space in Confluence, created a new page, and moved some pages from another space to a new space, however, I can't see "Page Tree" from the left sidebar. The only way it'll display the "Page Tree" if I click one of the "Recently Update" page, then I can see the Page tree and pages under it.

When I go to space directory and find the newly created space and click on it, I can't see Page Tree, but I can see "Pages", "Blog" and "Calendar". I was digging in the space setting and found out all pages are in the "Orphaned' pages" section. I'm thinking because of that I can't see "Page Tree/Child Pages".

How I can make "Page Tree" visible when users click on the space and how I can take out the pages from the orphaned pages?

Thank you


Answers:
author: Bastian Stehmann
body: Hi [@Shah Baloch](/t5/user/viewprofilepage/user-id/3738782) ,

It looks as if you gave moved the home page of the space.

Can you please check, if there is the correct home page set in the space detail settings? This should be a tab next to the orphaned pages.

Try to set a new home page to fix the problem.

comments: author: Shah Baloch
body: Hi [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496) I set up a home page, and now I can see "Page Tree", however, I still can't see those existing pages. How I can move those pages to under the Page Tree?

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

Thank you


author: Bastian Stehmann
body: Hi [@Shah Baloch](/t5/user/viewprofilepage/user-id/3738782) ,

you have to move them under the Homepage.

The easiest way for this is to open the "..." menu on one of the pages and then select "View in Page Hierarchy". Then you can drag and drop them under the Homepage.


author: Tyler Kosaski
body: To update this answer for 2023, the problem I ran into is that I changed the home page and Confluence only shows pages in the sidebar tree that are children pages of the home page.  

The easiest way to fix this now is Space Settings -\> Manage Pages -\> Reorder and drag and drop the pages under the home page you have set.  

After doing this the pages should now show in your sidebar.

comments: author: Holly Kozminski
body: Thank you!! So simple, but I could not get there. Thank you for your post.


author: Max Emski
body: Thank you! In my case (feb 16 2024) to fix this go to Space Settings -\>  
Manage content: Reorder


author: Tonie Borchardt
body: Sadly, this one did not work for me. My pages are still hidden and won't show under CONTENT in the sidebar. Reordering shows them on the same level as Home page, but it's not possible to drag them to a different level.


author: IAM DEV
body: For my case, the tree menu is not visible because I changed my Space name and Home page.

Solution:

Space setting \> edit home page to any top level of page tree.


Tags: child-page

confluence-cloud

orphan

page

page-tree

space
/ not working
Asked by Marien Vermeulen:

In a demo video is told about the power of the "/" character. to open macro's.

On my system it does not work at all.  
in the video I se more features that don't work at all..  
Why?

[https://www.youtube.com/watch?v=sQD9HUvFjSo\&list=PLaD4FvsFdarRngi46OIHZq9jPf0Pb43b9\&index=22](https://www.youtube.com/watch?v=sQD9HUvFjSo&list=PLaD4FvsFdarRngi46OIHZq9jPf0Pb43b9&index=22)


Answers:
author: David at David Simpson Apps
body: OK, with Confluence Server, you'll need to use the **{** key to do pretty much the same.

They updated the editor on Confluence Cloud to use different keyboard shortcuts.

However, on cloud, **/** is the new **{**

?

comments: author: Marien Vermeulen
body: thanks


author: David at David Simpson Apps
body: I would suggest that you [empty your browser cache](https://www.lifewire.com/how-to-clear-cache-2617980) and try again.

If that fails, maybe something is badly broken on your Confluence Cloud instance, and if that's the case, you should contact Atlassian for support.

comments: author: Marien Vermeulen
body: seems that we run Confluence server.  
this version seem scanty.


Tags: cloud

confluence-cloud

confluence-server

server
exclude heading in the TOC
Asked by Marien Vermeulen:

The documentation does not gice an explanation nor an example how to exclude a heading in the TOC.


Answers:
author: Fabienne Gerhard
body: Hi [@Marien Vermeulen](/t5/user/viewprofilepage/user-id/4105323)

welcome to this wonderful community

exclude / include headings in TOC is really a little bit tricky cause it's based on regular expressions. I had to handle with this too.

There is a real good answer for a similar question in community that helped me a lot - find it [here](https://community.atlassian.com/t5/Confluence-questions/TOC-Macro-Exclude-two-headings-with-different-names/qaq-p/95702). The answer from [@Steffen Heller](/t5/user/viewprofilepage/user-id/781537) saved my day - or even my life.

I just checked it out an it also works in cloud perfectly.

![Bildschirmfoto 2020-09-29 um 21.38.19.png](https://community.atlassian.com/t5/image/serverpage/image-id/112263i4AD46C4E630E0A6A/image-dimensions/457x462?v=v2 "Bildschirmfoto 2020-09-29 um 21.38.19.png")


Tags: cloud

confluence-cloud
Can user change the resultant font size/color of "Jira issue/filter" macro?
Asked by Lawrence:

In my confluence page, a "Jira issue/filter" marco is inserted. After the macro is insert, is there a way to change the resulting font size and color. Please advise.

Thank you,

Lawrence


Answers:
author: Fabian Lim
body: Hi [@Lawrence](/t5/user/viewprofilepage/user-id/3133271)

Out of the box, this is not possible. However, there are 3rd party plugins that work with the jira issue macro that may allow to perform additional formatting.

Regards


Tags: cloud

confluence-cloud
Is this possible to edit the main menu and remove or hide buttons for all users?
Asked by PIXI STUDIO:

Hi, we are testing confluence and currently, we are not satisfy with the new interface.

Is this possible to edit the main menu?

We want to remove the "Home" (which is in fact a weird recent page with an announcement box), the people (we don't need that in the main menu) and apps (why showing this in the main menu if don't need to install an app?).

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


Answers:
author: Diego
body: Hello [@PIXI STUDIO](/t5/user/viewprofilepage/user-id/4025420) !

Currently, the default navigation for Confluence is not customizable this way. We can apply themes, colors and space logos but the items up there are not removable.

You can check more details on the navigation for Confluence here:
> * [++***\[Confluence Cloud\] Confluence navigation***++](https://support.atlassian.com/confluence-cloud/docs/improved-confluence-navigation/)

Let us hear from you!

comments: author: Aaron Kraft
body: Why is this still not possible?


author: Cosmo Denger
body: Same, there are a bunch of unnecessary items that end users do not need to interact with unless they have a confluence license assigned.


Tags: cloud

confluence-cloud

menu

user-interface
I cannot add pages to my spaces
Asked by Sam Sherbini:

Hello,

I cannot seem to add a single page to any of my space. My permission all seem to set correctly. Has anyone else had similar issues?

Thanks for any adivce.


Answers:
author: Dominic Lagger
body: Hi [@Sam Sherbini](/t5/user/viewprofilepage/user-id/4105015)

What issues do you have, do you get an error?

Or isn't there any button to create a page?

Can you share us a bit more informations? perhaps a printscreen?

Regards, Dominic

comments: author: Sam Sherbini
body: OK, seems to be working now ... looks like a temporary fluke ... uff. thank god for that


Tags: cloud

confluence-cloud
How can I retrieve data from ServiceNow CMDB to add to my space
Asked by Stuart Pelton:

Hello,

I am creating a space for our support teams and part of the space would be around servers - within our ServiceNow we have all the details of the server etc and would like to retrieve them for use within the space, this way I am not duplicating data and any updates carried out within Servicenow will reflect within the Space Pages.

Any help would be gratefully received

Thanks in advance


Answers:
author: Dominic Lagger
body: Hi [@Stuart Pelton](/t5/user/viewprofilepage/user-id/4104921)

We had the exact same request. Not with servers but with some project / service informations.

I will explain our solution, which may not be the best, but for our case, it was pretty cool!

We have purchased the plugin "[PocketQuery](https://marketplace.atlassian.com/apps/1211199/pocketquery-for-confluence-sql-rest?hosting=server&tab=overview)" by LivelyApps. What can this plugin do?

* Get Data from SQL
* Get Data from REST API

Service Now provide some good REST interface, but we made our own (we have Service Now developers which did that). So we can call a REST API with a parameter by using PocketQuery and this gets the informations we need. Like so:

This is the table in the VIEW mode

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/112226iCE4E3B9A745DE47F/image-dimensions/666x73?v=v2 "image.png")

This is the table in the edit mode![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/112227i1BE46A40C7046560/image-dimensions/645x68?v=v2 "image.png")

This is the pocketquery macro

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/112228i0A9A97AB132A2240/image-dimensions/271x266?v=v2 "image.png")

You can then set a cache if you want and also you can set whether the confluence search should find the data from the pocketquery.

Hope this helps

Regards, Dominic


Tags: confluence-server

server

servicenow
Exclude images from Space Attachments macro
Asked by Andy Folland:

Hello,  

My apologies if this has been answered elsewhere.  

Is there any way of excluding image files from the Space Attachments macro without having to resort to behind the scenes hacks?  

Surely this should be a simple "Exclude Filter by Extension" feature in the report header.  

Cheers,  

<br />

Andy


Answers:
author: Dominic Lagger
body: Hi [@Andy Folland](/t5/user/viewprofilepage/user-id/1973098)

I don't think that this is possible with the Space Attachment macro.

What do you want to achieve, what is your goal? Perhaps we can find another way, which fits perfect for you.

Regards, Dominic

comments: author: Andy Folland
body: Hello Dominic,  

Many thanks for replying.  
I just want a report to list out all the attachments (.DOCX, .PDF, .XLSX etc) in my space but not including the images that are embedded in my pages.  

IMHO there is an argument to say that embedded images aren't really "attachments" per se. I would say that embedded images should be considered part of the page content really, and perhaps not considered as attachments at all.  
But whatever - that's a separate debate. If I could just use the Space Attachments macro and exclude the image files, that would work for me.  

Cheers,  

<br />

Andy


author: Dominic Lagger
body: Hi [@Andy Folland](/t5/user/viewprofilepage/user-id/1973098)

Okay, I see and agree with you about the attachments :)

The problem here is, that an image can be attached to the site without beeing embedded in the page.

Probably you could write an user macro.

* [Writing user macros](https://confluence.atlassian.com/doc/writing-user-macros-4485.html)
* [Confluence user macro guide](https://developer.atlassian.com/server/confluence/confluence-user-macro-guide/)

Or perhaps you can make a SQL. This should help you

* [How do I list all attachments in Confluence with their location and file sizes?](https://confluence.atlassian.com/confkb/how-do-i-list-all-attachments-in-confluence-with-their-location-and-file-sizes-346325893.html)

Regards, Dominic


author: Andy Folland
body: Hi Dominic,  

Thank you once again.

I suspect I am not techie enough to be able to do this + I wouldn't be permitted to chuck user macros into our Production environment anyway.

Nevertheless I shall have a peruse and see if I can improve my Confluence skills a bit.  

Cheers,

Andy


Tags: attachment

confluence-server

server
t
Asked by Shea McAuley:

t


Answers:
author: Nic Brough -Adaptavist-
body: You need to talk to your space admins.

There is a reason you are included as someone with an interest in this space. If that has changed, your admins need to deal with it.


author: Carla Ann Rowland
body: Confluence Cloud spaces can be assigned to member (by default) by the Confluence administrator. It would be best to contact them. You can check for other group settings in your profile.


Tags: cloud

confluence-cloud
Anchors and updating a page
Asked by bid_msg_76:

Hi,

I have a few anchors in my page and I link them at the same page a few times.

Unfortunately when I'm editing my page (not stuff concerning the anchors, just anything on the page) the anchor-links will also lead to the anchor in the previous version of the page.

Why is that and what can I do to get the anchors right?

Thanks


Answers:
author: JDune
body: I have the same issue. Everytime I edit the page, the anchors stop working and instead link to the previous version of the page. I'm on version 7.6.1.

I have a ton of links so its very inconvenient to go through all of them and link them, so luckily I found a workaround.

Use Chrome otherwise the code needs to be modified. Note that this will break any links to other pages, so if your page also contains those, you need to edit this code snippet. Use at your own risk, but bear in mind that you can revert to the previous page version if something goes horribly wrong.

1. Press Edit to open the Editor view.

2. Right-click the page and click Inspect.

3. In the console enter the following code:

$$("a.confluence-link").forEach((elm) =\> { elm.removeAttribute("data-linked-resource-type"); elm.removeAttribute("data-linked-resource-id"); elm.removeAttribute("data-linked-resource-version"); });

4. Click Save.


author: Dominic Lagger
body: Hi [@bid_msg_76](/t5/user/viewprofilepage/user-id/3956245)

I have a few questions:

* Which confluence server version do you use?
* How do you set the anchors?

Check this:

1. What is the url of the page you want to link?
2. What is the url of the anchor link?
3. Do they match?

Regards, Dominic


Tags: confluence-server

server
Jira Issues Macro not showing issues list for certain users
Asked by Michel.Tatrung:

Using a template page that contains a **Jira Issues macro** . The macro displays fine for certain users, but others get a warning message that reads (translated)'refresh failed, please try again', see below.![Confluence_JiraMacro_-image (5).png](/t5/image/serverpage/image-id/112192i297C763B93AE85FF/image-size/large?v=v2&px=999 "Confluence_JiraMacro_-image (5).png")Users have reported that the macro works on other 'non-template' pages. the issue was reported by both admins and non-admin users.

Is there any underlying logic that could cause this? a timeout maybe? Thanks!


Answers:
author: Fabian Lim
body: Hi [@Michel.Tatrung](/t5/user/viewprofilepage/user-id/4104681)

Unfortunately, this is a known issue. Here is a ticket with a workaround: <https://jira.atlassian.com/browse/CONFCLOUD-62014> which involves splitting the information into different pages to minimize load times.

Also you can find some explanations from the Atlassian team here: <https://community.atlassian.com/t5/Confluence-questions/Jira-Issue-Macro-not-showing-custom-field-value-in-Confluence/qaq-p/1786372> for a similar issue.


Tags: cloud

confluence-cloud
Consolidating Several Confluence pages into One Word File
Asked by Brian Yoder:

I would like to maintain several pages/chapters of some user documentation in Confluence and then define a certain set of those pages to be compiled in a certain order into a giant Word file for editing into a manual. Since different people may need different sets of information I will want to define various manuals by including or excluding certain information and reordering it. Is there some way I can script this process (since there might be 50 different pages that need consolidation like this)? Is the some better way to do it?

FYI, we are a software development team so some fancy scripts or hand made utilities are totally within our capabilities if it's hard to with the standard tools.


Answers:
author: David at David Simpson Apps
body: You could do worse than look at [Scroll Word Exporter, by k15t](https://marketplace.atlassian.com/apps/24982/scroll-word-exporter-for-confluence?hosting=cloud&tab=overview).


Tags: cloud

confluence-cloud