youngmon/atlassian-qna huggingface dataset:
format of code block in proportional font in .pdf
Asked by George Cathcart:

We have recently upgraded to Confluence 5.4.2 and I'm having problems with the code macro. On the screen, all is well and the code block is displayed in a non proportional font. However when I export to .pdf , the code block is rendered in a proprotioal font. Having done some more research, I find the code block is written by the syntaxhighlighter script.

I can change the characteristics of the output by adding the following to the html stylesheet changes the screen output, but adding the same to the pdf style sheet does nothing.   

.syntaxhighlighter .code .container \* {  
font-size: 8px !important;   
line-height: 20px !important;   
}

Similarly specifying the font in the above in the pdf stylesheet as shown below has no effect. So I am left displaying missaligned contents.  

font-family: "courier new", monospace;

Can anyone give me an answer?  


Answers:
author: George Cathcart
body: Well Atlassian are now looking at the problem, which I believe shows itself only on our installation - their test environment renders everything correctly. We have a JIRA open which is being looked into so this should be closed.


author: George Cathcart
body: Well, it appears Atlassian does not think this is a problem - it is not part of the 'default' functionality of Confluence which they say only supports one font in the exported .pdf file by default. The question remains, why is a code block displayed on screen in a monospace font nicely color coded by tag/element/command etc (by language) and in a proportional font (in black only) in the .pdf export - especially as this 'worked correctly' in confluence 3.2 while v5.4.2 does allow a monospace font to be used with the \<code\> tag i.e. {{code here}} in wiki markup. I don't have time to argue with them, especially as they are now ignoring the JIRA so I have written a macro which works (albeit with no colour coding) and uses the html \<pre\> \</pre\> tags.

Ours is obviously not to reason why - but I am very disappointed in what I had expected to be 'customer service'.


Tags: block

code

format

pdf-export
How do i change Administrator username ?
Asked by Iris Barthez:

Hi,

As an administrator of OnDemand Confluence (<http://purconseil.atlassian.net>), i would like to change my username.

But i cant when I try to edit my profile, because the field is greyed out (readonly).

How can y do that?

Thank you,

Regards.


Answers:
author: BillA
body: You cannot change usernames in OnDemand. Only in the install version of Confluence.


Tags: cloud

confluence-cloud
How can I create a link in the Space sidebar that will be opened in a new tab?
Asked by Martim Schnack:

When I insert a link anywhere in Confluence, the links always open in the same tab. We are using the Space sidebar links to store several assets about the project, like location of design files ([Box.net](http://Box.net)), project canvas (mural.ly), etc..

Is there a way to make those links open in a new tab automatically?

Thanks!


Answers:
author: Matthew J. Horn
body: You set the "target" property of the \<a\> tag to "_blank". You can do this with jQuery in your custom HTML header. However, if you only want certain links to open in a new tab, that will require you to identify those links (either by class or ID).

Here's an example where I have all "external" links open in a new tab:

```
<!-- Add target="_blank" to the URLs so that external links open in new browser page -->    AJS.$("a[class='external-link']").attr('target','_blank');
```

comments: author: Martim Schnack
body: How can I identify the sidebar links by class?


author: Martim Schnack
body: Ok... so no way to add a custom class, but I can see what the theme is defining and use it.

Thanks!


author: Matthew J. Horn
body: Right click and view source or view element. Look at the code and see what it says. In your particular implementation, I don't know if there's a specific class that they use, but this is where I would start.


author: Davin Studer
body: You would probably need to do something like this.

```
AJS.$('.plugin_pagetree_children_content a:contains("##Page Title Here##")').attr('target','_blank');
```
SQL migration
Asked by David Ramirez:

Good day, We are planing to migrate our production Conflunce SQL database, We would like to check with a tech and get all the specifics for this migration.


Answers:
author: Steve Gerstner [bridgingIT]
body: Hello Devid,

if you stay on the SQL technology, e.g. from MySQL to MySQL, you just need to edit the confluence.cfg.xml in your confluence home directory, after you migrated the database.

If not, call the support or try to find an Atlassian Expert around your corner. They can help, if you need more support.

Regards

Steve


author: David Ramirez
body: Hello Steve,

<br />

Thank you for you answer. But I still need some help. We are planing to move just the SQL DB not the entire site. Is is possible to talk with a tech about this matter?

comments: author: Davin Studer
body: This is a community help site. If you need tech support help you should contact technical support.


author: Steve Gerstner [bridgingIT]
body: Take a look on this page:

<https://confluence.atlassian.com/display/DOC/Migrating+to+Another+Database>
Table auto-fit to page
Asked by Jessica Ledger:

I have a confluence page with a (3 column) table - if I print (to paper or pdf), I get a scroll bar down the bottom of the table. On screen, it fits to page and all is fine, but when printing I get a scroll bar which is not needed.

How do I designate a table to auto fit to page/screen so there is no scroll bar?


Answers:
author: Davin Studer
body: The [Content Formatting Macros](https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.contentFormattingMacros) by Adaptavist gives you a css macro which will let you put the necessary CSS only on the page you need it on ... if you don't want to do it site wide and you don't want to enable the html macro.


author: Steve Gerstner [bridgingIT]
body: Try the following two css-settings for your table in print and pdf:

table-layout:fixed;

max-width: 100%
Exporting or printing a page with filter results gadget
Asked by Jessica Ledger:

I have a Confluence page with gadgets (Filter Results - of JIRA issues) - when I try to export to PDF or to Word I get a funky link, rather than the table of returned results which are displayed on screen. I need a list/table of the results in the export - not a link. Help please?

As a workaround I have also tried printing the page to PDF (via browser print function) - that also doesnt work, as results/rows from the gadget are truncated or cut short. So the workaround doesnt work.

Help?


Answers:
author: Midori
body: I think you are not using the right tool for the problem.

Use the [JIRA PDF View Plugin](https://marketplace.atlassian.com/5167) to generate / print PDF files from JIRA filters (instead of embedding JIRA filters in Confluence pages and then trying to print those pages hoping that the browser will do decent page breaking and layouting for you).

comments: author: Jessica Ledger
body: Thanks for the tip, but I have the confluence page so I can have additional free text and other content around the selected JIRA tickets. Im not familiar with the plugin, but does it allow for that level of output customisation?


author: Midori
body: Yes, *absolutely*.

Have a look at the screeshots: [](https://marketplace.atlassian.com/plugins/com.midori.jira.plugin.pdfview)<https://marketplace.atlassian.com/plugins/com.midori.jira.plugin.pdfview>

Or the sample PDF files at the top part of this page: [](http://midori.hu/products/jira-pdf-view-plugin/)<http://midori.hu/products/jira-pdf-view-plugin/>

Not only free text, but graphics, charts, pretty much anything the PDF fileformat supports are available.


author: Jessica Ledger
body: Unfortunately this plugin is incompatible with JIRA 6.2, so we can't use it at this time. If it gets updated or if there is something else let me know.


author: Midori
body: We completed our compatibility test today, so I can now "officially" say that *JIRA PDF View Plugin 3.0.0 is compatible with JIRA 6.2*, and we are supporting this combination.

**[Try it today](https://marketplace.atlassian.com/5167)**


Tags: jira
Edit Restriction to confluence-users is not allowing edit option for users in that group
Asked by Joe Ben Clark:

I have given confluence-users edit access to a page under restrictions, but they cannot see the edit button. What am I doing wrong?

[](http://wiki.cdisc.org/display/asthma/Asthma-TAUG+Post+Publication+Implementer+Comments)<http://wiki.cdisc.org/display/asthma/Asthma-TAUG+Post+Publication+Implementer+Comments>


Answers:
author: Ryan Goodwin
body: Have you checked the space level permissions on the page? If a group is restricted from editing anything in a space, giving them edit permissions on a page will not trumph the space wide restriction.

See here:

[](https://confluence.atlassian.com/display/DOC/Assigning+Space+Permissions)<https://confluence.atlassian.com/display/DOC/Assigning+Space+Permissions>

comments: author: Joe Ben Clark
body: so restriction only works to lock down pages, not to grant page level edit permissions?


author: Davin Studer
body: Correct. They need to already have the "edit" permissions for the space. There are feature requests out there to put in this functionality as it is terrbly hard to add edit for just a few pages of a space to certain people, but Atlassian has yet to implement these requests.


Tags: confluence-administration
Confluence: Solving / Archiving an article
Asked by Dieter Loskarn:

Is there a way to mark an article as solved / archived so the topic is shown greyed out in the navigation?


Answers:
author: Midori
body: [Add the label "archive"](http://www.midori-global.com/products/confluence-archiving-plugin/documentation/page-archiving#labels) (or "archive-single") to the article, and let the [Archiving Plugin](https://marketplace.atlassian.com/plugins/com.midori.confluence.plugin.archiving) move it to an archive space.

That way it disappears from the original space, from the regular searches, etc., but you can still view this, restore this, from the archive space.


author: William Zanchet [Atlassian]
body: Hi Dieter,  

Actually, we don't have such feature that would perform it. However, you could use the tasklist macro feature, which will give you a check box:  

[](https://confluence.atlassian.com/display/DOC/Tasklist+Macro)<https://confluence.atlassian.com/display/DOC/Tasklist+Macro>  

Hope this helps.  
WZ
Emoticons/pictures in page title
Asked by Robin Peters:

Hello,

Is there any possibility to use emoticons/pictures in page titles?

I want to create a "feature book" space. For a fast overview I want to use the new "page tree" feature and there it would be fine to use (/), (x), (!) or other pictures which show me the current state of a feature.

Regards,

Robin


Answers:
author: BillA
body: I would use the page properties and page properties macro to show an overview of all all your pages and their current state. See the product requirements blueprint as an example of how this works and shows document status.

<https://confluence.atlassian.com/display/DOC/Product+Requirements+Blueprint>


author: Matthew J. Horn
body: I would use custom CSS to add images to titles.

comments: author: Juan C Manosalva
body: how?


Tags: emoji

image

page-title

page-tree
Confluence : using image map on onDemande instance
Asked by Jonathan Van Belle:

Hello,

for some of our internal process, we would like to display a confluence page with an image. Each steps of the process worflow would be mapped to a subpage in confluence. But to do this we need to have the possibilites to create a map on this image to be clickable. I**s it possible on OnDemande instance** (I now for non-OnDemande there is this : [](/questions/194181/imagemap-plugin-how-to-use)<https://answers.atlassian.com/questions/194181/imagemap-plugin-how-to-use>) but i'm on **OnDemand**.

Thanks


Answers:
author: Adrien Ragot 2
body: For OnDemand, you can use [CYO Create-Your-Own](https://marketplace.atlassian.com/plugins/com.playsql.createyourown) to insert your own HTML snippets. The website [ImageMaps](http://www.image-maps.com/) (or any other code) can help you build the code and paste it in CYO.


Tags: cloud

confluence-cloud
Is it not possible to view changes made inside macros, in the confluence page history ?
Asked by Vilhelm Bergsveinsson:

I m trying to use macros on pages for example Text inpup and I m using the macro "Text Data". When changes are made to the content of macro, the changes are not viewable in change history of the page.

Is this just the way it is and will be ? Or is there a? way to continue using these macros and see the changes made to the content in the change history of the page ?


Answers:
author: Vilhelm Bergsveinsson
body: Thanks Steve for your answer.

This is not my macro, this is a standard macro in Confluence.

The thing is that I use Edit Content to change the text in these macros not Edit, which is used to change text in the body of a confluence page. Edit content is for the macros.

If I then go into "view history" for the page no changes are shown in the macro (no text changes).

I need to be able to see all changes made to that page, regardless of how the data is stored (macro or not). I have no idea how the data is stored on the database side and if or how I can manage that.

Normal user should be able to write a text into a macro (when creating a page) and not worry about if the changes are viewable in the page history or not.

comments: author: Steve Gerstner [bridgingIT]
body: About which macro are we talking?


author: Vilhelm Bergsveinsson
body: It s called "Text Data". Generates a text field.


author: Steve Gerstner [bridgingIT]
body: Ok, so we are talking about the scaffolding plugin ;)

I would suggest talking with the guys from servcerocket would be best?


author: Vilhelm Bergsveinsson
body: OK, thanks alot Steve, will do :)


author: Steve Gerstner [bridgingIT]
body: It depends how your macro stores the data, if you wirte it in the body of the macro, it will be viewable in page history. If you store it a different way, you have to take care, that each time you change something a new version of the apge is created AND that your data is always stored for a specific version of your page, than you can achieve your goal.
Confluence Attachements
Asked by BastianO:

Hi,

Is there a macro or something else which i can display all Attachments, that are not linked to a page?

Thanks for your Answers.

Greeting Bastian


Answers:
author: Mick Davidson
body: Bastian,

You have the Gallery macro, but this is for displaying files that are already attached to a page.

I wasn't aware that you could have attachments that weren't attached to a page. If that's the case, where do you keep them?

Cheers.

comments: author: BastianO
body: Thank you for your Answer.

I work in a bigger Company and a lot of people are uploading thing (f.E. pdf files). And then they change something and reUpload it. So now they have 2 versions on the page and only using the second file they uploaded. And now I want to know all the files on the page, which are not used. I hope you understand what I want ;)

Greetings

Bastian


author: Josch Bencke
body: Thats a bit more challenging, if I understand you right: You want to know, which attachments in a space are not referenced out of a wikipage to find out, which are not used ?

The Technical solution would be a script on the "Commandline Interface", I assume. BUT

The Business side is a bit more complicated -

* can you guarantee, that all linked files are truly the most current ones (meaning the users made the effort of uploading the file and editing the page to adjust the name in the link)?
* can you guarantee, that people do not use the "list all attachments" macro ?
* can you guarantee, that people not simply rely on all attachments beeing listed under the officeclip icon ?

Might be more usefull to teach people to upload files with the same name OR use IE or Firefox to directly edit officedocuments in the wikipage AND finding out, which files are of XXX days age, requiring people to clean up their area of responsibility.

Good luck anyway ;)


author: Mick Davidson
body: Indeerdad! Ik weet wat je wil, maar soms gaat het best moelijke met je colleagen. :)

Groetjes.


author: Steve Gerstner [bridgingIT]
body: Hi Bastian,

the short one, the answer is NO i think.

You can link attachments directly in the page, but there is a lot of macros you can use to get an attachment used in a page like:

* attachments
* gallery
* reporting-plugin
* word/excel/powerpoint
* and many more

As I understood, your intention is to identify all attachments attached to a page but not used in this or any other page? If so, you have no chance to do so, I think. But maybe someone out here has a clue I don't have?

Regards Steve


Tags: confluence-administration
Force What's New dialog box for all Confluence users without a major version change.
Asked by S:

Every user has a checkbox in the What's New dialog box which says "Don't show again (Access from 'Help' menu)"

Effectively, it can let one disable the What's New pop up every time you login. Is there any possible way we can revert the value of this check box to No without a major change in version? Let's say I have some content in my confluence which everyone should see, I can just bring back the what's new dialog box for everyone. Obviously users should still be able to tick and disable the dialog box for future logins.


Answers:
author: S
body: Something like this worked for me.

List\<String\> allUsersInConfluence = userAccessor.getUserNamesWithConfluenceAccess();

ConfluenceUser eachUser = null;

for(String eachUserString:allUsersInConfluence)

{

eachUser = userAccessor.getUserByName(eachUserString);

UserPreferences preferences = userAccessor.getUserPreferences(eachUser);

try {

preferences.setString("confluence.user.whats.new.dont.show.version","UNSET");

} catch (AtlassianCoreException e) {

log.error("Exception "+e);

}

}

}
Creating a page in a space in Confluence from a web application
Asked by sap:

We are creating an application where when user clicks on a particular button, we want to create a page in confluence with some basic data in a particular space. That is why I wanted to explore kind of web service or function call that can help us do that.

I am unable to find any such way.Does anybody here have an idea about this?


Answers:
author: Steve Gerstner [bridgingIT]
body: Take a look on the soap-api:

[](https://developer.atlassian.com/display/CONFDEV/Confluence+XML-RPC+and+SOAP+APIs)<https://developer.atlassian.com/display/CONFDEV/Confluence+XML-RPC+and+SOAP+APIs>

but take care, that the content you are providing is in confluences storage format ;)
Need administration access (trouble due to illness)
Asked by Bert Menting:

Hello,

We are using confluence setup with Windows Active Directory. I work in the IT and now need to make changes in the rights of users. Something a collegue normally did, but he is ill for some time. I do not seem to have the rights to change anything with my own account.

What I do have is access to the active directory, and the confluence server (linux based). What are my options to give myself more rights? With my extra rights I should then be able to give users more rights to specific pages.

Any help very appreciated!

Kind regards, Bert.


Answers:
author: Bert Menting
body: AD account looked similar. Luckily a collegue managed to get in using system account and a ...:8080/admin/console.action. I now have the access I need.


author: Nic Brough -Adaptavist-
body: Have a look at your colleagues AD account - I expect you will find he is in a group called something like "confluence administrators" (and you are not). Add yourself to that group and you'll get the admin rights he has the next time Confluence syncs with AD (it's usually a few minutes at most)


Tags: confluence-administration
Urgent help required on Indexing Repository
Asked by nincy james:

System type:64-bit

I have set this in Class path

C:\\fisheye\\fisheye-3.2.4\\fecru-3.2.4\\bin;C:\\software\\crucible-3.2.4\\fecru-3.2.4\\bin;

also added two folders in C: drive- crucibledata and fisheyedata in which config.xml is present

I have added system variable:

variable name:FISHEYE_INST

variable value:C:\\fisheyedata

variable name: FISHEYE_OPTS

variable value:-Xms128m -Xmx1024m -XX:MaxPermSize=256m

I can log into the admin page and I am seeing this status from past 2 days:

Scanning changesets:completed

indexing changesets:In-progress(8.4%)

Path expanded:2457 of 21998

Metadata indexed:2457 of 21998

Content indexed:2457 of 21998

Changesets done:2 of 21998

Please help me understand what is actually happening and how much time will it take for completion of Indexing. I have a deadline to be met and its urgent. So please consider and reply on Urgent basis.


Answers:
author: AafrinA
body: The time taken to index varies depending on the size of the repository. Large repository might take longer time.

You can try increase the allocated memory as mentioned in the following documentation: [](https://confluence.atlassian.com/display/FISHKB/Fix+Out+of+Memory+errors+by+increasing+available+memory#FixOutofMemoryerrorsbyincreasingavailablememory-OutOfMemoryError:JavaHeapSpace)<https://confluence.atlassian.com/display/FISHKB/Fix+Out+of+Memory+errors+by+increasing+available+memory#FixOutofMemoryerrorsbyincreasingavailablememory-OutOfMemoryError:JavaHeapSpace>

Increasing the memory allocation will help to avoid out of memory error


author: nincy james
body: Now I am getting this error:

### Your request was unable to be processed {#toc-hId-1451764714}

#### java.lang.OutOfMemoryError - Java heap space {#toc-hId--1296905752}

Java heap space

You are running release CR3.2.4 FE3.2.4 (20140115091713 2014-01-15), please report your release number when reporting bugs.


Tags: index
Hipchat and Confluence OnDemand integration not working but Jira OnDemand integration works fine
Asked by Tim Deputy:

I've configured an admin Authorization token in hipchat. (Jiria and Confluence line in screen shot)

[![HipChat Token](https://dl.dropboxusercontent.com/u/68488015/atlassian/Screenshot%202014-02-11%2016.44.44.png)](https://dl.dropboxusercontent.com/u/68488015/atlassian/Screenshot%202014-02-11%2016.44.44.png "HipChat tokens")

I've put the token in the HipChat configuration section in our OnDemand instance.

The connection in Jira works fine, but in Confluence I get the error message in this screen shot.

[![Confluence Error](https://dl.dropboxusercontent.com/u/68488015/atlassian/Screenshot%202014-02-11%2016.26.48.png)](https://dl.dropboxusercontent.com/u/68488015/atlassian/Screenshot%202014-02-11%2016.26.48.png "Large Image")


Answers:
author: David Maye
body: Hi Tim,

Not sure if you've gotten this to work or not, but a few things you can try in case you haven't:

* Double check your auth key. For APIv2, it should be 40 characters long and sometimes a character can be omitted when are selecting the token to copy and paste (usually first or last).
* Make sure you're using the latest HipChat plugin ([](https://marketplace.atlassian.com/plugins/com.atlassian.labs.hipchat.confluence-hipchat)<https://marketplace.atlassian.com/plugins/com.atlassian.labs.hipchat.confluence-hipchat>) and note the versions.
* Try and generate a new token and see if that works.
* If all else fails, email [support@hipchat.com](mailto:support@hipchat.com)and we can take a look at your token.

Cheers,  
-David


Tags: cloud

confluence-cloud

hipchat