youngmon/atlassian-qna huggingface dataset:
page created from Template -table of contents macro showing numbers
Asked by sn:

hi,

we use Confluence 5.10 server.

i created a page template and have table of contents macro in the template.

when users create pages using this macro - every page is showing a numbering in contents(1 to 3) even though there is no text in those blocks of text( i added column \& section macros for each block of text.)

any ideas ? this is how it shows on every page that is created using this template.


Answers:
author: Craig Nodwell
body: Is there a value in the macros? Have you set a variable? What else is in the template?


Tags: questions-for-confluence
confluence macro licensing page questions
Asked by Joseph Saraceno:

I've developed a macro and have been able to confirm that my licensing is working correctly. However I would like to add some context to my error messaging. If a user's license has had an issue and it can not be confirmed (or it's expired), my message currently just points them to my website. I would like to enhance this by having a link in the message which will point them to thier confluence server's upm link like "/plugins/servlet/upm" so that they can view their licensing issue directly. Is there a way to get the host url and append the "/plugins/servlet/upm" to the end of that within my macro?

Thanks,

Joe S.


Answers:
author: Daniel Eads {unmonitored account}
body: Hi Joe!

It's really cool that you're developing a macro! You might not be aware, but there's a separate developer-focused community at [community.developer.atlassian.com](https://community.developer.atlassian.com) where more developers and add-on vendors hang out. They'll be able to more quickly and readily answer your question.


Tags: app

macro

servlet

universal-plugin-manager
Setting a Template Variable
Asked by Kim:

Hi,  

In my user created template I have established a template variable. Is there a way I can set this template variable to a JavaScript variable at the time of the page creation?

Or is there a way to insert the JavaScript variable into the page in edit mode?  

Thank you.


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

Look at this post, maybe can help you

<https://confluence.atlassian.com/confkb/how-to-use-javascript-in-confluence-313458839.html>

Cheers


Tags: javascript

jql

page

template

velocity
Insert screen capture in Confluence results in broken link
Asked by Jake Vander Ploeg:

When I try to insert a screen shot or screen capture into a confluence page and save it, it shows a 'broken link' red image once saved. The method currently used is saving the image to the clipboard as opposed to saving it as a file to the desktop on a Mac, and then pasting it in confluence. Would really like to be able to do this as opposed to saving each screen capture as an image and then dragging and dropping.


Answers:
author: AnnWorley
body: On my Mac, I tested pressing Command-Control-Shift-4, then pasting into the editor and it worked for me. I tried on Confluence 6.2.x and Cloud, with Chrome.

Please let me know on what version of Confluence and browser you are experiencing this behavior.

I also wanted to double check that the image looks ok in the preview and only turns into a broken link after saving?
Domain verification works with www.domain.com but not with domain.com. Problem?
Asked by Ted McClellan:

I had to enter ++www++ .*domain* .com for the domain verification to work but our users have email addresses that include just @*domain*.com. Will this cause a problem?

Will any of this take effect?

**What happens if I don't do anything?** If we still can't verify your domain after a few weeks, your domain will be marked as Unverified. This means:

* If you've configured SAML or set a password policy it won't apply to your users anymore.
* Your users will have control of their email address and other details.
* Your users will only be able to login using their Atlassian account username/password.


Answers:
author: AnnWorley
body: Judging from this paragraph in [Domain verification](https://confluence.atlassian.com/cloud/domain-verification-873871234.html), the www shouldn't cause an issue:

"HTTPS is mandatory for hosting the HTML file, and it needs to be a valid SSL certificate from a certificate authority (self-signed certificates won't work). Only one redirection to a www domain prefix is allowed. For example, if your domain is @example.com, domains can only be successfully verified on <https://example.com> or <https://www.example.com>. You can't verify domains that redirect to a second domain."

Please let me know what obstacle you ran into when you tried to verify the domain without the *www* prefix. At what point did the verification fail?

comments: author: Ted McClellan
body: if we simply try to verify the <https://domain.com> it fails to find the file and displays a browser error. When we try <https://www.domain.com> it works and successfully verifies the domain.


author: AnnWorley
body: Wild guess - is domain.com in DNS without the www?

I asked around the Cloud team and everyone reads that "For example, if your domain is @example.com, domains can only be successfully verified on [https://example.com](https://example.com/) or [https://www.example.com](https://www.example.com/). " as meaning the www is ok. I have never seen www on an email address so your situation cannot be unique.


author: Michael Hyland
body: I am facing the exact same issue.

[@a_gasovich](/t5/user/viewprofilepage/user-id/1558615) - can I ask how this was resolved?


Tags: domain-verification
Latest version of Confluence - now duplicates the page tree on the far left?
Asked by Mireille Gennaro:

We upgraded our Confluence version yesterday and now we are seeing an "extra" page tree as part of this upgrade? What is this and how can we remove the duplicate?


Answers:
author: AnnWorley
body: I was not able to find a support request or bug report describing an extra page tree after upgrading to Confluence 6.2.1 so the behavior is not common or expected.

Please let me know:

* What version did you upgrade from?
* Do you have any customizations in the spaces under Space tools \> Look and Feel **or** anything in the Confluence Admin\>Look and Feel section?
* If you disable user installed plugins does the extra page tree disappear? [Please see Disabling or enabling all add-ons (using Safe Mode)](https://confluence.atlassian.com/upm/disabling-and-enabling-add-ons-273875716.html#Disablingandenablingadd-ons-Disablingorenablingalladd-ons(usingSafeMode))

comments: author: Mireille Gennaro
body: Hi, Ann:

I figured it out. I was able to go into Space Tools/Configure Sidebar and "hide" space shortcuts to remove the extra page tree. I'm all set.

Separately, I did pose another question regarding formatting issues I've found... let me know if I need to repost.


author: Mireille Gennaro
body: Here it is -- I had posted it in another thread you had been responding to:

Ann -- I came across something else as a result of upgrading our Confluence.

I noticed some of the text (content on a published page) that was originally in black is now gray. This is especially prevalent in text boxes (macros) that I've placed on the page and have text entered into the box. Some of the text has become gray and other text has remained black. In the previous version, this was not the case -- all of the text is black -- as intended. Can you shed some light?


author: Mireille Gennaro
body: Here is an example -- in the previous Confluence version, the headers were originally in black. Now the first header is gray and the second one remains black (?) Totally random. Further, the hyperlinks -in the previous version - were bold and now only the bottom half is bold? This is consistently found across all of our pages again as a result of upgrading our Confluence version.

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


author: AnnWorley
body: That's great news that you were able to hide the space shortcuts to resolve the issue.

I wonder if there is a custom stylesheet in place, as described in <https://community.atlassian.com/t5/Confluence-questions/Is-there-a-way-to-prevent-Headings-5-and-6-color-from-being/qaq-p/593346>

Sometimes customizations don't work as expected after an upgrade.


author: Mireille Gennaro
body: Hello,

I don't see that we have any custom stylesheets -- when I click on both the "Stylesheet" and "Custom Stylesheets" links from the Admin section, they are both blank.
How to hide sidebar on a specific page
Asked by Ferenc Szecsi:

Hi,

Need suggestions on how to hide the sidebar on a specific page but not on the rest of the pages of the space.

Confluence version 6.1.1

Thanks!


Answers:
author: Miranda Rawson
body: Hi Ferenc,

This question has been answered already and you can find the answers here: <https://community.atlassian.com/t5/Answers-Developer-Questions/How-can-I-hide-the-left-sidebar-on-some-pages-when-using-the/qaq-p/562487>. There are multiple solutions, from a custom user macro (check the latest version near the bottom), to third-party add-ons.

comments: author: Jason Brison
body: The only issue with the linked answer is that it's referring to how to hide the sidebar with the Documentation theme which as of Confluence 6.x no longer exists.


author: Baru Lopez
body: Typical.


Tags: side-bar
Checkbox shortcode [] doesnt work anymore?
Asked by egahras:

Hello out there,  

im wondering about the checkbox shortcode \[\].  

After a few months i have to work with confluence again. I'm pretty sure, i was able to create a simple Checkbox by typing \[\] . But if i type the "\[", a link macro starts. If i write the second character "\]", it's just "normal" text. The Icon at the top where you can add the checkbox by clicking, tells me in the Hint that i can just write \[\] as im used too.  

I searched a few min by google now to find an answer. But i had no success.  

**Ignore this Question**

We've got a little Problem with the Chrome Browser. After using Firefox, everything is normal. I killed the cache in Chrome and now it works as expected....


Answers:
author: Mirek
body: Confirmed by question author that everything is working correctly. It was a browser issue.
How do i get the PDF Export to include the current date
Asked by Daniel Park:

Can i customise the PDF exporter so that when it exports the pdf it exports with the date and time or at least date. So that I have a reference to that.


Answers:
author: Julia B -Doc Queen
body: Please vote for this issue to be resolved.

[https://jira.atlassian.com/browse/CONFCLOUD-55765](https://protect-us.mimecast.com/s/psUSCNkpJ2sN2GlXI4jVJE?domain=jira.atlassian.com).


author: AnnWorley
body: Yes, you may add a custom header or footer with the date to the PDF as described in [Customize Exports to PDF](https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html#CustomizeExportstoPDF-HeadersandFooters)

I noticed when I export to PDF using the custom export under Space Tools and choosing a page, the space export file name is the space key and then the date and time, for example: ds-140617-1445-26.pdf was space key ds, exported the 14th of the 6th month of '17 at 14:45 (or 2:45 PM).

comments: author: Daniel Park
body: Im not after the file name the file will need to be renamed as nobody will really understand what it means.

Im after the footer information. I want to know which piece of CSS I need to add to the footter to add a date in the footer. The customise Exports to PDF says you can use css for stuff, but not this exact piece of information.


author: AnnWorley
body: CSS can't pull variables like the system time so we can't dynamically add the date in the stylesheet. There are several [PDF exporter plugins on the Marketplace](https://marketplace.atlassian.com/search?product=confluence&query=pdf)

I tested [Content Exporter (Word, PDF, HTML)](https://marketplace.atlassian.com/plugins/com.metainf.confluence.plugin.pagetreeexporter.pagetree-word-exporter-plugin/server/overview) and it does provide the date as an option to add to the footer.
How do i get the PDF Export to include the current date
Asked by Daniel Park:

Can i customise the PDF exporter so that when it exports the pdf it exports with the date and time or at least date. So that I have a reference to that.


Answers:
author: Vero Rivas
body: Hi [@Daniel Park](/t5/user/viewprofilepage/user-id/1136037)

Look at this post, maybe can help you

<https://community.atlassian.com/t5/Confluence-questions/How-to-get-current-date-into-confluence-page-pdf-export/qaq-p/1068630>

Cheers


Tags: pdf
page tree search
Asked by s rv:

i have a pagetree search macro on my pages in confluence. they are the HTML files ion the page and are imported using a word doc on to this page.

now when i perform a search using the pagetree search, search displays no results.

please help!


Answers:
author: s rv
body: It is working, Thank you!


author: Miranda Rawson
body: Based on your description, it seems that the Confluence search index didn't update properly. Can you please try to do a rebuild of the content indices to see if it solves the issue? We have the documentation below:

<https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html>
How do I add "Page x of y" to the footer of a pdf export?
Asked by Daniel Park:

For the stylesheet customisation I've found how to add the page number e.g. Page 1. But not Page 1 or 10 etc.

Can I add that somehow?


Answers:
author: Vero Rivas
body: Hi [@Daniel Park](/t5/user/viewprofilepage/user-id/1136037)

Look at this post, maybe can help you

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

Cheers


Tags: export

pdf
User administration
Asked by Deep / Marketing:

I need to know if its possible to have user activity log. When we send an invite to a staff member to sign up for Confluence, I need to know if they have accepted it and signed it. also I need to track if they have been using the newtork (user log)


Answers:
author: Nic Brough -Adaptavist-
body: Confluence isn't designed for user tracking, but it does store "user logged in" information against a users' profile, so you can just check that to see if they've logged in.
Line break \n not working for plant UML
Asked by Akhil_vs:

Hello Team,

I am using Confluence plant UML plugin version 6.6.

But when Iplace the following macro in the page I face syntax error because of line break charecter \\n.

@startuml

actor Bob #red

' The only difference between actor

'and participant is the drawing

participant Alice

participant "I have a really\\nlong name" as L #99FF99 #error happens here

/' You can also declare:

participant L as "I have a really\\nlong name" #99FF99

'/

Alice-\>Bob: Authentication Request

Bob-\>Alice: Authentication Response

Once I save this page after providing this macro, the page displays a syntax error. However if I remove \\n diagram appears but without a line break.

Please provide a resoltuion for this issue.

Bob-\>L: Log transaction

@enduml


Answers:
author: Michael Griffel
body: <https://avono-support.atlassian.net/browse/PUML-424>


Tags: confluence-app
RPC: request rejected (bad origin) in Confluence Development instance
Asked by Adrian Smith:

I am working on a Confluence plugin, and all of the sudden today found that I am unable to create spaces in the Confluence Development instance, the create page just loads forever:

![ClxMN](/t5/image/serverpage/image-id/2144iB76C0F7267091E8B/image-size/large?v=v2&px=999 "ClxMN")  
I can browse the rest of the instance fine, including things like configuring the plugin I am working on. I was able to create pages with the same plugin yesterday.

I have created an empty plugin with \`atlas-create-confluence-plugin\`, and the issue still occurs there after using \`atlas-run\`. Looking at the console log in Chrome the issue appears to be an error:  
\`RPC: request rejected (bad origin): http://5cg61629pv:1990\`

This seems to indicate some sort of Cross Origin issue, but I can't trace the problem any further than that.

I have tried:

\* Rebooting Chrome  
\* Rebooting machine  
\* Rebooting and rebuilding development instance  
\* Turning off all malware/firewall software  
\* Tried in Chrome, IE, Edge

I have also tried with Confluence versions 6.2.0 and 6.2.2.

I can't think of anything else to try, so any help is welcome.


Answers:
author: AnnWorley
body: Based on your initial theory that the issue is XSRF related, please check the logs for the errors in[After upgrading Confluence, you are unable to create new pages or spaces](https://confluence.atlassian.com/confkb/after-upgrading-confluence-you-are-unable-to-create-new-pages-or-spaces-785457379.html)

I have seen the editor hang when the base URL is not the same as the URL being used in the browser. Please check your base URL at Confluence Admin\>General Configutration.


author: Shankar Murthy Pokala
body: I did faced this issue earlier in local instance. You need to turn off the Collaborative Editing in General Configuration screen.


Tags: confluence-app
Confluence Lucene Query Mapper (custom) not working
Asked by Marco Baldelli:

Hi all,  
I'm working on a brand new Confluence 6.2.2 instance to test a new feature that I would like to implement, to be more specific a query mapper for a custom search. Using this guide <https://developer.atlassian.com/confdev/plugin-cookbook/extending-the-v2-search-api> that extends V2 search (so I guess that should work on Confluence 6.2.2) I create my SimpleQuery and my SimpleQueryMapper class and added in my atlassian-plugin.xml the following  

```
<lucene-query-mapper key="simple" class="com.my.package.confluence.SimpleQueryMapper" handles="simple"/>
```

When I install the plugin I can see the component on the Add-on interface, but the constructor of the SimpleQueryMapper is not called at all.   

Am I missing something or what?  

Thank you,  
Marco


Answers:
author: Gonchik Tsymzhitov
body: Hi!

did you figure out that problem?

I will be happy to read


Tags: lucene

confluence-development

development
Is it possible for a dropdown and checkbox in editing mode while using Meeting Notes with a template
Asked by Glen Collins:

Hello everyone. I'm trying to use the Meeting notes section with a template and I would like to include both a checkbox and a dropdown during the editing of the meeting notes and is only changable in edit mode and when the meeting notes is saved, it become uneditable while viewing.

Is this possible? I'm experimented with variables, user macros and other ways to do this but it's not ending in the result I wanted.

With the variables it's only selectable before it gets into the editor. With the macros it's only available AFTER saving the page and not in editor mode.

Is this even possible?

I'm using Confluence 6.2.1.

Thank you.


Answers:
author: Davin Studer
body: Honestly, I think a user macro would be the easiest way I know to do this. It adds a couple extra clicks, but I can't think of any other way to do it.
How to add a Banner Image To Confluence Cloud
Asked by NC:

Is there a way to add a unique image as a page wide banner to a confluence page? if not is it possible to set either a catagory or space header image?


Answers:
author: AnnWorley
body: This plugin is worth a trial: [Announcer for Confluence](https://marketplace.atlassian.com/plugins/com.wittified.atl-announcer-confluence/cloud/overview)

For a space header you may configure it at Space Tools\>Look and Feel\> Sidebar, Header and Footer.

comments: author: NC
body: hi thats great however i am having dificulty with the scale my image is always oversized ref. the page when i place this in the header.

any help?


author: Daniel Berkich
body: Add this to the Header and/or footer, make changes as desired

{markdown}\<div style="background:green; color:white; text-align:center; font-size:x-large"\>UNCLASSIFIED//FOR OFFICIAL USE ONLY \</div\>{markdown}

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

comments: author: Rory Apperson
body: Well, that didn't work. Here's the error:  

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'markdown' is unknown.


author: SKMCC
body: Looks like you can now:

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

Just hover above the title of the page to see the options in Edit mode.

comments: author: Shrijal Pradhan
body: Does using the header image come at a cost to the storage?


author: Tibor Bal?zs
body: Hi Shrijal,

If you upload your own image, then yes, As the picture is saved as an attachment to that specific page.

Have a great day,


Tags: confluence-cloud
How to escape a dash character in Confluence
Asked by Christian Becker:

Hi There,

I'm trying to insert a Dash as first character in a list.

* - Something
* - Someting differnt

But when inserting the dash and than adding a space, confluence will remove the last entry of the list instead.

There is a workaround by first inserting someting and then inserting the dash - but this can't realy be the solution.

Escaping using a Slash didn't help

Bests

Chris


Answers:
author: Ren? Jansen
body: just wondering if there is a solution. I am trying to make a table of compiler options like -mhard-floar but that ends up in unreadable disaster. Just an option to switch off all 'helpful' things would be great.


author: Christian Becker
body: OK, now we got 3 workarounds. Obviously this is a know issue. Are there any intentions to fix this?

comments: author: Davin Studer
body: You could raise an issue for this at jira.atlassian.com. That is where Atlassian tracks bugs and feature requests for their products.


author: Davin Studer
body: Another workaround would be to use a different character such as the \~ character. And then after your list is complete do a find and replace. To do a find and replace hit ctrl + f while in edit mode and you will see a bar drop down with text boxes for the find a replace. Not ideal I know, but it is a workaround.


author: Thomas Schlegel
body: Hi Christian,

a workaround is, clicking the undo-button (or STRG+z) after the last entry was removed.
Why I can't switch to ZIRA System dashboard from Confluence?
Asked by John Nguyen-Ex:

After registered to Confluence forum instead of ZIRA System Dash Board that I realy wanted. I am unable to switch to ZIRA forum, or neither login even thou I 've logged out from Confluence.

Thanks for the helps,

John


Answers:
author: AnnWorley
body: [ZIRA](http://www.zira.com.ba/) is not an Atlassian product so I am not sure why logging into Confluence would prevent you accessing a ZIRA dashboard.

Please try a private browsing or "incognito" session to access ZIRA. If you still cannot log into their system, please contact ZIRA support

comments: author: John Nguyen-Ex
body: How can I this confluence accounr be deleted or disabled ?


author: Nic Brough -Adaptavist-
body: Your administrators can shut down and delete accounts.