youngmon/atlassian-qna huggingface dataset:
Getting an confluence page's version through specific API call.
Asked by Sabin Linden:

While trying to figure out how to grab the version of a Confluence page via the API I came across another answer on this board that suggested the following kind of page to check for the version.

```
http://localhost:1990/confluence/rest/api/content/2064387?expand=version
```

Sure enough, using this format I was able to grab the version of a specific page. However, I noticed something rather odd if I try to get this through other means.

See, I'm trying to get the ID and version of a page via knowing the space and title of the page, via a call like this:

```
http://localhost:1990/confluence/rest/api/content?title=pageTitle&spaceKey=SPACEKEY
```

Which returns a json value that has the page ID, like I need, but version comes up... completely blank! Nowhere to be found. Is there a good reason for this or is it a bug? As is, I have to basically call the API twice to get all the information I need for the script I'm writing and that seems kinda silly.


Answers:
author: Alexey Matveev
body: Hello, you need to add expand=history parameter

```
http://localhost:1990/confluence/rest/api/content?title=pageTitle&spaceKey=SPACEKEY&expand=history
```

comments: author: Sabin Linden
body: Tried that but version is still blank, as are the previousVersion and nextVersion variables in the history dict.


author: Sabin Linden
body: Ah, however, if I add \&expand=version to the line, it does expand version out which includes the "number" variable containing what I need! That's fix enough for me. Thanks for leading me in the right direction!


Tags: api

developer
Is it somehow possible to add/link an external source as a knowledge base to JIRA Service Desk?
Asked by Markus Raab:

JIRA Service Desk Server:

I know that I can link a Confluence space to JIRA Service Desk to let the user look up solutions from the JIRA Service Desk Help Center.

Furthermore an agent can loo up solutions while handling with open issues.

However, I am very much interested on linking (additionally) another external source to JIRA Service Desk, e.g., something simple as nicely formatted HTML pages living on of our servers.

I did not see anything like that out of the box? Are there any add-ons or any opportunities to do something like that?


Answers:
author: Davin Studer
body: You could create a custom field that is a URL field type and add it to the issue type screen.

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

comments: author: Markus Raab
body: Hi Davin,

sorry - obviously I missed your answer. I think what you suggested allows to add a URL to an issue.

What I need is to connect a Knowledge Base to JIRA Service Desk. Not all of this knowledge lives in Confluence, thus, I want to additionally connect external knowledge sources.

Do you or someone else has some suggestions for that?


author: Nic Brough -Adaptavist-
body: Service Desk only supports using a Confluence Space as a knowledge base.

You might be able to write add-ons that mimic similar capabilities with other systems, but I've not seen anyone do that yet.


Tags: jira-service-desk

knowledge-base
Deleted Attachments Returning in Confluence Search Results
Asked by CV Services Group:

Hello,

There has been no activity from support on <https://jira.atlassian.com/browse/CONFSERVER-40833>.

This is affecting out client as well as several others.


Answers:
author: Shannon S
body: Hello,

I'm working to get an update on that issue for everyone soon, so please continue to watch the case so that you will be updated in case there are any updates from our development team.

Kind Regards,  
Shannon

comments: author: CV Services Group
body: Hi Shannon,

Any update on this? Its been 2 weeks now since your last update.


author: Shannon S
body: Thank you for the reminder. I was awaiting a response from the development team and I see now there is an update from a product manager on the case. They expect to address this in the very near future.

Please feel free to reply on the bug if you have any questions about it.

Kind Regards,

Shannon
How do you disable the autocomplete macros collectively, in "The Editor"?
Asked by Coline Macorol:

I'm trying to reduce users reliance on macros, per customer request. I need them to use macros only through the "+" button on the editor toolbar.

So far, the following jQuery code has not worked, and I've followed all of Confluence tutorials on their Developers' guide.

```
AJS.toInit(function(){
 AJS.$("#d").keypress(function (e) {
 
 var charTyped = String.fromCharCode(e.which);
 if (charTyped == "{" || charTyped == "!") {
 
 e.preventDefault();

 var sel = window.getSelection();
 if (sel.rangeCount > 0) {
 
 var range = sel.getRangeAt(0);
 range.deleteContents();

 
 var text = (charTyped == ")") ? "{}" : "()";
 var textNode = document.createTextNode(text);
 range.insertNode(textNode);

 
 range.setStart(textNode, 1);
 range.setEnd(textNode, 1);
 sel.removeAllRanges();
 sel.addRange(range);
 }
 }


 });
 });
```

It works on JSbin, yet there is no result on Confluence. Is there a file that overrides this type of attempts that are trying to affect the autocomplete functionality?

Is there a way I can modify a local js file to disable this functionality for all users?


Answers:
author: AnnWorley
body: We don't recommend altering the behavior of the editor using JQuery. It could lead to unpredictable behavior in the editor.

Each user's profile has an autocomplete setting that can be disabled: [Enabling and disabling autocomplete](https://confluence.atlassian.com/doc/autocomplete-for-links-files-macros-and-mentions-249858190.html#Autocompleteforlinks,files,macrosandmentions-Enablinganddisablingautocomplete). I tested and when I disabled that setting the macro menu did not come up when I typed**{**into the editor.

comments: author: Coline Macorol
body: You are right [@AnnWorley](/t5/user/viewprofilepage/user-id/502040), disabling the autocomplete setting works, yet you have to flip this switch, on each user's account manually. This is not efficient from an Admin perspective.

Likewise, the "@", "//", and other keyboard shortcuts are disabled when you turn the autocomplete setting off. We only need to disable the "{" and "!" keyboard shortcuts collectively for all of our Confluence users.


Tags: ajs

auto-complete

jql

macro

user-macro
ToC macro not creating anchor links for attached doc files displayed with Word macro
Asked by David:

The ToC Macro is creating a list using the "Heading 1" in each of several simple word docs attached to the confluence page and being displayed in the page using several instances of the Work Macro. However each ToC link created just ends with an "#" and therefore, when clicked, does not navigate down the page to the location of the content. Does the ToC macro support hyperlinks to several Word Macros displayed on the Confluence page?


Answers:
author: Davin Studer
body: Yeah, the TOC macro is mainly meant for real wiki pages. While it will create a TOC of the Word macro it doesn't link of the links correctly. I see that same behavior on my systems.
Why does the name of a link to an in-page anchor change once I've saved it?
Asked by Sarah:

I've created anchors and links to those anchors on the same page in Confluence. I enter the link name in the Edit link\>Advanced box, select Save, then test the link on the published page. When the link name is relatively short, the link works. If the link name is a little longer, it doesn't, so I go into edit mode on the page and go back to Edit link. For some reason, the link name has changed, which is why the link doesn't work on the published page. Here's an example:

I typed in #Constraints, saved, tested, went back in and my link name has changed to #Constrai

I made sure this wasn't a typo on my part (it isn't). What is happening?


Answers:
author: Jack Brickey
body: [@Sarah](/t5/user/viewprofilepage/user-id/1160212) , I know this is an old post but I am working on cleaning up some of these. I was trying to reproduce this just now and was unsuccessful. I am on cloud and unsure if that is your platform or not. Are you still able to reproduce this problem?


Tags: anchor

link
How do I convert a Blank Page into a How-To Article?
Asked by Ryan Weiss:

I have a bunch of Confluence articles that were written out on a Blank Page, but we'd like to convert them to How-To Articles. Is there a way to quickly top this rather than having to cut and paste all the content to a new How-To Article?


Answers:
author: Brian Jones
body: I think it bases this off of a label. Check what labels are on the How-To Articles. And apply the same to your other pages.


Tags: conversion
Why is one of my users getting a "Cannot find file" error when he tries to open a file link?
Asked by Shannon Engler:

One of my users specifically gets errors when he tries to open a link on a page, but only on his computer. When I sign in to his account on my computer, it opens the file just fine. His computer tells him that the file cannot be found and then shows the link that the file should be located at where the document would normally show on the screen. He has permissions to view the page and the file lists, so I'm not sure what's going on at this point.


Answers:
author: Christo Mastoroudes _Adaptavist_
body: A few things you could try:

1. Ensure the user's browser is the newest version.

2. Try a different browser.


author: Shannon S
body: Hi there,

Can you show us an example of the message he is getting in a screenshot? What browser is he replicating this in? Does it happen for more than one browser?

Kind Regards,  
Shannon


Tags: confluence-cloud

error

file
How do I access the default theme in Confluence?
Asked by Evan Miller:

I'd like to modify some of the default theme settings such as font style and size. From what I can see, this is done by modifying the theme. Documentation says download a desired theme from the Marketplace, but I only see two themes there, and neither get positive reviews. Why can't I copy the default theme and then make modifications?


Answers:
author: Nic Brough -Adaptavist-
body: You'd need to get the source code for it (available to you if you have a commercial server licence, from the licence page in your my.atlassian account) , make your changes and compile it back into an add-on you can then deploy to the server.

You have however tagged the question as "cloud", where you can't upload those types of add-on.


Tags: cloud
Need Confluence Pages Examples
Asked by Alyson Reis:

Hello,

I'm starting to play around with Confluence (after some time =) ) and I'd like to know if there are any live Confluence instances that I can access and hopefully get some ideas for building awesome pages.

It may be too much to ask, but if possible I'd like to be able to edit some of the pages in any of these live instances so I can see which/how plugins/macros are being used and then attempt to replicate the same content within my local instance.

Thanks in advance!


Answers:
author: Shannon S
body: Hi Alyson,

We don't provide any sandbox instances but I would recommend that you try [Confluence Cloud](https://www.atlassian.com/software/confluence/try) as your testing platform or get an evaluation license for [Confluence Server](https://www.atlassian.com/software/confluence/download) and you can test with that.

Let us know if you have any trouble or questions.

Kind Regards,  
Shannon

comments: author: Alyson Reis
body: Hi Shannon,

Thanks for your response. I already have a "testing" instance that I can play with. Isn't there any Confluence sites available to the public that I can at least take a look at?


author: Shannon S
body: Alyson,

Our documentation is running on a highly customized Confluence instance, confluence.atlassian.com, but as you can see it won't be possible for you to create and edit pages there.

Is there a reason you're are not able to use your testing instance to play with?

Kind Regards,  
Shannon


author: Alyson Reis
body: Shannon,

Sorry, I was probably not clear enough. I am using my local instance to play with already, there's nothing preventing me from doing it.

What I am looking for is "inspiration", I wanted to see other Confluence sites to get good examples of pages designs to potentially replicate these ideas to my own instance, but I'm guessing that won't be possible.


author: Shannon S
body: Thank you for explaining.

We have a blog post here with a few examples, will this help?

* [5 real-life examples of beautiful technical documentation](https://www.atlassian.com/blog/add-ons/5-real-life-examples-beautiful-technical-documentation)

Here are some other examples:

* [Powered by Confluence](https://confluence.atlassian.com/disc/powered-by-confluence)

I hope this helps!

Kind Regards,  
Shannon
Error while importing space into Confluence
Asked by invinci:

I am trying to import a Confluence space from an XML backup file. This file is on my local machine and not the server.

When I point the file to the directory on my machine and hit the "Upload \& Restore" button, the file starts uploading successfully but fails after a while.

![conf_import_error.png](/t5/image/serverpage/image-id/8531iFA56ED93CDA39ACF/image-size/large?v=v2&px=999 "conf_import_error.png")

So I SSH to my server, trying to get some more information about the error and see nothing in the logs. I have tried a couple of times, but end up getting the same error.

Can anyone tell me what is wrong this procedure?


Answers:
author: invinci
body: For anybody looking for an answer to this question - we just increased the file system storage to 1GB to allow Confluence to complete the full import process.


author: Domenico Manzo _Actonic_
body: Could you add log file? The exact error should be there.


Tags: questions-for-confluence
notification issue
Asked by astrolaser:

Hi,

I have a question regarding Confluence e-mail notification. Not sure how it works.  
Users would like to get the "daily digest" since it allows to keep track on what is happening without having to log in. So in Email notification settings they just mark "Subscribe to daily update" option.

In order to get notifications in Confluence, you need to watch pages/space. The issue is that Setting to watch on anything overrules email preferences and sends mail for every action (comment / like / edit).

Is there any way how to get only daily update without spamming users with every single action made in the space they are watching?

Thank you.


Answers:
author: Sandy Johnson
body: Pavol

You mention the "daily digit", by this doe you mean the 24 hour report? This report shows all the changes made in the last 24 hours. The user does not have to be a watcher on any page to receive this report.

Sandy
Exporting page with images to PDF, the images don't appear
Asked by Angel:

Hi,

I am new here and with Confluence too. Sorry if the question has already a answer but I have many pages with images and when I try to export them to PDF, the images don't appear in the PDF document. How can i fix it?

Thank you.


Answers:
author: Domenico Manzo _Actonic_
body: One of possible reasons is not compatible image format: <https://confluence.atlassian.com/confkb/broken-images-in-pdf-export-154633782.html>

comments: author: Angel
body: The problem was the name of the image. It hasn't to have whitespaces.

Thank you
Can not change diagram
Asked by Luis Gonz?lez Alfayate:

Hi,

I?m trying to make changes in a diagram and I can?t. The page is in blank.

Can?t edit any diagram of my space.

Example,

<https://kantarmedia.atlassian.net/wiki/spaces/KMSPO/pages/140480215/2.+MAPA+RECURSOS+T+CNICOS+PRODUCCI+N+PRENSA>

Best regards,

Luis


Answers:
author: Luis Gonz?lez Alfayate
body: One more thing.

Neither, we can not create new Gliffy diagrams.


author: Luis Gonz?lez Alfayate
body: Hi Nic,

Thanks for the reply.  
The Confluence service is paid by my company, I imagine they are in the day with the payment.  
We have edited any page and any diagram in the past daily. The diagrams are Gliffy type. But this week, we have tried several browsers and different users and we can not. It is as if the add-in for editing is not active and the page is blank. Do not load the tools to edit.

We can edit and change other pages that do not have Gliffy diagrams.

Greetings from Spain.


author: Nic Brough -Adaptavist-
body: Which diagramming add-on is it? Are you fully paid up in your my.atlassian account?Can you try another browser?Can other users edit?


Tags: diagram
Confluence Syntax error in Header
Asked by alex winiger:

Hi

I updated the the header section of the Custom HTML option in the admin section.

![Insert Custom HTML.jpg](/t5/image/serverpage/image-id/8508i7FD75D03C37DCE0C/image-size/large?v=v2&px=999 "Insert Custom HTML.jpg")

The code I inserted was:

```
   <script>jQuery(document).ready(function() {    jQuery(".external-link").attr("target", "_blank");});
```

The problem is that I forgot thew closing tag \</script\>. And now all code following that code, means the BODY is not displayed in the browser. Only an empty page is shown.

![view source code.jpg](/t5/image/serverpage/image-id/8512i8EF20F7DB64AA4A5/image-size/large?v=v2&px=999 "view source code.jpg")

Question:

As I can not login anymore, I need to change / backout the code on file server. Any idea where I can do that?

Thanks in advance for your help!

Regards Alex


Answers:
author: Domenico Manzo _Actonic_
body: Hope you have already fond some solution, if not here a few options to fix it:

**Hard way**

Available only if you have RW access to the DB. You should try to find where Custom HTML stores their configuration and clear it using SQL.

**More simpler way**

1. Open Custom HTML edit page in Chrome browser directly "%your_host%/admin/editcustomhtml.action"

2. You will see blank page :) It is OK. Open developer toolbox (F12 hotkey)

3. Find a place with your broken \<script\> tags and cut everytning from \<body\> tag and put it to real \<body\> tag of the page.

4. You will be able to see Login window. Fill your user name and password.

5. Page will be updated and now you are athenticated, but still see nothing.

6. Repeat steps 2 and 3 to see Custom HTML edit window. Delete broken tags. Save it.

comments: author: alex winiger
body: Hi Domenico

Thanks for your help! Although I already found a different solution

<https://confluence.atlassian.com/confkb/unable-to-use-confluence-upon-adding-some-customizations-in-custom-html-648218529.html?_ga=2.159195130.191219446.1509349175-1730866595.1495439074>

Nevertheless in my opinion it is not state of the art not to have a basic tag validator for such options. Atlassian should solve this really quick.

But again thanks Domenico!
How many characters can be on the one page?
Asked by ?????? ????????? ??????????:

How many characters can be on the one page?


Answers:
author: ?????? ????????? ??????????
body: Thank You


author: Nic Brough -Adaptavist-
body: As many as your database can hold in a column, allowing for all the storage format data to go with it.

Your users will not bother to read the page due to it being too long well before you run out of space.
sync don't work
Asked by YOTHA:

Dear support

I have reinstall all and the confluence server can't get connect to the Jira one I get

Connection test failed. Response from the server:  
com.atlassian.crowd.exception.InvalidAuthenticationException: Application failed to authenticate

If your tools are not compliant between you and you there is a big issue.

I stop to investigate and spend time on this Please provide a solution. I can't spend my time to look for the log file --\> which on is ...really I'm not happy


Answers:
author: Shannon S
body: Hi there,

So you previously had Confluence and Jira installed and connected together and working, and for one reason or another, you have reinstalled Confluence and now they no longer correct. Is this accurate? Or did the connection stop working one day and then you reinstalled Confluence?

To determine the reason that Confluence cannot connect to Jira, please provide us the errors that occur in the [Confluence log file](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html#WorkingwithConfluenceLogs-FindingtheConfluencelogfiles) as soon as you replicate the error. Then we will be able to help you to determine the reason.

Thank you!

Kind Regards,  
Shannon


Tags: jira

sync
The End of Life health check has failed in your system
Asked by shawn Thompson:

This error message has popup since I have upgraded confluence to version 6.4.3 - my support expires Aug 2018.

There's no warning or error messages in the log files about this.

What is causing this error and how do I rectify it?

Rgs

Sh


Answers:
author: Nic Brough -Adaptavist-
body: Could you also check what the installed licence says? Is it definitely the same one you have in your atlassian account (with the Aug 2018 expiry)

comments: author: shawn Thompson
body: Hi Nick,

Yes, it is exactly the same - as my support has recently been renewed


author: Shannon S
body: Hi Shawn,

Could you let me know a bit about your setup in terms of network connectivity? Is it behind a firewall or using a proxy of some sort? Does it have constant access to the internet?

Kind Regards,  
Shannon

comments: author: shawn Thompson
body: Hi Shannon,

I have a standalone deployment behind firewalls using proxy to connect to the internet -

Does the proxy config needs to be added differently to previous versions

Rgs

Sh


author: Shannon S
body: Hi Shawn,

There's no additional requirements as of the last update.

Can you please try [clearing your plugin cache first](https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html) and see if that resolves your issue? Are you able to connect to the Marketplace via your instance?

If clearing the plugin cache does not work, and you're able to connect to the UPM (Marketplace), can you have a close look at [EOL Check Causes Health Check to Fail when a Proxy is Being Used](https://confluence.atlassian.com/confkb/eol-check-causes-health-check-to-fail-when-a-proxy-is-being-used-862622301.html)?

Thank you!

Kind Regards,  
Shannon


author: shawn Thompson
body: Hi Shannon,

I re-input the proxy settings and rebooted the server, now looking at the Instance Health all checks have passed

Thank you, I didn't have to manually clear the cache

Rgs

Sh


author: Shannon S
body: No worries, Shawn! Sometimes it is necessary. :)

Take care and Kind Regards,  
Shannon
When I click link(=attachment file) in page, can't download directly
Asked by ChungKyu Lee:

When I click link, I can't download file.(pdf, ms office, etc.. same)

I want to download, when I click left mouse click

right mouse -\> save links as ... Is OK.

![link_cant.png](/t5/image/serverpage/image-id/8469i433F5CA3870FB8B3/image-size/large?v=v2&px=999 "link_cant.png")P.S


Answers:
author: ChungKyu Lee
body: Please check below. I found.  
<https://jira.atlassian.com/browse/CONFSERVER-52541>

comments: author: ChungKyu Lee
body: I solved


Tags: download

link
Suppress Jira Issue filter widget in Confluence
Asked by hmackiernan:

Our Confluence site admin has apparently enabled the JIRA filter issue display, so that when I try to paste a link to a JIRA filter, Confluence automatically and unconditionally substitutes in a microscopic table view of the filter. Thanks. That's very helpful (in the manner of things that are in fact, not at all helpful).

How do I DISABLE this behavior for this page so that I can do what I actually want and just insert the link, rather than the widget for this page only?


Answers:
author: Gregor Kasmann_Actonic
body: Ugly solution - use {noformat} macro, to wrap a link.


author: hmackiernan
body: I found \*a\* way, insert a link, put the filter address in the link address and manually type the link text.