youngmon/atlassian-qna huggingface dataset:
Including Custom Font for PPT/PDF in Confluence
Asked by Avinash:

Hi,

We have a custom font for PDF and PPT. After uploading to Confluence the font changes and few letters are not shown properly. Is there a way to add the custom font in Confluence ?

Thanks


Answers:
author: Shannon S
body: Hi Avinash,

You can certainly upload a custom font to Confluence to use in a PDF. If you're on Confluence Server, you'll want to follow this:

* [Create a PDF in Another Language](https://confluence.atlassian.com/doc/create-a-pdf-in-another-language-175473.html)

If you're on Cloud please contact support to provide your .ttc or .ttf file.

Please note you can only upload one font, and if you attempt to upload a 2nd one it will replace the first. So if you need to use more than one style (i.e. bold, italics, regular) then you would be better off uploading the font family as a .ttc file.

In regards to the PPT I believe it uses whatever font you used when creating the PPT. It's not generated by Confluence. Are you having any issues with that? Can you show me an example?

Kind Regards,  
Shannon


Tags: confluence-administration

font
JIRA/Confluence cloud addon security
Asked by Greg Hubbard:

I am assessing an addon to our JIRA/Confluence cloud instance. In the marketplace under 'Integration Details' There is the following statement:

'xxxxx for JIRA integrates with your Atlassian product. This remote service can:

* Administer the host application
* Administer Confluence spaces
* Administer JIRA projects
* Delete data from the host application
* Write data to the host application
* Read data from the host application'

That would appear to be giving full access to all of our Confluence and JIRA data to a third party.

However, looking at an existing plugin that we have installed, it has added a system user and has placed that system user in the jira_software_users group.

And I correct that a plugin can be limited in the data it can access in our instance by securing spaces and projects to only allow access to users with additional groups above the basic jira_software_users group?

Or do plugins get access to all our data?


Answers:
author: Shannon S
body: Hello Greg,

The modification you mention would, in theory, work, however, it could break many add-ons if they require administrative level access.

My recommendation would be to reach out to the vendor in question regarding which add-ons you're most concerned about.

Let me know if you have any trouble determining that!

Kind Regards,  
Shannon


Tags: confluence-cloud

jira-cloud
How can I select only parts of a space (or only certain headings on a page) when I export to PDF?
Asked by Beth Thomerson:

Years ago, Confluence allowed us to select exactly what we wanted to export to PDF, I believe on a tag basis. For example, if I created an Installation Guide with the following headings:

1. Plan your installation
2. Review prerequisites
3. Back up information and reports
4. Notify users of installation schedule
5. Install the product

If I only wanted the information in sections 3 and 4 when exporting to PDF, I used to be able to do that. Is there a macro that I can run, or something I've overlooked? (Appreciate your understanding...I'm coming back to Confluence after being "away" for about 4 years, so I'm rusty!). Thanks for your help!


Answers:
author: Nils Bier _K15t_
body: Hi Beth,

Our app Scroll PDF Exporter, mentioned by Mikael above, allows you to wrap content into a specific macro to either [only display in Confluence](https://help.k15t.com/scroll-pdf-exporter/latest/ignore-content-in-exports-121941306.html), or only [display the content in the exported PDF](https://help.k15t.com/scroll-pdf-exporter/latest/ignore-content-in-confluence-but-include-it-in-exports-121941322.html).

Of course this would require to change your content pages, and wrap the content into either one of those macros accordingly, so I'm not sure if this would really help you here.

Anyways, the Scroll PDF Exporter is available in the Atlassian Marketplace, so feel free to test it out using a free evaluation license, if it fits your requirements.

Best,  
Nils


author: Mikael Sandberg
body: Have a look at this, there is a NoPrint macro you can add to hide content. <https://confluence.atlassian.com/doc/advanced-pdf-export-customizations-198806890.html>

comments: author: Beth Thomerson
body: Hi Mikael - thanks so much for the quick answer! This is cool, but isn't quite what I was hoping to **re**discover. There used to be a way to select exactly what information you wanted to export to PDF; after clicking Export to PDF, you would see all the headings on the page (and its children, if applicable), with checkboxes to the left of each. You can select all or just select the ones you wanted. The result was like a custom PDF.

The use case is to enable users/consumers to be able to create their own doc without anyone having to play around with source code or CSS for every instance.

Maybe the functionality I remember has been disabled? That's circa 2012...

Thanks again!


author: Mikael Sandberg
body: As far a I know that function has been disabled, your options are to either use the NoPrint macro, create multiple [PDF stylesheet templates](https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html) or use an app like [Scroll PDF](https://marketplace.atlassian.com/plugins/com.k15t.scroll.scroll-pdf/server/overview) to generate PDF templates.


author: Beth Thomerson
body: Bummer. That was a great feature. Thanks for the info and for your help!


author: Amit Durgapal
body: I see that option available on Confluence 6.4.1. Export \> PDF \> Custom \> (here you select the topics).


Tags: pdf
How do I get a list of all users and their profile details
Asked by Matthew Beda:

In case any one wants to know ho to do this. I use a group parameter to narrow down the list.

```
## @param Group:title=Group|type=string|required=false|desc=Group#set ( $containerManagerClass = $content.class.forName('com.atlassian.spring.container.ContainerManager'))#set ( $getInstanceMethod = $containerManagerClass.getDeclaredMethod('getInstance',null))#set ( $containerManager = $getInstanceMethod.invoke(null,null))#set ( $containerContext = $containerManager.containerContext)#set ( $userDetailsManager = $containerContext.getComponent('userDetailsManager'))#set ( $personalInformationManager = $containerContext.getComponent('personalInformationManager'))#set ( $wikiStyleRenderer = $containerContext.getComponent('wikiStyleRenderer'))#set ( $users = $userAccessor.getMembers($userAccessor.getGroup($paramGroup)))<table>	<tr>		<th></th>		<th>Users</th>		<th>Email</th>		<th>Phone</th>		<th>Location</th>		<th>Role</th>		<th>Department</th>		<th>About User</th>	</tr>#foreach ($user in $users)	#set ( $userD = $userAccessor.getUserByName($user.name))	#set ( $pi = $personalInformationManager.getPersonalInformation($user))	#set ( $renderedAboutMe = $wikiStyleRenderer.convertWikiToXHtml($pi.toPageContext(), $pi.getBodyAsString()))	#set ( $phone = $userDetailsManager.getStringProperty($userD, "phone"))	#set ( $location = $userDetailsManager.getStringProperty($userD, 'location'))	#set ( $position = $userDetailsManager.getStringProperty($userD, 'position'))	#set ( $department = $userDetailsManager.getStringProperty($userD, 'department'))	#set ( $profile_pic = $userAccessor.getUserProfilePicture($userD))	#set ( $pic_src=$profile_pic.getDownloadPath())	<tr>		<td>			<a class="confluence-userlink url fn" data-username="$user.name" href="    /display/~$user.name">				<img style="width:40px; height:auto;" src="$pic_src" alt="$usr_nm" border="0" />			</a><br/>		</td>		<td>Name: $user.fullName <br/>		    Username: $user.name<br/>		    <a style="font-size:12px;" href="$action.getGlobalSettings().getBaseUrl()/admin/users/edituser.action?username=$user.name" title="Edit User Details">Edit Details</a>		</td>		<td>$user.email</td>		<td>$phone</td>		<td>$location</td>		<td>$position</td>		<td>$department</td>		<td>    			$renderedAboutMe		</td>	</tr>
```

```
    ## Clears out latent Value at end of loop to stop value from being set on successive items if empty for user	#set ( $renderedAboutMe = "")	#set ( $phone = "" )	#set ( $location = "")	#set ( $position = "")	#set ( $department = "")#end</table>
```


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Matthew Beda](/t5/user/viewprofilepage/user-id/501361) ,

this [code](https://gist.github.com/dvdsmpsn/11226938) could help you on that.

Fabio


Tags: developer

user

user-macro
Variable Timeline
Asked by kevinpudlo:

Hello!

I'm fairly new to Confluence and JIRA, and loving them!

I've done a lot of searching for timelines and variables and have yet to find an answer, so here goes my question.

What I'm looking to do is create a timeline (preferred) or table that lists a group of events (date and title) that will be created from a template. This timeline would be automatically updated anytime this event template is used, and allow the creative team to see updates without having to sit there and manually update the timeline every time they add or update an event.

Any guidance/support would be greatly appreciated!


Answers:
author: Vero Rivas
body: Hi [@kevinpudlo](/t5/user/viewprofilepage/user-id/1151979)

Look at this posts, maybe can help you

<https://www.atlassian.com/blog/confluence/roadmap-planner-macro>

<https://confluence.atlassian.com/doc/create-a-template-296093779.html#CreateaTemplate-Templatevariables>

<https://community.atlassian.com/t5/Confluence-questions/How-to-create-small-scale-timelines-in-confluence/qaq-p/713198>

<https://support.atlassian.com/migration/docs/determine-your-migration-timeline/>

Cheers


Tags: timeline

variable
Issues during database migration
Asked by Heather Selbe:

Following figuring out a production Confluence (v 6.2) installation at my organization was still using the embedded database, I went to attempt to migrate the database to PostgreSQL 9.3. I was following the instructions in "Migrating to Another Database", but during the Upload and Restore steps I keep running into an issue where when I attempt to load the file, either through the web from my computer or with the file placed in the restore folder, I see an error that the session timed out. When I attempt to reload or re-navigate to the Restore from Backup page, I get an Set Up Step Error. The file has correct permissions, and was generated by the instance using the steps in "Manually Backing Up the Site" Directions, but no matter the means, I get the same errors.

As well, when I skip this set up and set up an admin user, I am unable to log into it. This apparently happened on the main install of confluence, and is persisting with the new install I have tried for the database migration. This issue also occurs even if I change the admin username to something other than 'admin'. I have ensured the password was entered the same both in the installation steps and the login, but I continue to not be able to authenticate.

Any help on these issues will be appreciated so I can get this system moved from the embedded database to something more stable and secure.


Answers:
author: Brant Schroeder
body: Heather,

How big is the back up file? If it is really large you can run into restore issues. Are you setting up a new instance on a new server with the PostgresSQL or are you trying to restore over your current version?

comments: author: Heather Selbe
body: The xml export is only 80M, which seems to be well under the pain threshold noted in the document I was following.

In this case I am doing an in place install, but I may see if I can get resources to stand up a new instance.

The only other issue I worry I may be hitting is the box only has about 4G free with the existing install of Confluence on the box (and as such, I've not been able to backup the Confluence home dir). I have been careful to rename the home and install dirs (using /opt/atlassian2 and /var/atlassian2 for the new install)


author: Brant Schroeder
body: Heather,

I would suggest doing a clean install and then a restore of the back up on a new server. It will be cleaner and will take out any issues that might occur with you running two instances of confluence on the same box. I have done this multiple times with restores larger than 80mb and never had an issue. One thing to remember is you will need to install the same version of confluence as the backup instance.


author: Heather Selbe
body: Thanks for the information. I'll talk to my administration and see if I can get a new box stood up for this to make this easier, though I had a feeling it might come to this. Thanks you for the help!
Can't Export the Space, Throwing an error
Asked by Divya Dangeti:

Dear Team,

We are exporting the Space from version 5.0.3 confluence, but we are getting an error

"There was an error in the export. Please check your log files. :Couldn't backup database data."

Is there any possibility like we can export the spaces from backend(Data base)?

Request you to give us a solution.

Thanks,

Divya.


Answers:
author: Nic Brough -Adaptavist-
body: There is no database export of spaces. You can get a backup from it, but not an export.

You need to fix the error in the standard export really. What does the log say the problem is?

comments: author: Divya Dangeti
body: Hi Nic,

If we take a backup of the spaces from the Database, can we import it in the confluence?

Thanks,

Divya.


author: Nic Brough -Adaptavist-
body: A backup is only suitable for recreating the system you backed up. You can not "import" from it, other than to recreate everything (and destroy the data in the target database)
Tree browser in Confluence 6.2.4
Asked by Tom Wolff (Admin):

I just upgraded to Confluence 6.2.4 and identfied an issue that doesn't seem to have an obvious fix. I am running Refined Theme 5.1.11, but I don't have any reason to think that this issue is theme related.

The error is on the Pages page <https://wiki.piug.org/collector/pages.action?key=PIUG>. The page has two columns:

* Pages -- Recently Updated
* Tree browser -- Unknown macro: {pagetree}

What is the tree browser and why is it trying to use an unkwown macro?

Does this make sense? Do I need to include screenshots or other information?

Thanks in advance for help.

Tom


Answers:
author: AnnWorley
body: Hi Tom,

Thanks for the link - I was able to view the page with the broken pagetree macro.

**Findings**

There is a RefinedWiki [Page Tree macro](https://docs.refinedwiki.com/display/rwot/Page+Tree) and a [Page Tree](https://confluence.atlassian.com/doc/page-tree-macro-163414255.html) macro native to Confluence. As for what it does:
> The Page Tree macro displays a dynamic, hierarchical list of pages starting from a specified parent (root) page. It can act as a table of contents or a list of related topics. When viewing the page tree, your reader can click a link to view the relevant page. The page's current position is highlighted in the page tree.

The RefinedWiki one is called *rw-pagetree*so I think the one on your page is the native one. I tested on my Confluence instance and found that I was able to add either one, so RefinedWiki doesn't seem to disable the native macro.

**Recommendation**

The most common cause of "unknown macro" being displayed in Confluence is a disabled plugin.

Please go to **Confluence Admin\>Add-ons** and change the filter from user installed to all **add-ons** . Find **Page Tree Plugin** in the list, expand it, and make sure all the modules are enabled.

I look forward to hearing how it goes.

Thanks,

Ann

comments: author: Tom Wolff (Admin)
body: Ann. Y

It helps that it was on the open-access part of our wiki. I'm glad you followed the link and figured it out.

You were exactly correct.

Two of 10 Page Tree Plugin modules were disabled. I enabled both and solved the problem.

pagetree (pagetree) and pagetree (pagetree-xhtml)

Thanks so much for the explanation and recommendation on whta to look for in the future,

Tom
Upgrading Confluence 5.9 to 6.0 - questions on servers
Asked by Gerald MURIEL:

We have an existing instance of ver. 5.9.14 with 1000+ users hosted in 1 server.

How would be the setup now for ver 6.x with the introduction of collaborative editing? Do we really need to use "Confluence Data Center" for an additional license fee?


Answers:
author: Nic Brough -Adaptavist-
body: You don't need to go to data centre for this.

But I would recommend checking the server hardware is up to it - you'll want to allow Synchrony a couple of Gb memory on top of what Confluence is using already.

comments: author: Gerald MURIEL
body: Thanks for the heads up.

From your experience, do you think we can easily upgrade to 6.4.3 considering your reply above?
Recurring Crash of Confluence
Asked by Armin H?neburg:

Our Confluence setup was stable during the first few weeks but maybe a month ago it started to crash. At first it was once per week but now it is every second day. According to the logs, there are some job runners missing but I don't know whether they can cause confluence to crash. These include (not necessarily complete):

* amqJobRunner
* 24ec482d-9c69-43bd-bcdf-13e619147a0c-CrowdDirectorySynchroniserJobRunner
* confluence.extra.webdav:confluenceDavSessionInvalidator
* confluence.extra.webdav:contentJobQueueExecutor
* com.atlassian.confluence.plugins.confluence-daily-summary-email:summaryEmail

Last 2,000 lines of log (includes restart of confluence): [https://pastebin.com/ndzveErR](https://pastebin.com/ndzveErR "Pastebin of Log")

The crash occurred between 00:16:06,201 (last log entrance) and 9:50 (someone messaged me that confluence is not reachable)

Given the regularity of the log entrances I guess that 00:16:06,201 or some error in its vicinity was responsible for the crash.


Answers:
author: AnnWorley
body: Hi Armin,

<br />

Thanks for the log and detailed description.

**Theory**

My theory is that you may have migrated from Cloud, and the automatic backup job was migrated from Cloud but is not compatible with the server instance. The automatic backup was the last job to fail before the restart:
> 2017-09-19 00:16:06,201 ERROR \[Caesium-1-1\] \[scheduler.caesium.impl.CaesiumSchedulerService\] executeClusteredJobWithRecoveryGuard Unhandled exception during the attempt to execute job 'amq-ProgressAwareTaskService:com.atlassian.ondemand.backupmanager.longrunning.SiteExportTaskRunner9118ced6-123a-4d02-ac92-677382efe6c8'; will attempt recovery in 60 seconds

**Recommendations**

* To eliminate the "executeClusteredJobWithRecoveryGuard Unhandled exception" errors please see the workaround on [There are many errors "executeClusteredJobWithRecoveryGuard Unhandled exception" in atlassian-confluence.log after migrating from Cloud to Server.](https://jira.atlassian.com/browse/CONFSERVER-51661) The workaround mentions backing up the database first, I would like to emphasize that step, too.
* Going forward, I suggest that you disable the automatic XML backups and implement a production backup strategy as described in [Production Backup Strategy](https://confluence.atlassian.com/conf61/production-backup-strategy-877188455.html)

I look forward to hearing how it goes.

Thanks,

Ann

comments: author: Armin H?neburg
body: Thank you for your help.

It seems to have worked (although automatic backups were already disabled...). While the log was cluttered with many exceptions, none were logged during the past 20 minutes. I hope this DB cleanup helps...

Thanks again.


author: AnnWorley
body: I am glad Confluence appears to be stable now.

If there is another crash we can dig more deeply into the logs and configuration files, so please keep us posted.


author: Armin H?neburg
body: Ok, thanks again for your help. It is stable now, there are no more log messages about missing job runners and it didn't crash.
Confluence Page links changes after some time
Asked by Dean van Rooyen:

Hi There,

This has happened to me more than once where I send a client a link to one of my product pages and after about 2 weeks, they come back to me saying the link is inactive.

I then have to copy a new link to the page.

Any idea why this happens and how to stop it?


Answers:
author: James Dellow
body: If you goto the Page Information, there is "Tiny Link" that looks something like https://yourdomain/x/AwA-Ag

comments: author: Dean van Rooyen
body: I get to the link but within the next 2 weeks if i try access the link, it says Page not found, but it is there


author: James Dellow
body: That's not normal Confluence behaviour - can you post an example of a link you shared that is now broken and the current correct URL of the page?


Tags: link

page
Confluence REST API not working
Asked by lykaibernardo:

Hello,

We are having issue when accessing our Confluence rest api via curl command using basic authentication. The rest api in Confluence are correctly configured but when accessing the rest api, we are getting 401 UNAUTHORIZED AUTHENTICATION_FAILED. We are using SSO and the user that we are currently using to access the rest api is an internal directory user (user manually created in Confluence).  

Below are the curl commands we've tried:

```
* curl -u <username>:<password> -X GET -H "Content-Type: application/json" "https://<confluenceurl>/wiki/rest/api/content/"

* curl -X GET -H "Content-Type: application/json" -H "Authorization: Basic <token>" "https://<confluenceurl>/wiki/rest/api/content?os_authType=basic"
 (https://developer.atlassian.com/docs/atlassian-platform-common-components/rest-api-development/rest-and-os_authtype)

* curl commands mentioned in https://www.smartics.eu/confluence/display/PDAC1/REST+Login+to+Confluence+with+cURL (using cookies and config file)
```

We are using Confluence v5.8.5 and Confluence http authenticator v2.6.1 (<https://github.com/chauth/confluence_http_authenticator>). By the way, the confluence api urls are accessible via browser and we are getting the json result.

Is anyone encountered the same issue and know the resolution? Is this a bug in Confluence with using http authenticator?


Answers:
author: Prem Sree
body: Same issue encountered. Any fix available now?

Many thanks,

Prem Sree

comments: author: Pavel Potcheptsov
body: Provide output with curl -vvv option.


author: Prem Sree
body: sending using POSTMAN.

Status as "200 ok" but not authenticating as expected, even accepts incorrect credentials.

URL used: <http://servername.domain.com:8080/confluence/rest/plugins/1.0/>

Response Header:

Age ?0

Connection ?keep-alive

Content-Length ?0

Date ?Wed, 18 Apr 2018 12:21:53 GMT

Server ?Apache-Coyote/1.1

Via ?1.1 localhost.localdomain

X-ASEN ?SEN-XXXXX

Thanks,


author: Supreet Yadav
body: We are also getting

HTTP/1.1 401 Unauthorized while using rest api to get/delete the pages in confluence.

Any fox for this ?

curl -vvv -u uname: pwd-X GET '[https://domain.com/rest/api/content/49721292](https://ssewiki.apple.com/rest/api/content/49721292)'

HTTP/1.1 401 Unauthorized

\< Server: AppleHttpServer/e81851ddfbfa

\< Date: Mon, 06 Jul 2020 15:12:32 GMT

\< Content-Type: text/html;charset=utf-8

\< Content-Length: 1116

\< Connection: keep-alive

\< Content-Language: en

Thanks,

Supreet


Tags: authentication

rest-api
Copy and Paste table cell contents
Asked by Kate Hanna:

I have tables in Confluence where I am enumerating fields, where the data comes from, if they're required or optional, if they're calculated or user entered or from a specific integration and so on.

I have many fields where the answer to these questions is the same, for example, Required Field = YES. I simply want to copy "Yes" into many fields at once, using shift-click or ctrl-click to copy the field in.

Yes, I know I can do this in Excel, but the point is not to be working in Excel - we're trying to collaborate here!

Anyone have a trick or tip for how to do this, or can you point me at an issue request if not? Thanks.


Answers:
author: Laura Campbell _Seibert Media_
body: There are a couple apps that provide more functionality than the basic Confluence tables, but since they are meant for Confluence, allow for collaboration.

I work for Elements, which makes [Elements Spreadsheet](https://marketplace.atlassian.com/apps/1212486/), which might meet your needs.