youngmon/atlassian-qna huggingface dataset:
Confluence PDF Export: Add firsts page title to Export Title Page
Asked by Matthias Born:

Hi.

I'm configuring PDF Space Export for a custom export. Only a part of the space should be selected and exported.

Unfortunatly I'm not able to configure die Export Title Page how it should be:

Is there a way to write the page title from the first page (uppermost in my selected page tree) to the Export Title Page?

Regards!

Matthias

![image.png](/t5/image/serverpage/image-id/9026iC4C72939446F78EE/image-dimensions/320x330?v=v2 "image.png")


Answers:
author: GG
body: Hi Matze,

Have a look at Content Exporter for Confluence addon - you can easily export a whole page tree or any selected pages at once from the page itself - no need to use Space tools for that:

<https://marketplace.atlassian.com/plugins/com.metainf.confluence.plugin.pagetreeexporter.pagetree-word-exporter-plugin/cloud/overview>

<br />

![Content Exporter_screenshot.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/10936iC41BADF0A6EB08D4/image-dimensions/417x223?v=v2 "Content Exporter_screenshot.PNG")


author: Matthias Born
body: Now I see. Sorry, the problem is not how to build the title page or what elements to use.

The problem is to fill the elements (for example the suggested \<div class="fsTitle"\>) with dynamic content.

Your "Test" and the "Planning for Confluence 4.0" from the Documentation are static content.

I need it more dynamic, a variable, placeholder or sth. like that.

Because I don't know from where the user will start the export.

It can be any page with children. And I need the title from that page on the PDF Export Title Page  

Regards!

Matze


author: farwardin
body: With using class="fsTitle" in CSS like below:

\<div class="fsTitle"\>Test\</div\>


author: Matthias Born
body: Unfortunalty, my main question is still unanswered:

How can I write the title of the first exported page onto the DF Space Export Title Page.

Thanks!

Matze


author: farwardin
body: Hi,

you can do that according to:

<https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html#CustomizeExportstoPDF-TitlePage>

Using PDF Layout under PDF Space Export Title Page, but this is possible, if you have space admin rights.

BR


Tags: export

pdf

title
Remove Content Formatting Macro
Asked by Nitin Sinha:

I need to remove Content Formatting Macro from my Confluence Installation but each time i remove my pages show Unknown Macro \<table\>,\<div\>,\<style\>

Is there a way to get rid of Content Formatting Macro plugin and override these macros ?

I don't want to buy Content Formatting Macro


Answers:
author: Nitin Sinha
body: is there any system provided instance for \<table\>

comments: author: Thomas Schlegel
body: No, not as I know. The standard confluence table is no macro, but a regular HTML-table.


author: Thomas Schlegel
body: Hi Nitin,

no, you can't get rid of all the macros in all your pages at once. You have to edit them manually.

You can find your pages with this search term:

macroName:table\*

macroName:div\*

macroName:style\*

...
Confluence Server license to Cloud license migration
Asked by aruna615:

When migrating confluence server 25 user license to cloud subscription license, how does cost conversion happens?


Answers:
author: aruna615
body: Thanks [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454), understood :)


author: Nic Brough -Adaptavist-
body: Nothing happens. The server licence and cloud subscription are two totally separate things.

If your server licence was bought within the last 30 days, you can get a refund. If it is older than that, you can't. If it is two years old and you have not renewed, then it's completely irrelevant as it expired a year ago anyway.


author: aruna615
body: And my server license is pretty old though (more that 2 years)


author: aruna615
body: Thanks for the reply Nic!

What I need to know is, if I buy cloud service, what happened to my old server license that I already purchased for certain amount, are their any way to convert that amount when buying cloud subscription or do I need to forgot about that server license cost and I have to pay full amount for cloud license?


author: Nic Brough -Adaptavist-
body: There is no "conversion".

You buy the new Cloud service and move your people over on to it.

If you are within the first 30 days of your server licence, you can get a refund.


Tags: migration
Is deleted page history when is deleted a single page?
Asked by Miguel ?ngel Garc?a G?mez:

Hi all,

In [Confluence 6.5 documentation about Delete or Restore a Page](https://confluence.atlassian.com/doc/delete-or-restore-a-page-139429.html) it is said that:
> When you delete a page in Confluence, you're deleting its page history too.

But I've tried to delete a single page with history, from option "..." and then selecting "Delete". Then, I go to "Space Tools" -\> "Content tools" -\> "Trash" and select option "Restore" of the deleted page. After that, If I go to Page History of this restored page I could see the same Page History as before the page was deleted.

So I'm confused what documentation said.

Thank you.

Regards,

Miguel.


Answers:
author: Max Foerster - K15t
body: Hi Miguel,

it's like it's said in the documentation. You deleted a page (or moved it to the trash bin, it's not a real delete operation) and its page history as well. After a restore the page history will be restored as well as it belongs to the page. So if you want to delete specific versions of your page you have to do that from the page history overview. After purging the page from trash in Content Tools also your page history will be gone.

Best, Max

comments: author: Miguel ?ngel Garc?a G?mez
body: Thanks for your responde Max.

But I'm still a little bit confused, what the documentation is refererring is this sentence:
> When you delete a page in Confluence, you're deleting its page history too.

Is about "real" delete? I mean, as I mentioned before, and as you answered, if yo delete the page (sending it to the trash), and then restoring it, you can view the history in the same way were before the delete.


author: Max Foerster - K15t
body: Hi Miguel,

yes, I think it is. If you read further until the end you can find this: "Once purged, the page and all its versions and attached files will be gone for good. "

And I think it would be avery annoying behaviour to lose your page history after accidently deleting a page and then restoring it again.


author: Miguel ?ngel Garc?a G?mez
body: Thanks Max for clarifying that ;)
Confluence Mobile view draws a blank page
Asked by Prathewraj:

When we open our documentation on mobile, it is just drawing a blank page unless we choose the option "Request desktop site". Please advise how to get pages on Mobile View.

Ref: <http://www.fiorano.com/documentation/display/ESB1100/Fiorano+Documentation>


Answers:
author: Shannon S
body: Hi Prathewraj,

To verify, you're using the mobile version of your site and not an installed application from the App Store or Google, correct?

Does this occur for all pages in Confluence, or only specific ones?

What is the browser you are using on your device? Which model devices are you able to replicate this one.

Lastly, you might already be aware, but the version of 5.4.4 has reached [End of Life](https://confluence.atlassian.com/support/atlassian-support-end-of-life-policy-201851003.html) and is no longer supported, so you may want to think about upgrading soon.

Kind Regards,  
Shannon

comments: author: Prathewraj
body: Hi Shannon

Browser used in the mobile is Google Chrome, while the issue has been reported by most of our clients and my peers. For all pages, it occurs.

Please open this page - <http://www.fiorano.com/documentation/display/ESB1100/Fiorano+Documentation> from your end (on mobile) and let us know if the Mobile interface (not the Desktop view) is working fine for you.

Regards,  
Prathew


author: Shannon S
body: Unfortunately it doesn't appear your site is public so I won't be able to view the content (or blank page) from my mobile device.

I will set up a 5.4.4 instance from my workstation and see if I can replicate the problem from my end.

I'll update you soon!

Kind Regards,  
Shannon


author: Shannon S
body: Apologies, I'm not able to install 5.4.4 due to my current system, but I've been trying to trace back this issue for you to some cause.

To help in my search, can you let me know if other browsers have had the same issue, such as mobile Safari, or mobile Firefox?

What is the mobile device your users are replicating this in? Does it occur on both iPhone and Android, for example?

If you were to create a page that only contains text, and no macros, does it do the same?

Thank you!

Kind Regards,  
Shannon


author: Prathewraj
body: Hi Shannon,

Issue persists across browsers, phones and pages.

Regards,

Prathew


author: Shannon S
body: Prathew,

I was now able to load the link you sent me, and it appears your Confluence instance is using heavy customization or an add-on that controls the theme.

According to the Developer Tools, there's an add-on that is having difficulty loading parts of the page, which is probably what's causing the issue.

I would say try to disable the theme add-on and see if that resolves your issue. If so, you can report it to the add-on vendor as a bug.

Regards,

Shannon


Tags: mobile
How to delete all attachment linked to single page
Asked by Monika Bramhecha:

I have attached more than 500 attachments to single wiki page. Now I want to delete that page along with all attachments, how can I do it?


Answers:
author: Stephen Deutsch
body: I just did a test, and when you delete a page, all its attachments appear to be deleted as well. To be absolutely sure, you can go to the Trash (under Content Tools) and purge the page from the Trash.


author: Sreenivasaraju P
body: You delete the page. So the page and attachments will get deleted automatically.


author: Stephen Deutsch
body: Or if you are using Confluence Cloud you could use [Bulk Action Tools](https://marketplace.atlassian.com/plugins/bulk-action-tools/cloud/overview)


author: Alexey Matveev
body: You would need to install an aditional plugin. For example, [Confluence CLI](https://marketplace.atlassian.com/plugins/org.swift.confluence.cli/cloud/overview) or [Delete Attachments](https://marketplace.atlassian.com/plugins/de.kupper.it.atlassian.confluence.deleteAllAttachments/server/overview)

comments: author: Monika Bramhecha
body: Thanks, let me try.
Insert Confluence / Wiki Markdown via API
Asked by mattflannery:

Hi,  

I've seen [https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-you-post-markdown-using-confluences-rest-API/qaq-p/492056 however this](https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-you-post-markdown-using-confluences-rest-API/qaq-p/492056?however?this) is now 2 years old.   

I've developed something in Python to create a page in Confluence which works really well, but for simplicity here is an equivalent cURL example:  

curl -u user@domain.com.au:pass\\  
-X POST \\  
-H 'Content-Type: application/json' \\  
-d '{"type":"page","title":"new page","ancestors":\[{"id":1337}\],"space":{"key":"SPACEHERE"},"body":{"storage":{"value":"\|\|Some Example\|\|More Example\|\| ","representation":"storage"}}}' \\  
--url <https://name.atlassian.net/wiki/rest/api/content>  

However instead of rendering a table using the supplied markdown it creates text.  

I \*can\* perform the following manual steps to render the markdown as a table:  

1. Edit newly created page  
2. Insert Markdown   
3. Copy the markdown text and insert it  

These manual steps anger me deeply however.   

Am I doing something wrong or does Confluence API not support Markdown ?


Answers:
author: Vladimir Zvagolskiy
body: You need to use "representation":"wiki" instead of "representation":"storage".

Once replaced, you JSON worked just fine (using Confluence 5.10.4 and tested with RestAPI Browser addon).

comments: author: artscan
body: Thank you.


author: German Rincon
body: TYVM to both [@mattflannery](/t5/user/viewprofilepage/user-id/1018852) and [@Vladimir Zvagolskiy](/t5/user/viewprofilepage/user-id/430481) Question solved my need and solution worked like a charm


author: D T
body: I tried "representation":"wiki" , it worked but still formatting is not as expected. I see additional ------ and my html tags are visible but if same content is copied and pasted as markup it looks perfect.(I am using Confluence 7.13.7)

Any suggestions how to fix this formatting issue.

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


Tags: developer

markdown

rest-api
Preview links instead of downloading
Asked by Peter White:

We are trying to stop having automatic downloads created every time we open a document or pdf for sales staff. Is there a setting which toggles between preview and download for the links in Files or Pages?

Thanks


Answers:
author: Alexey Matveev
body: Hello,

Kindly read the following article. You will find the answer:

<https://confluence.atlassian.com/confkb/attachments-no-longer-open-in-browser-users-are-prompted-to-download-file-instead-779166001.html>

comments: author: Peter White
body: Thanks for help.
Where is the "import spaces" link in my cloud instance?
Asked by Skip Sailors:

I have a new Confluence Cloud, and an old Confluence server. I want to import spaces from the server to the cloud. (I managed to get my JIRA moved, now it's time for wikis.) I follow the instructions at [https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html.](https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html.?) Steps 1 and 2 seem to work fine. I have a file ready to import.

Step 3 is troublesome. I click Settings. I am instructed to pick 'Import Spaces' from under 'Administration' but I see no 'Administration' and no 'Import Spaces'. What am I missing?

TIA


Answers:
author: AnnWorley
body: The issue turned out to be the way Skip's browser was displaying the menus.

He was able to go directly to the space import URL:\<base_URL\>wiki/admin/importspace/importconfluencespace.action

comments: author: Skip Sailors
body: Specifically, there is a blue scroll on a blue panel. I couldn't see the difference between scroll and panel, sine they are the same color. So, it's not exactly a JIRA issue, but any advice on making my browser use different colors?


author: Kian Stack Mumo Systems
body: Hey Skip,   

If you can see settings, the "import spaces" is on the lower right hand side of the left hand toolbar. Just scroll all the way down!  

![Screen Shot 2017-11-07 at 10.20.52 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/9013i4725ABD6FCF63654/image-size/large?v=v2&px=999 "Screen Shot 2017-11-07 at 10.20.52 PM.png")

comments: author: Skip Sailors
body: No, it is not, on my instance.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/9014i42AE3B8C625798CC/image-size/large?v=v2&px=999 "image.png")Not on my instance


author: Kian Stack Mumo Systems
body: Can you see Macro Usage or Global permissions at all?


author: Skip Sailors
body: No


author: AnnWorley
body: [@Skip Sailors](/t5/user/viewprofilepage/user-id/700216), I checked your Cloud account and you seem to have the necessary permissions so I created a support ticket. You should receive an email from the support portal soon.


Tags: import

space
Broken links in related label macro
Asked by Deborah Cross:

Is anyone experiencing broken links in the related labels macro? I'm putting the macro in and specifying a particular label. It correctly displays the related labels on the page, but all the links are <https://oururl.atlassian.net/wiki$label.getUrlPath($spaceKey>)

And nothing happens when you select the link.

The same happens even when I don't try to specify the label to show related labels for.

We're on cloud if that makes a difference.


Answers:
author: AnnWorley
body: Hi Deborah,

Thanks for posting about this, so others who search for this issue can see what is up.

I tested on my instance and got exactly the behavior you describe. It turned out to be bug in Cloud: [Related labels macro generates broken links](https://jira.atlassian.com/browse/CONFCLOUD-57075)

At the moment, we do not have a workaround to make the macro work, so we would suggest adding yourself as a watcher on the bug ticket to receive an email notification once a fix has been implemented and released to Cloud instances. If you comment or vote for the bug you will be added as a watcher automatically. Please do comment on it, to emphasize your use case.

Regards,

Ann

comments: author: Deborah Cross
body: Thanks for letting me know Ann, I've added to the bug ticket.


author: Shawn Connelly
body: I just found this post. It's now three years after this bug was reported, and it's still a bug?

![Related Labels Macro.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/86250i250EB4B1B506E722/image-dimensions/460x289?v=v2 "Related Labels Macro.jpg")

comments: author: Deborah Cross
body: Yes it still seems to be an open bug: <https://jira.atlassian.com/browse/CONFCLOUD-57075?_ga=2.209686418.1847218488.1583790942-2023936700.1575865130>


author: Deborah Cross
body: So no-one huh?
Confluence REST API - getting a list of pages with a short excerpt or abstract for any page
Asked by cbertelli:

Hello,

the tile says almost all. I would like to include a short excerpt of the text when listing pages (children of one page).

If that is not possible without a recursion (to query any page in the list to get a part of the content -- say the first period), another possible way could be stocking metadata properties with a specially crafted test. Would this be accessible while reading the list?


Answers:
author: Aleksandr Zuevich
body: Hi, I think short excerpt is not possible. By the way look at metadata properties:

*/wiki/rest/api/content?expand=metadata.properties*

comments: author: cbertelli
body: Metadata.properties cannot provide a proper solution, you are right, but what about content.properties?

Could it be feasible to add a content property with an excerpt of the page (and maybe another with the URL of an image thumbnail) and retrieve it anytime I get a list of pages?


author: Aleksandr Zuevich
body: If you preliminarily set your own property to each page using *POST /rest/api/content/{pageId}* */property* e.g. {key: "**excerpt** ", value: "a short excerpt of the text"} then you can get it using *GET /wiki/rest/api/content?expand=metadata.properties.**excerpt***
Are there plans for Confluence to be KCS v6 verified?
Asked by Chris Rutledge:

Is Atlassian considering making Confluence a [KCS](http://www.thekcsacademy.net/kcs/) v6 [verified tool](http://www.thekcsacademy.net/tools/verified-tools/)?  

Many teams across my organziation have used Confluence for years (since v2). We're beginning the process of adopting KCS, and being able to use Confluence as our knowledge base platform would allow for a degree of familiarity and help with buy-in.

As it stands now though, there are a few key functions that are not present. Currently, the ability to link Confluence articles to work items within Microsoft System Center Service Manager) is a big obstacle.


Answers:
author: Ja?s Pingouroux
body: I'd like to top this topic up.

I've watched several videos on youtube where Atlassian's stuff do great presentations on the KCS methodology, yet Confluence is far from being KCS-friendly. Most of what is needed for KCS can be worked around, but with a lot of pain.

Here is a sample of what would be needed in order to be more KCS compliant:

- KCS roles (Create new, not validated articles / Contribute to articles / Validate \& Publish articles)

- Article status (WIP, not validated, validated, archived)

- Partial article visibility restriction

- Native stats on reuse vs new (not depending on third party plugin such as Analytics for Confluence)


Tags: knowledge-base
Adding dynnamic page URL to page properties
Asked by Brian Botelho:

I created a confluence template page that'll be copied for other teams' specific usage and would like to add a URL property to the page properties.

That way the page property report query will report the URLs for all spawned/duplicated page(s).

I'll also be including this in a Scroll PDF export template but I'll take it one step at a time :\^}


Answers:
author: Vero Rivas
body: Hi [@Brian Botelho](/t5/user/viewprofilepage/user-id/1138175)

Look at this posts, maybe can help you

<https://confluence.atlassian.com/doc/page-properties-macro-184550024.html>

<https://support.atlassian.com/confluence-cloud/docs/insert-the-page-properties-report-macro/>

Cheers


Tags: page-property
Restoring a page
Asked by Heidi Harting-Rex:

I have Admin rights, yet cannot follow these instructions for restoring a deleted page:

<https://confluence.atlassian.com/confcloud/delete-restore-or-purge-a-page-724764873.html>

1. Choose **Space tools** in the sidebar (or the ![](https://confluence.atlassian.com/download/thumbnails/899430633/New%20cog.png?version=1&modificationDate=1493862306644&api=v2)), then choose **Content tools (this works)**
2. Choose **Content Tools** \> **Trash (cannot find)**

**I see these tabs:**

**Reorder Pages**

**Orphaned Pages**

**Undefined Pages**

**Attachments**

**Export**

**RSS Feed**

1. Choose **Restore**for the page you wish to restore

I am not seeing the Trash option. Can anyone help me, please? Thanks!


Answers:
author: AnnWorley
body: The trash is there on my Cloud test instance:

![Screen Shot 2017-11-07 at 12.14.23 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/8996iAAEF3994B3D8ED81/image-size/large?v=v2&px=999 "Screen Shot 2017-11-07 at 12.14.23 PM.png")

I know you said you have admin permissions, could you post a screen shot of the space permissions so we can see if there is anything unusual?

comments: author: Heidi Harting-Rex
body: HI. Mine looks like this:

![Screen Shot 2017-11-08 at 5.46.01 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/9069i908A3DC110B2F5A0/image-size/large?v=v2&px=999 "Screen Shot 2017-11-08 at 5.46.01 PM.png")


author: AnnWorley
body: It doesn't look like you have admin permissions on the space. If you have admin permissions for the instance you may add yourself to the space permissions at *<https://your_URL.atlassian.net/wiki/admin/permissions/viewdefaultspacepermissions.action>* under the**Individual Spaces** section.


author: Alexey Matveev
body: Hello, are you on cloud or server version? This option is for cloud version

comments: author: Heidi Harting-Rex
body: Cloud version. Thank you
Does iText vulnerability affect Confluence (CVE-2017-9096)
Asked by mjb2kmn:

I am having difficulty finding what version of iText library is used in Confluence and even which versions of iText are vulnerable is not very clear.

Does anyone have more information on whether or not Confluence is affected by the vulnerability? Or where I can see what version of iText a particular version of Confluence is using?

[Security Advisory](https://www.compass-security.com/fileadmin/Datein/Research/Advisories/CSNC-2017-017_itext_xml_external_entity_attack.txt)


Answers:
author: Nic Brough -Adaptavist-
body: I suspect Confluence is using a version bundled inside some of it's internal add-ons, so the only way to know would be to read the code or un-bundle the add-ons and look for it.

However, my Confluence does refer to it, and I suspect is therefore using 2.1.7

confluence# find . -type f \| grep -i itext  
./licenses/com.lowagie--itext--2.1.7.txt

comments: author: mjb2kmn
body: That's about the same thing I found, I was hoping to be able to find it for other versions without searching each one.

I guess I'll just have to trust that Atlassian will be on top of this and notify customers if there is a vulnerability.


author: Nic Brough -Adaptavist-
body: They do actively check this stuff and alert us. Solution Partners usually get an earlier mention if they are starting to think they might be affected.