youngmon/atlassian-qna huggingface dataset:
Does anyone know if there is an option to set documents in confluence as not downloadable?
Asked by Shiri Cohen:

We want to add some legal policies in our wiki but want to make sure people won't be able to download it but read-only. I know they can always print screen, but still.


Answers:
author: Bill Bailey
body: Well the best you can probably do is upload only PDF documents. You can set the security on PDF docs to not allow printing, editing and/or copying. You can also set a password just to open the doc.

So users could still download, but very restricted what they could do with it. Or you need to move your content to be actual Confluence pages, and then set security restrictions there.


author: Nic Brough -Adaptavist-
body: Any form of view is a "download", so, unless you make the attachment completely unavailable, there's no "not downloadable"


Tags: cloud

confluence-cloud
How do i make bookmarks and have a report with it?
Asked by ????? ????????:

Hello

Can i in any way do following:

F.e. i made big space, with a lot of pages. During writing pages content i mark places that i want to rewrite or correct in future.

And i'd like to gather it all in one report, or table with links to places i marked.

Like bookmarks and report for entire space.

May be any apps?


Answers:
author: Diego
body: Hello [@????? ????????](/t5/user/viewprofilepage/user-id/4096676) !

As I understand, you want to create a list of pages that contain a type of bookmarked part for future improvement.

I believe we can achieve something similar by using the Anchor Macro and the advanced search in Confluence.

Here is how I would suggest dealing with this situation with the native resources offered by Confluence:
> 1. *Create your page*
> 2. *Add the Anchor macro to the part of the page where you need to keep working later*
> 3. *Publish the page*
> 4. *Go into the search bar at the top right corner*
> 5. *Click the Advanced search option*
> 6. *Search for macroName:anchor\**

The result from the search macroName:anchor\* will give you all the pages that contain the Anchor macro. The main limitation of this approach is that you will not be redirected to the anchor place if you click the search results. We need to manually fill-in the anchor address in the browser address bar. And there is also no reporting to look into the anchors you place.

This process is made easy by choosing a default anchor name for your anchors so you manually add that to the page address in the future.

Here is an example:
> 1. *I created an anchor called review*
> 2. *I created a page called Link to Page*
> 3. *Your Page URL is http://myconfluence:8090/display/SpaceKey/Link+to+Page*
> 4. *Your anchor name is review*
> 5. *We can access the anchor by going to http://myconfluence:8090/display/SpaceKey/Link+to+Page#LinktoPage-review*

Notice that the anchor name is actually the full page name with no spaces ant then the anchor macro name separated by the a dash.

You can find more details on Anchors and the Anchor macro here:
> * **++*[\[Confluence Server\] Anchors](https://confluence.atlassian.com/conf77/anchors-1021226273.html)*++**
> * [**++*\[Confluence Server\] Anchor Macro*++**](https://confluence.atlassian.com/doc/anchor-macro-182682072.html)

In our marketplace, some vendors do sell document review plugins, it might be worth looking into:
> * [++***\[Atlassian Marketplace\] Search -- Review***++](https://marketplace.atlassian.com/search?hosting=server&product=confluence&query=review)

I hope this helps!


Tags: confluence-server

server
How to Word Wrap in confluence Micros/text?
Asked by Shruti Wadhokar:

I have splunk logs to preserve on one of the pages, but they are getting displayed in one big lines. Rather i want them to be readable so looking for ways to wrap it.![Confluence-Logs.png](https://community.atlassian.com/t5/image/serverpage/image-id/111487i45B12B23E38788EA/image-size/large?v=v2&px=999 "Confluence-Logs.png")


Answers:
author: David at David Simpson Apps
body: How are you displaying them?

You could add the following CSS on the page if they are in a **pre** block:

```
<style>
  pre {
    white-space: pre-wrap; 
  }
</style>
```

...perhaps in the HTML macro, if you have that enabled.


Tags: confluence-server

server
How do I disable "smart quotes", i.e. automatically substituting "these" with ?these? ?
Asked by Joni:

I wrote something like:

curl -XPUT ['http://localhost:9200/idx/_settings'](http://# "http://#")

and Confluence automatically changed it to:

curl -XPUT '[http://localhost:9200/idx/_settings'](http://# "http://#")

which completely breaks the curl command.

I would like to disable those smart quote substitutions. We're not using Confluence for typographic sugar, but for documenting programming code which in many cases make big difference with the little characters.

And no, having to \*first\* mark the code as Code (ctrl+shift+m) and only then starting to write/pasting code is an unwanted hindrance in the workflow.


Answers:
author: Milo Polte
body: It's ridiculous that this can't be disabled universally on a wiki used by tons of tech companies.

Even this comment box doesn't automatically do "smart" quotes.


author: christopher
body: +1 for tearing out this ridiculous "feature".


author: Danver Braganza
body: Hey, who else is viewing this bug report this in 2024?

comments: author: Raymond Peck
body: ?????


author: Owen Gibbins
body: It's astounding to see that this thread has been around for years and there's not a single comment from the developers on it. But I'm new around here and perhaps that's just the norm for this forum.

Anyway, another +1 for removing these intrusive modifications of my typing.


author: DPKJ
body: [@Joni](/t5/user/viewprofilepage/user-id/712428) I did face same issue and started using ( \` i.e. back quote) before I pasted code, or whenever I wanted to add code.

comments: author: Joni
body: Thank you, for that workaround. It's not the solution I'm looking for as I'd like software systems working FOR me, not AGAINST me. ?


author: DPKJ
body: I too become very unhappy when things like these occur.


author: Rainer R
body: It's also an insidious problem for JSON. The odd quotes cause the JSON format checkers to fail your JSON, but not flag the quotes as the issue which can lead to a long and frustrating debug session. This makes it hard (forced to use inconvenient workarounds) to do our documentation in Confluence and allow users to cut and paste sample JSON.

Google docs has a setting. It is possible, please fix it.


author: Influential Eliot
body: It should be an option either way.

1. I need what I type to be contextual, when I talk about a '*fieldName* ' I plant that in a single quote, when I talk about a "++field value++" then it is a double quote. This is (I think) a pretty universal thing, but even so, it is not uncommon.
2. When copying and pasting text to other programs (not for code, not everyone is a code head) then smart quotes are just ... woefully annoying. I turn them off in Outlook, too ... it shouldn't be a big deal here.


author: Influential Eliot
body: PLEASE_DELETE


author: Scott Posey
body: You can work around that using the "code snippet" under the "+" menu.

However, smart quotes still happen in code format from Bold/Italic/... menu, which I agree is not developer-friendly.


Tags: cloud

confluence-cloud
Can I display a flat table of contents using the first letter of the document name?
Asked by Kathryn Reddie:

![University glossary.png](/t5/image/serverpage/image-id/111478iE0F8E85BD7FAE6A8/image-dimensions/303x100?v=v2 "University glossary.png")

I'm trying to replicate the above onto a Confluence page, with the content pulled from labels. Here's the original webpage - <https://www.anu.edu.au/directories/university-glossary>

Is there any way to do it, or should I just forget about it and use a live search function instead, and get the user to start typing what they are looking for?

Thanks in advance,

Kathryn.


Answers:
author: David at David Simpson Apps
body: Back in the early 2010s, I wrote a Confluence macro called **azList** which did just this.

Here's a video of it in action (though sadly no longer maintained):

<https://www.youtube.com/watch?v=cElY-7mSwAs>

It was based on the following jquery plugin:

<https://github.com/dvdsmpsn/azList>

It should be trivial to convert into a user macro for use on Confluence Server.

It would be a wrapper which inserts the following around an unordered list:

```
<div class="azList">$body</div>
```

Then adds the following javascript\&colon;

```
AJS.toInit(function($){
  $.each($('.azList > ul'),function(index, value) {
    $(this).attr('id', 'azList-'+index);  // Add a unique id to each ul
    $(this).azList();
  });
});
```

And a sprinkling of CSS:

```
.azListIndex li {
  display: inline; 
  padding: 0.2em;
}
.azListIndex li a { 
  background: #f0f0f0; 
  border-bottom: 1px solid #ccc; 
  padding: 0.1em 0.3em; 
  text-decoration:none; 
}
.azListIndex a:hover { 
  background: #dedede; 
  border-bottom:1px solid #000; 
}
.azListInitial { 
  list-style-type: none;
  font-size:1.4em;
  padding-top:0.6em;
  background:none; 
}?
```


Tags: confluence-server

server
Can you set a page, created from a blueprint, to retrieve data from the page created previously?
Asked by Gary Allen:

Hi,

Does anyone know if it's possible to create a page from a blueprint that retrieves information that was input into the last page created from the same blueprint?

For my particular example, I have a 2 column table. On the first document created from the blueprint/template, I would enter data into column B. On the second document, I would like the same data to be populated in column A and then the process can start again each time for the subsequent documents.

Does anyone know of any functionality/plug ins/workarounds that would be able assist me?

I'm using the Confluence Cloud.

Thanks in advance!


Answers:
author: Stephan Sutter
body: Hi [@Gary Allen](/t5/user/viewprofilepage/user-id/2753067)

If you could create a document at the same time, our Page Tree Creator could be a solution for your needs.  
You can find the [Page Tree Creator](https://marketplace.atlassian.com/apps/1214062/page-tree-creator-blueprint-template?hosting=cloud&tab=overview) App in the marketplace.

Regards,  
Stephan (PM at EPS Software Engieering, the vendor of the Page Tree Creator)

comments: author: Gary Allen
body: Thanks [@Stephan Sutter](/t5/user/viewprofilepage/user-id/551343)! I'll have a look and see if that meets my needs


Tags: blueprint

cloud

confluence-cloud
Does Confluence 6.10.0 version has the ability to add color to the header of a table?
Asked by Jessica speake:

Does Confluence 6.10.0 version has the ability to add color to the header of a table?


Answers:
author: DPKJ
body: [@Jessica speake](/t5/user/viewprofilepage/user-id/4096217) Welcome to the Atlassian community.

Although this question is not related with Confluence Cloud, but with Confluence server, I can help you.

I don't think there is any feature to change color of table header. But if you want to change it for all available tables you can use this link - <https://confluence.atlassian.com/confkb/how-to-change-table-appearance-using-css-313464913.html>

On side note, there are many add-on (apps) are available on marketplace to help you create better looking tables.


Tags: cloud

confluence-cloud
Code Block highlighting
Asked by Priit:

In the new confluence version we can use the "code block" and assign language to the code in the block, but there's no highlighting. Is it working as intended?


Answers:
author: Priit
body: wow. that's super weird. I swear it was not working before, since I checked it many-many times, but now, after your post, it is working (for bash).


author: David at David Simpson Apps
body: It seems to work as intended in my Confluence Cloud instance for CSS, HTML and JavaScript code syntax highlighting:

![Screenshot 2020-09-23 at 19.59.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/111531iAF58B918EBE74DEA/image-dimensions/521x341?v=v2 "Screenshot 2020-09-23 at 19.59.55.png")

What language are you trying to use?


Tags: cloud

confluence-cloud
Where can I enter a CQL expression?
Asked by Sascha Ziemann:

In Jira it is possible to enter JQL expressions in the advanced search.

How to do the same in Confluence?

I have read, that CQL is used for the REST API, but I would like to test the expression before I use it. Where can I enter the CQL expression?


Answers:
author: David at David Simpson Apps
body: Take a look at Script Runner:  
<https://scriptrunner.adaptavist.com/latest/confluence/advanced-cql-search.html>

Failing that, for a free solution, just use [Postman](https://www.postman.com/postman/) or similar to test your expressions.


Tags: confluence-server

server
Delete all attachments but not the ones shown in the page.
Asked by laralg:

Hello,

Due to page copy, we have a some pages with more than 500 attachments. This is obviously bad and we need to delete them.

There are some apps in the marketplace to delete all attachments but they delete all of them. We want to leave the ones that are actually being used in the page. Is there any app or way that we could differentiate the attachments that are being used it the page and shown as images vs the ones that have just accumulated there over time and are not being referenced?

Best Regards


Answers:
author: Ivan Lima
body: Hi [@laralg](/t5/user/viewprofilepage/user-id/238099), I haven't found a workaround for this scenario as yet. I did find the suggestions [CONFSERVER-16577](https://jira.atlassian.com/browse/CONFSERVER-16577) and [CONFSERVER-45724](https://jira.atlassian.com/browse/CONFSERVER-45724) at the Atlassian ticket system. Both relate to your question, so I thought it would be useful to register a reference to those in this answer.

Probably, there is a way to script this, but it would be a great feature itself to add to existing add-ons/apps if they haven't done yet. I came across a few [apps](https://marketplace.atlassian.com/search?hosting=server&query=delete%20attachments) that handle the attachments selectively, but I am not sure whether they can combine the feature of identifying unused attachments and bulk delete them as you described.

Cheers,  
IL.


Tags: confluence-server

server
How can I link a document that is saved on u drive / server to a confluence page
Asked by Fernando:

Hello I am trying to link a document that is located in an u drive to a page on Confluence. Any ideas how to do that?


Answers:
author: repi
body: [@Fernando](/t5/user/viewprofilepage/user-id/4095847)

You should first specify the host type.  
Whether server or cloud.  
Download the file as an attachment in the confluence and you have access from all sides.  
A direct link to a locale file is not possible with standard means.


author: David at David Simpson Apps
body: Take a look through this thread:

[Confluence: How to place a link to a file on a server share in a confluence page?](https://community.atlassian.com/t5/Confluence-questions/Confluence-How-to-place-a-link-to-a-file-on-a-server-share-in-a/qaq-p/258790)
Same picture in different sites
Asked by camilo_toloza:

**Context:**

I have created several sites with the same structure:

*-Main picture-*

*-Description-*

*-Separation line-*

*-Content (text and other stuff)-*

**Problem:**

When I change from one site to the other on the left menu, **the same picture (Main picture) is shown**. I have to refresh the browser in order to see the right picture and the cycle begins once again.

All pictures have the same size, but different names and of course different contents.

++What's going on?++


Answers:
author: Daniel Eads
body: Hello Camilo, welcome to the Community!

Would you be able to share a screenshot of one of the pages you're seeing this on, and circle the main picture that seems to not be changing between pages? I have an idea in my head of what you're describing but want to make sure it matches what you are seeing.

Once the screenshot is posted, I should be able to provide further answers.

Thanks,  
Daniel

comments: author: camilo_toloza
body: Hi Daniel. Thanks for your answer.

Here you can see the three different sites:

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

As I mentioned, each site has a different picture (at the same position), but when I change the site on the left menu, the same picture is shown in all sites. The title and the other contents change, but this first picture stays there until you refresh the site.

Thanks for your answer.


Tags: cloud

confluence-cloud

image
How to link tab page on the same confluence page
Asked by Sudhir Ramdasi:

I have created confluence page with tab page, inside that there is tab container and within tab container many (child) tab pages. I want to link the tab page into similar tab page structure on the same confluence page. I have given unique id for tab page and using full URL#\<tab page id\> using link advance option on the same page. But it is not working.

Anyone knows how to link such tab page?


Answers:
author: David at David Simpson Apps
body: On Confluence Server, you'll need to create a user macro called something like **Click on Tab**:

```
## Macro title: Click on Tab
## Macro has a body: N
## Macro is inline: Y
##
## Developed by: David Simpson / david @ davidsimpson . me
## Date created: 2020-09-23
## Installed by: You (hopefully)
## 
## @param Anchor:title=Anchor ID|type=string|required=true|desc=w.g.tab-xyz
## @param LinkText:title=Link Text|type=string|required=true|desc=e.g. Click on tab XYZ

<button onclick="AJS.$('#$!{paramAnchor}').click();" class="aui-button aui-button-link">$!{paramLinkText}<button>
```

On Confluence Cloud, you are out of luck, I think.

comments: author: Sudhir Ramdasi
body: Thanks for reply. Unfortunately, I don't have access to create a user macro on Confluence server. But guessing that can modify the page source code from where need to access tab page.

Any suggestion?
Archive content/data in confluence cloud to external drive, before deleting product access
Asked by Nisha Nair:

Good afternoon,

Due to the non-usage of the Confluence Cloud and Advanced tables for Confluence (from last 4 years), management have decided to delete these products from our current Atlassian subscription.

Please advise if there are better ways to archive the content on both these products in an easier way, so we have complied with the record keeping aspect as a part of the project.

Thanking in advance,

Regards,

Nisha


Answers:
author: Aron Gombas _Midori_
body: If you don't need any sophisticated way and you don't have the plan to restore the content to Confluence, then you could just export your spaces to separate PDF files. It's easy, fast and the content can be shared and can be made searchable in any document management system.

Otherwise create a regular backup of your Confluence site.

comments: author: Nisha Nair
body: I did start downloading the Spaces as pdf files, as well as all other attachments that can be downloaded as pdf format. You are correct, we are mostly very unlikely to restore this content to Confluence - if in future we do re-enable the cloud subscription.

How can I do the regular back-up of confluence and we also have Advanced tables for conflunce that is going to be terminated as well.

Thanks, Nisha.


author: Nic Brough -Adaptavist-
body: The only real option is to get a full backup of the Cloud system, download it and put it on your external drive.

I would strongly recommend getting a copy of the current latest version of Confluence Server installation and keeping that with the backup. No need to install it, unless you want access to the "archive", just keep a copy handy in case you do need it.

comments: author: Nisha Nair
body: Would it still be able to searched within, as we are going to terminate subscription to the Confluence product? I shall try and do the above to see if it actually is feasible. Thank you for your suggestion.


author: Nic Brough -Adaptavist-
body: The export file you get from Cloud is a couple of xml files compressed into an archive. As XML, yes, it's theoretically possible to build something that would search and interpret, but it would probably be slow and quite a lot of work to build, and a far quicker thing to do would be create a Confluence (server or cloud and as temporary as you want) and import it.

A lot of people moving off Confluence actually never quite do - they create a new, or strip down their current Confluence to a $10 system with the permissions simplified down to "one archive user who can read everything, but no-one has write"

This is quite interesting for my squad at the moment - we're increasingly seeing really old Confluences that this has happened to being re-instated, and people coming to us to help get them back into a usable state, either on much more recent versions of Confluence or moved to Cloud.


Tags: cloud

confluence-cloud
Unable to create refresh token
Asked by Jaswanth Ravi:

unable to create refresh token. Unable to launch refresh token url


Answers:
author: Daniel Eads
body: Hi Jaswanth, welcome to the Community!

Could you provide a little more detail on what you're trying to do? I see your question is tagged for Confluence but am unsure of exactly the action you're trying to take and what's happening. Could you provide this information:

1. What API are you trying to use (Confluence REST API, Atlassian Connect API, etc) - the URL of the endpoint(s) you're trying to work on would be useful
2. What error is returned when you attempt to get the refresh token?

Thanks,  
Daniel \| Atlassian Support


Tags: cloud

confluence-cloud
Drop shadow CSS on header
Asked by Glen Lipka:

I'd like to add a drop shadow on the header (and maybe make it a little taller than it currently is. What CSS do I need on the style sheet?

Latest confluence server edition.

<br />

Thank you


Answers:
author: David at David Simpson Apps
body: Hello, if you mean the page title for a particular page, I would add the following to the **Global Stylesheet**:

```
html #title-text a {
  text-shadow: 2px 2px 5px rgba(128,128,128, .6);
}
```

Giving something like this (text shadow on the page title):

![Screenshot 2020-09-23 at 09.30.32.png](https://community.atlassian.com/t5/image/serverpage/image-id/111454iDE24D47C5C19D85C/image-dimensions/508x351?v=v2 "Screenshot 2020-09-23 at 09.30.32.png")

If you mean making the actual header, then something like this will help:

```
body.theme-default #header {
  position: fixed;  /* needed because otherwise, 
                       the header is behind the left menu bar, 
                       and the box-shadow won't be seen*/
  top: 0;           /* place at the top of the page */
  width: 100%;     
  z-index: 101;     /* put the header in fronnt of the left menu bar */

  box-shadow: 0 0 10px rgba(128,128,128,.8); /** the shadow */
}

body.theme-default .ia-splitter {
  margin-top: 41px; /* push the main content below the header */
}
```

If you need the header to be larger, add some height to **body.theme-default #header** and increase the **margin-top** on **body.theme-default .ia-splitter**.

**Aside:** Here's [another trick you can do to add header photos](https://davidsimpson.me/2014/12/02/customising-atlassian-confluence-with-header-photos/) on pages :)

comments: author: Glen Lipka
body: it was the latter, but thank you :)


Tags: confluence-server

css

server

stylesheet