youngmon/atlassian-qna huggingface dataset:
How to Resize iframe within an expanding panel?
Asked by thejpkotor:

We have 4+ sites we use at work, which output dynamic text and can vary in length. I have them in iframes within expanding panels. This is useful as you can quickly check them and move on. However, I would like to be able to have the panel resize to fit the content when the page is reloded. Currently, the size is fixed, which makes for lots of scrolling.


Answers:
author: Maarten Cautreels
body: Hi thejpkotor,

There's two ways to resolve this problem:

1. Make the 4+ sites responsive so they'll be able to display their content regardless of how wide the iframe/screen is. (By far the best solution, imagine someone using the Confluence page on Mobile)
2. You could try a [JavaScript hack](http://stackoverflow.com/questions/9975810/make-iframe-automatically-adjust-height-according-to-the-contents-without-using) to resize the iframe once it's loaded but some browsers might block that kind of JavaScript behaviour because of security reasons (cross-origin scripting).

Hope this helps.

Best,

Maarten


Tags: iframe
Upgrade Confluence by installer or manually
Asked by Alfie Patolilic:

Hi,

I am trying to figure out how I would be able to upgrade my current Confluence instance in Linux. my current Confluence version is 4.3.1, and I am planning on upgrading it to the latest version, which is 6.1.1. I understand that I have to upgrade to the latest version of 5.10 before I can proceed to 6.1.1.

But I am very unsure as to how I will proceed with this upgrade. I am not sure as to how my current Confluence instance was installed, as it was installed by someone else in the company before I had arrived, also there was no information or documentation made on how it was installed.

I have checked for more information online, for example on this site. it mentions that if using a standalone installation, I can use the installer to upgrade it:

* <http://blog.valiantys.com/en/jira-en/standalone-war-installation>

I have also checked my instance, and from the README.txt, it tell me that it is of a 'Standalone distribution', with a built in Tomcat webserver. which means that it was installed using an Linux installer, because if an installer is used, the latest JRE and Tomcat is installed along with it.

But when checking the download for the installers, it shows the ZIP/TAR.GZ archive as the standalone installer.

How will I know in this case?. I apologise if I am unclear on some parts of my question. I have only been using the application recently.

Thank you


Answers:
author: AnnWorley
body: You may download and use the Confluence 5.10.8 .bin installer in your case. I recommend using it because it will supply the JRE and you won't have to set JAVA_HOME or worry about making sure you have a supported Java version.

Per [Upgrading Confluence,](https://confluence.atlassian.com/display/DOC/Upgrading+Confluence#UpgradingConfluence-Beforeyoubegin) you only have to use the tar.gz or .zip archive if:

"you are moving to another operating system or file location as part of this upgrade.  
you are upgrading from Confluence 3.5 or earlier  
you are upgrading from Confluence 5.6 or earlier and previously used the EAR/WAR distribution to deploy Confluence into an existing application server. "

I welcome any follow up questions!


Tags: install

linux
Coloured and bold monospaced text
Asked by Donald McCarthy:

I want to add bold and/or coloured text and/or background highlighting to sections of a page that are in a monospaced font. How can I do this?

I saw one answer that mentioned CSS, but I don't do CSS.

I want to make some paragraphs appear in a monospaced font and be able to enbolden, colour, highlight, or italicise words in that monospaced paragraph.

Currently monospacing or preformatting text stops me from being able to further modify it.

Thanks.


Answers:
author: Thomas Schlegel
body: Hi Donald,

I doubt that this will be possible without any CSS customization.

There is an quite old open issue for that: <https://jira.atlassian.com/browse/CONFSERVER-1179>

comments: author: Donald McCarthy
body: Thanks Thomas, I used the work-around of cut-n-pasting from a code block found in one of the answers your link points to, but it is hit-n-miss with several steps and I and other members of my team are still looking for something easier...

:-)


author: Bill Bailey
body: The easiest way would be to create a user macro that formats text with a classed p tag (or inline style directive if you don't want to do CSS). Then the text inside the macro could be bolded, etc., but will appear in a monospaced font when displayed. Now the monospaced font you picked has to have bold and italic variants for this to work.

comments: author: Donald McCarthy
body: \> create a user macro that formats text with a classed p tag

Ahhh, if only... Unfortunately I am new to Confluence. I have some HTML ability so I will take a first look at macros. Thanks :-)


author: Thomas Schlegel
body: Hi Donald,

I've written an article with an example for a user macro. It's another usecase, but maybe it helps you getting started with user macros: <https://community.atlassian.com/t5/Confluence-articles/The-Admin-s-tale-User-Macro-filtering-a-Confluence-table/ba-p/459369>


author: Rene Minder
body: Just got Atlassian support to open <https://jira.atlassian.com/browse/CONFSERVER-59278> for us. Please vote for it.


Tags: font
How to organize FAQ content in Multiple languages for JIRA Service Desk ?
Asked by Bart Van Looy:

Hi all,

I'm looking for a best practice or suggestion(s) on how to integrate a multi-langual FAQ pages for JIRA service desk. Are there people who can share their best paractices and solutions ?

2 possible setups (We had in mind, not sure if it is possible)

- Interface JIRA service desk in English, with linked FAQ pages and search that supports English, French, Dutch

- Interface in JIRA service desk depends the language setting of the customer and can be changed in the portal interface. User can switch from English, to Dutch to French.

Found some old treats regarding a similair subject but presume there are other solutions/ est paractices on the market ...

<https://community.atlassian.com/t5/Confluence-questions/Organizing-and-displaying-content-in-multiple-languages/qaq-p/27513#72914>

Tnx

BArt


Answers:
author: Mirek
body: The best way I guess is to use a third party plugin that would allow adding macros for specific language and would recognize it later.

Here is a blog about this approach

<https://www.bitvoodoo.ch/blog/2020/create-a-multilingual-knowledge-base-for-jira-service-desk>


Tags: jira-service-desk

jira-service-desk-cloud
Ajax call confluence search rest API?
Asked by Thomas:

hello,

I'm trying to call confluence search API with ajax from outside the environment, but get below error, when i click on the search(1,11), i can get the expected result, please advise.

**+++++++++++ ERROR ++++++++++++++++++++++++++**

SCRIPT1004: Expected ';'

++search(1,11)++

{"description":"jCallback was not called","stack":"Error: jCallback was not called...

**+++++++++++ CODE +++++++++++++++++++++++++++**

function jCallback(json){  
console.log(json);  
}

var wikiAPI = "[https://xx.xx/confluence/rest/searchv3/1.0/search?queryString=global\&pageSize=10\&os_authType=basic](https://xx.xx/confluence/rest/searchv3/1.0/search?queryString=global&pageSize=10&os_authType=basic)";

$.ajax({  
url:wikiAPI,  
type:"GET",  
contentType:'application/jsonp',  
dataType:"jsonp",  
crossDomain:true,  
beforeSend: function(xhr) { xhr.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password)); },  
jsonpCallback:'jCallback',  
error: function(xhr,status,error) {  
console.log(JSON.stringify(error));  
},  
success: function(response){  
console.log(response);  
}  
});


Answers:
author: JP _AC Bielefeld Leader_
body: Hi,

you should try asking this question to the developer community. I'm pretty sure you'll find some help there.

<https://developer.atlassian.com/community/>


Tags: ajax

search
Page History in Confluence version 6 shows avatar instead of username
Asked by CarenB:

In earlier versions of Confluence, the Page History used to display the username in the *Changed By* column. Since version 6 the *Changed By* column shows the avatar instead and you have to now hover over the avatar to see the username.

Can anyone tell me please how to reset this to dislay the username?


Answers:
author: Steven F Behnke
body: You cannot. This changed since multiple authors can be the author of a "Change".

If you're on Confluence Server you can customize Confluence to get the data you'd like. If you're on Confluence Cloud you're not going to have many options to change this.

comments: author: Matthias Krohn
body: We have the same problem and use Confluence server. Can you give a hint how to customize Confluence Server to display the user names instead of avatars in page histories?


author: Leo Tohill
body: I think this is an unfortunate design decision. You could still show a name when there is only one author, satisifying 99% of the occurrences (I'm guessing).


Tags: page-history
Confluence sites for our customers
Asked by Jonathan Ferger:

Hi, i'm a new user of the atlassian products. I want to keep my customers informed of the status our projects; is it possible to release a page with informations only for a specified customer? Can i create a group "customers", so that all other informations are not visible?

Thank you


Answers:
author: Mike Rink
body: Hi Jonathan. I am with Comalatech, an add-on vendor. We have an add-on called [Comala Share It](https://marketplace.atlassian.com/plugins/com.keinoby.confluence.plugins.share-attachments/server/overview) that may be a solution to your problem. With Share It you can share your confluence pages via unique URLs. These URLs display pages with the same formating and content as the pages on your instance, but without the navigation or comments.

The URLs only allow access to the specific pages that they reference; a user will not be able to access any other pages on your instance. You could have a page for each client, and then a corresponding shared link for each client. At any time you could revoke access to the individual links.  

Let me know if I can provide more information about this solution. Good luck!


author: Nic Brough -Adaptavist-
body: Yes, but you will need to work through the permissions structure.

Your customer group will need to be granted access to see all the spaces you want them to see pages within. You will want to be careful not to let them see any other spaces.

Once you have that right, you may want to think about restrictions within those spaces, hiding the pages that you don't want them to see in there.

The most simple approach is to put all the pages you want the customers to see in one space, give them access to that, and no other spaces.

comments: author: Jonathan Ferger
body: Hi Nic Brough, thank you. It sounds very risky and unsafe. If somebody will set the permissions wrong in a a new site or space our customer will see the informations. So i want to create a space for every customer - thats a lot... Could I set the setting that users of a particular group will never see anything, unless a page is explicitly released?
Choose label macro using Label Tools for ScriptRunner disappear from page view
Asked by Dar Kronenblum:

Hi

we are using the choose label macro avilable in [Label Tools for ScriptRunner Confluence](https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.labeltools/server/overview "Label Tools for ScriptRunner Confluence")

but after we choose some label and click on the 'add' button the macro disappear from the page view and return just after refresh

any idea why this happens?

thanks

Dar


Answers:
author: Jan-Peter Rusch
body: Assume you are using Confluence Server, this seems to be a bug. Please check with Adapavist.


Tags: adaptavist

confluence-app

scriptrunner
Confluence backup issue
Asked by bfang711:

hi,

I am using confluence server 6.1 w/ PostgreSQL as database. Now here is my config file related to the SQL db.

\<property name="hibernate.connection.driver_class"\>org.postgresql.Driver\</property\>  
\<property name="hibernate.connection.isolation"\>2\</property\>  
\<property name="hibernate.connection.password"\>Pa33word\</property\>  
\<property name="hibernate.connection.url"\>jdbc:postgresql://localhost:5432/confluence\</property\>  
\<property name="hibernate.connection.username"\>postgres\</property\>

Now I would like to use my own username to do pq_dump or any other psql command.

\<myownusername\>@localhost \~$ psql --username=postgres -W "pg_dump confluence \> \~/conf.back"  
Password for user postgres: (I typed in "Pa33word" as above config shown)  
psql: FATAL: Peer authentication failed for user "postgres"

Can you please let me know why I got this error and how should I resolve this?

thank you.


Answers:
author: bfang711
body: I actually figured this out myself, need to change "peer" to "md5" in pg_hda.conf file for PostgreSQL.

However, one more question, when I run

psql --username=postgres -W "pg_dump confluence \> conf.back" and typed in the password for postgres, it gives me

psql: FATAL: database "pg_dump confluence \> conf.back" does not exist

Can you tell me how to write all pg_dump command line into one line with psql command? also how to put password inline so that I can run all this from a bash automatically?

thank you.


Tags: backup
What's the default user group for the directory /home/confluence?
Asked by igpphelpdesk:

For a recent Red Hat installation of Confluence, what's the default user and default group for the directory /home/confluence? Right now, they both show an ID only.  

<br />

<br />

Thanks.   
andrew


Answers:
author: igpphelpdesk
body: Please ignore and delete this question. My brain must already be on vacation.

Thanks.


Tags: group

permission

user
How to track search queries in Confluence outside of Google Analytics plugin?
Asked by Cindy:

Is there a way one can search queries in Confluence within a specific space? That is, if I have a search set up within a space (vs. a global search).

Unfortunately at this time my organization is unable to purchase/install the [Google Analytics Plugin for Confluence](https://marketplace.atlassian.com/plugins/com.go2group.plugins.confluence-ga/server/pricing), so hoping for a workaround in the meantime.

I know this question has been posed before, so apologies if it sounds like a repeat!


Answers:
author: David at David Simpson Apps
body: Hi Cindy, I blogged about this back in 2009 -- "[4 Useful Tips on Google Analytics Reporting for Confluence](https://davidsimpson.me/2009/04/16/4-useful-tips-on-google-analytics-reporting-for-confluence/)" and it still holds true.

Check section 2 -- "Enable Site Search \& Search Categories in GA" -- and section 3 -- "Use "Site Search Categories" to show search terms from within individual sites".

I hope this helps.

comments: author: Steve Arrants
body: David --

I've followed the instructions, but I'm getting results such as

* **2LD6DRAMY** , which, when I click that result, gives me **/display/CS/General+Functions?searchId=2LD6DRAMY**

Is that what I should be seeing?


author: Dennis
body: Hi Cindy, we are using PIWIK analytics in our company. You can implement the tracking JS snippet with ease. Piwik is open source and can be installed on prem. You'll be able to fulfill all privacy requirements and be the owner of your data without any cloudservice involved. BR! Dennis
"Export to PDF" creates a PDF, but it does not retain the images after Confluence upgrade 5.8 to 6.0
Asked by ruppster-unicon:

Hello Community!

A user has a Confluence page that uses the 'Insert Status' macro. Before the upgrade (Confluence 5.8.10) she would export that page to PDF and the status from the 'Insert Status' macro retained the status text and color... which seems to just be an image. After the upgrade to Confluence 6.0.5, when she exports the page only the status text appears (without color) in the PDF so not the image. Is there any way to have Confluence 6.0.5 also generate PDFs with the image? The same is the case for exports to Word. Any help/suggestions appreciated!

<br />

Greg


Answers:
author: Werner Spreeuwenberg
body: We have the same issue, awaiting an answer.


author: Pavel Potcheptsov
body: I have had such issue in the past and the problem was with Base URL: the base url in settings and url in your browser have to be the same.

comments: author: ruppster-unicon
body: The base URL is good for our Confluence.


author: Pavel Potcheptsov
body: Do you have some proxy setup to open your instanse without specifying port 8090 in the end of URL?


author: ruppster-unicon
body: Yes, we do have Apache in front of Confluence. When I hit Confluence directly on the tomcat port (8080 in our case) I see the same behavior...text but no image for status macro.


author: AnnWorley
body: On my Confluence 6.0.5 test instance the export to PDF rendered the status macro as an image, but the export to Word used the text as you are reporting.

Is it possible that you are using an add-on to export PDFs or are you sure your user is using the exporter "out of the box"?

comments: author: ruppster-unicon
body: Interesting, the status macro is rendering differently when you export as PDF vs. Word. Its the same here for those two as text. The only PDF add-on we have installed is the Atlassian Confluence PDF Export one and I just select the Export to PDF or Word option from the menu.


Tags: export

pdf

status
How to specify -javaagent for Synchrony JVM ?
Asked by mjb2kmn:

I am trying to add a monitoring agent to the Synchrony JVM via the -javaagent argument. Adding it to synchrony-args.properties will prepend "-D" to the property name.

Is there any other way to do this?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Please, put into setenv.sh
Is there a way to copy a space
Asked by NM:

The Atlassian CopySpace plugin is not compatible with Confluence version 6. Is there another alternative please?

Btw. it is about time that Confluence gives this feature out of the box. It is pretty important functionality.


Answers:
author: Davin Studer
body: It still works with Confluence 6. I use it all the time. You just have to manually download the JAR file an upload it. The reason it says it is not compatible is that they just have not tested it yet. But if the underlying APIs that they use haven ot changed, then it will still work. Typically I found that even though an add-on does not say it is supported it still works. Atlassian requires add-on developers to go in and says explicitly that ther add-on still works.


author: Maarten Cautreels
body: Hi Nirdesha,

Copying a complete space is not officially supported by Atlassian but they do have a knowledge base articles about that with several options (from plugins to manually exporting/importing a space): <https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html>

Hope this helps,

Maarten


author: Nancy Jaiswal
body: Our [Copy Page Hierarchy (Copy Space)](https://marketplace.atlassian.com/plugins/com.hivestone.confluence.plugins.copypagehier/overview) plugin could be used to copy whole space or desired set of pages (along with attachments) to a new space. I think it matches your requirement.


author: EPS Software Engineering AG
body: Our Add-on Space Tree Creator can copy spaces. But creating spaces from a template is the main purpose. The creation process is started by clicking a button and filling out a form.

So, give it a try: [Marketplace Link](https://marketplace.atlassian.com/plugins/eps.focuspro.SpaceTreeCreator/server/overview).


author: Jan-Peter Rusch
body: Another solution for customers using the Scriptrunner AddOn is using build-in copy space script. Anyway, copying a spec should be a supported official function of Confluence.


author: AnnWorley
body: Regarding the suggestion to include Copying spaces "out of the box" we do have a feature request open: [Easily create a copy of an entire space](https://jira.atlassian.com/browse/CONFSERVER-3191) The ticket is public and we welcome your feedback.


Tags: copy

space
Where can i find the roadmap?
Asked by Jonathan Ferger:

Hi, im testing Jira and Confluence - im looking for the roadmap. Where can i find it, how can i insert tasks?

Thanks, best regards

Jonathan


Answers:
author: AnnWorley
body: Is this what you are looking for? [Roadmap Planner Macro](https://confluence.atlassian.com/doc/roadmap-planner-macro-704578202.html)

comments: author: Jonathan Ferger
body: Hi, thanks for your answer - yes that's it. But there is no "insert -\> macro" option...


author: Jonathan Ferger
body: i've found the option, thank you


Tags: jira

roadmap
How to get inserted symbols to show in PDF export?
Asked by john starkweather:

I inserted several symbols (greek letters) into a page which do not show in exported PDF. Is this a confluence bug, or might I be missing something?


Answers:
author: Marcelo Horlle
body: Hey John,

Seems like there is a bug to export non-Latim encoding to UTF. You might want to take a look on it, it is listed under number #: [CONFSERVER-25887](https://jira.atlassian.com/browse/CONFSERVER-25887). It also has a workaround that might be helping you out!


Tags: pdf
how to restrict users from creating new topics while asking a question
Asked by Daniel Sagayaraj:

how to restrict users from creating new topics while asking a question.

While searching for the topics if the topics are not found the question plugin allow the user to create a new topic, which i dont want to happen. How do i restrict the users from creating new topics while asking questions

![Screen Shot 2017-05-05 at 6.02.24 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/947iE51FB60B1C6FBE06/image-size/large?v=v2&px=999 "Screen Shot 2017-05-05 at 6.02.24 PM.png")


Answers:
author: AnnWorley
body: There is no way out of the box to restrict the creating of new topics in Questions for Confluence. We have a request open to include that functionality in a future release:

[Set permissions on who is allowed to create a topic](https://jira.atlassian.com/browse/CONFSERVER-51772)

Nic makes a good case for not restricting topics on this thread:

[How do I create a new topic in Confluence questions?](https://community.atlassian.com/t5/Confluence-questions/How-do-I-create-a-new-topic-in-Confluence-questions/qaq-p/14942)

"But topics and labels really should be free-format. They're quite informative as they allow the user community to freely contribute to the list - they add information for all users and can inform the administrators and business users of what is really going on and how people are really talking about content instead of having a fixed set of jargon forced on them."


Tags: questions-for-confluence