youngmon/atlassian-qna huggingface dataset:
How can I get the space-key into my space blueprint template?
Asked by Ozan G?der:

Hi,

i am writing a space blueprint with the help of the "Write a simple Confluence Space blueprint" tutorial. I now need to write a template which contains the tasks-report-macro but i have a problem with getting the space-key as a parameter inside the macro.

Using \<at:var at:name="key"/\> doesn't work. When i look at the storage format of the created template the spaces-parameter looks like this: \<ac:parameter ac:name="spaces" /\>

My (not working) code looks like this:

```
<ac:structured-macro ac:name="tasks-report-macro">
    <ac:parameter ac:name="spaces"><at:var at:name="key"/></ac:parameter>
    <ac:parameter ac:name="pageSize">10</ac:parameter>
    <ac:parameter ac:name="labels">product-requirements</ac:parameter>
</ac:structured-macro>
```

Thanks for you help! :)


Answers:
author: Mirtul
body: for anyone still looking for an answer to this (I know I did):

the space-key variable is named "spaceKey", not "key"

```
<at:var at:name="spaceKey"/>
```


author: Simon Neuville
body: I am also looking for an answer to this question!

Would be great if this was solved and documented somewhere. Unfortunately, the documentation for space blueprints is really lacking...


author: Robert Reiner _smartics_
body: I can only offer a hack as a workaround:

Add the XML element to the blueprint context and render it.

The following code snippet is from an implementation based on the *com.atlassian.confluence.plugins.createcontent.api.contextproviders.AbstractBlueprintContextProvider* . The context points to an object of type *com.atlassian.confluence.plugins.createcontent.api.contextproviders.BlueprintContext* . The *spaceKey* is simply the string with the key.

```
 context.put("spaceKeyElement",
 "<ri:space ri:space-key=\"" + spaceKey + "\" />");
```

The add this to the XML blueprint:

```
<ac:parameter ac:name="spaceKey"><at:var at:name="spaceKeyElement" at:rawxhtml="true"/></ac:parameter>
```


author: Micle dortel
body: I have the same question. Did you find something ?
What do I do to make the ".pagetitle {page-break-before: always;}" work on the stylesheet when expor
Asked by Sandra Hern?ndez:

Best regards, thanks for your help, I am new to confluence

I have a space called "Manual - RevoApps 7.0", which I want to export to pdf, I went to the Space Tools and:  
1. Set up the style sheet like this:

![hojadeEstilos.jpg](/t5/image/serverpage/image-id/23296iC8DB0265C600187B/image-size/large?v=v2&px=999 "hojadeEstilos.jpg")2. I configured the pdf design like this:

![dise?oPDF.jpg](/t5/image/serverpage/image-id/23298iCE93AFCDDE81047E/image-size/large?v=v2&px=999 "dise?oPDF.jpg")

I have tried several things, but nothing! Looking for I found these situations, could it be causing any of them?

![situaciones.jpg](/t5/image/serverpage/image-id/23299i64E9447034DE5A3D/image-size/large?v=v2&px=999 "situaciones.jpg")thank you very much for your help


Answers:
author: AnnWorley
body: Please let me know what the expected results are for the export versus the way it is turning out. I am also curious what the expected result of the customization is and what the PDF export looks like without the customizations, for example if you just do the standard export to space:
> **To export a space or selected pages to PDF:**  
> 1. Go to the space and choose **Space tools** \> **Content Tools** on the sidebar.
> 2. Choose **Export** .This option will only be visible if you have the 'Export Space' permission.
> 3. Select **PDF** then choose **Next**
> 4. Decide whether you need to customise the export:
>    * Select **Normal Export** to produce a PDF file containing all the pages that you have permission to view.
>    * Select **Custom Export** if you want to export a subset of pages.
> 5. Select the pages you want to export.
>    * You have the option to **Select All** or **Deselect All** pages.
>    * When you select a page, all its child pages will also be selected. Similarly, when you deselect a page all its child pages will also be deselected.
> 6. Choose **Export**.
7. When the export process has finished, download and save the PDF file as prompted.  
Thanks,  
Ann


Tags: confluence-server

server
how to allow another user to pay bill confluence
Asked by Alejandro Leyva:

I need to give another user in Confluence the right to pay the bill


Answers:
author: Thomas Schlegel
body: Hi [@Alejandro Leyva](/t5/user/viewprofilepage/user-id/1202729),

for questions regarding your user account and payment, please contact Atlassian support directly:

<https://support.atlassian.com/contact/#/>

comments: author: Shannon S
body: Alejandro,

You can reach out to our Customer Advocates via the URL Thomas has provided. There you can ask them how to add another user as a billing user.

Hope that helps!

Shannon


Tags: cloud

confluence-cloud
PDF Export doesn't work at all
Asked by Katrin Habenicht:

The export to PDF of a single page shows "100% complete" and Download HERE. But than nothing happens. No file anywhere! I don't know, why I am doing wrong. I am using Safari.


Answers:
author: Thomas Schlegel
body: Hi [@Katrin Habenicht](/t5/user/viewprofilepage/user-id/1448123),

maybe a dumb question, but did you click on "here" ?

comments: author: Katrin Habenicht
body: Yes, of course! But seems to be a bug with Safari. It works on Firefox.


author: Thomas Schlegel
body: Thanks for the information. I found the problem here also:

<https://jira.atlassian.com/browse/CONFCLOUD-59433>

Maybe you want to vote for it.


author: Katrin Habenicht
body: Thanks!


Tags: cloud

confluence-cloud

export

pdf
Error message Confluence is vacant, a call to tenanted
Asked by Rogier The:

Confluence was working fine and today I got the following error when trying to log in:

**message** ++Confluence is vacant, a call to tenanted \[public abstract org.hibernate.Session org.hibernate.SessionFactory.getCurrentSession() throws org.hibernate.HibernateException\] is not allowed.++


Answers:
author: Igor M.
body: Hello,

Were there any changes recently made to Confluence or server it's installed on? Like name change? localhosts file modification? Network changes?

This error typically is logged during install as outlined in [Confluence generates Confluence is vacant error on install](https://confluence.atlassian.com/confkb/confluence-generates-confluence-is-vacant-error-on-install-779164449.html?_ga=2.214215127.1566110623.1527487236-543923426.1525846399) KB, and fixed by making sure Confluence can ping localhost with ping \`cat /etc/hostname.

If you can ping your localhost and get the right IP, it could also be caused by Confluence going up before DB was ready. If that is the case, could you verify your DB is up and reachable, there is enough free space on DB server, and if everything is fine, restart Confluence to bring it back up and reconnect to DB.

Let me know how it goes

Regards,

Igor

comments: author: Rogier The
body: Thanks Igor for your answer. I'll try and let you know. Re. Rogier


Tags: confluence-server

server
Unable to login local jira server
Asked by rsubudhi:

Hi I have installed a local jira server and i used my user name as admin.

Now somehow i am not able to login as administrator .

How do i recover password and able to login.


Answers:
author: Nic Brough -Adaptavist-
body: Start at <https://confluence.atlassian.com/jira/retrieving-the-jira-administrator-192836.html>

comments: author: rsubudhi
body: Thanks . where is the db located . how to run db commands


author: Nic Brough -Adaptavist-
body: The database is located whereever you told Jira to look.

If you used the internal database, then it's actually a file in the home directory under /database and you'll need extra database tools to read/edit it. The database type will be h2 (assuming you're using Jira 7)
Global Activity - SQL Request
Asked by Jonathan Smith:

Hi everyone,

I am looking to obtain the SQL behind the scenes which generates the global activity graphs. My goal is to show a year activity view by modifying the date parameters.

Any SQL or note to the correct table would be great.

Thanks!


Answers:
author: Gezim Shehu [Communardo]
body: EDIT -\>\> unrelated to question. This only applies to JIRA DB

```
 SELECT DISTINCT
 p.pname,p.pkey
 ,i.issuenum,cg.issueid
 ,cg.ID ,cg.AUTHOR,cg.CREATED
 ,ci.FIELDTYPE,ci.FIELD
 ,ci.OLDVALUE,ci.OLDSTRING
 ,ci.NEWVALUE,ci.NEWSTRING
 
 FROM 
 changegroup cg 
 INNER JOIN jiraissue i on cg.issueid = i.id
 INNER JOIN project p on i.project = p.id
 INNER JOIN issuetype t ON i.issuetype=t.id
 INNER JOIN changeitem ci on ci.groupid = cg.id AND ci.FIELDTYPE='jira' AND ci.FIELD='status'?
 
 WHERE 
 p.pname = 'project name
 AND t.pname = 'issue type name'
 AND ci.oldstring = 'old status name'
 AND ci.newstring = 'new status name'
```

comments: author: Jonathan Smith
body: Thanks [@Gezim Shehu \[Communardo\]](/t5/user/viewprofilepage/user-id/734200). I am however looking for Confluence results.


author: Gezim Shehu [Communardo]
body: LMAO so sorry.

Didn't really see the labels, as I usually have them defined in my feed (not today though :) )


Tags: confluence-server

server
Create New licence key
Asked by Tania Azevedo:

Hi. I did an initial setup of the self hosting of confluence using the container image on the cloud. Due internal restrictions, I need to change the hosting to an internal server. I'd downloaded the installer, but I am unable to regenerate the license key with the new server ID. It redirects to the old hostname after the initial install.


Answers:
author: AnnWorley
body: Hi Tania,

Your license key should be retrievable from [https://my.atlassian.com. It](https://my.atlassian.com.?It) can be applied to different servers regardless of server ID. I am not sure what the cloud image is that you used for self hosting, I understand you are self hosting on a server internal to your organizations's network now. The license key is independent of these changes.

Thanks,

Ann
Does Confluence search present results from multiple versions of a page?
Asked by Robb Wiedrich:

If a given Confluence page has multiple versions, does a search return search hits from older versions?

Example: I list a JIRA Issue in a Confluence page set up to track tasks. In subsequent meetings that JIRA issue is closed and is removed from a newer saved version of the Confluence page. I eventually want to search and find when that Issue was discussed and the notes associated with it?

Will the search find that version of the Confluence page where the JIRA issue was discussed?

If not, do you have a suggestion on how to find content like this?


Answers:
author: Davin Studer
body: Only current pages are returned in the search results, but if you have access to running SQL you could do something like this ...

```
declare @searchTerm nvarchar(512)set @searchTerm = 'ac:name="jira"' -- <-- Put your search term hereselect    case        when C1.PREVVER is null then S1.SPACEKEY        else S2.SPACEKEY    end SPACEKEY,    C1.TITLE,    C1.[VERSION],    case        when C1.PREVVER is null then C1.CONTENTID        else C2.CONTENTID    end CONTENTIDfrom CONTENT C1left outer join CONTENT C2 on C1.PREVVER = C2.CONTENTIDinner join BODYCONTENT B on C1.CONTENTID = B.CONTENTIDleft outer join SPACES S1 on C1.SPACEID = S1.SPACEIDleft outer join SPACES S2 on C2.SPACEID = S2.SPACEIDwhere C1.CONTENT_STATUS = 'current'    and C1.CONTENTTYPE = 'PAGE'    and B.BODY like '%' + @searchTerm + '%'order by SPACEKEY, C1.TITLE, C1.[VERSION] DESC
```


author: Manon Soubies-Camy
body: Hello Robb and welcome to Community!

There was a feature request: [Add ability to search historical pages and attachments](https://jira.atlassian.com/browse/CONFSERVER-1281), but Atlassian replied they wouldn't do it. As far as I know, there isn't any add-on answering your need.

A workaround might be to use the hide-if macro from [Visibility](https://marketplace.atlassian.com/apps/202/visibility-for-confluence?hosting=server&tab=overview) (free app) and store there your previous Jira issues and comments. They would not be shown when viewing the page, but still be searchable since content is indexed.

Hope this helps,

- Manon


Tags: confluence-server

server
Give contractor ability to edit a page
Asked by Mark Kosoglow:

We have an 3rd party contractor doing some work. It would be great to give them access to specific pages to input data for us, rather than having to link out to another doc, etc.

Is it possible to give someone access like this?


Answers:
author: Thomas Schlegel
body: Hi [@Mark Kosoglow](/t5/user/viewprofilepage/user-id/1447435),

you can give them access to a space, not to single page.

If you want to give them access to a specific page only, you can do it like that:

* Give them access to the space
* Restrict **all the other** pages in that space to **everyone else except the 3rd party contractor**

You can make it a little bit easier, if you put the two types of pages under separate parent pages and restrict only these pages (since viewing restrictions are inherited by the subpages)

But I won't do that. Everytime, you add a new page, you have to think about the restrictions. It is a permission administration hell.

Why not using another space for the pages, your contractor should use?

comments: author: Mark Kosoglow
body: Thanks [@Thomas Schlegel](/t5/user/viewprofilepage/user-id/781483).

So, create a new space and give contractor access to all pages in that space?

I can then create some summary list of the pages in the contractor's space back at our internal space, right?

Also, does this require giving them a license from our company or can the use it without?

Sorry - pretty new so figuring things out.


author: Thomas Schlegel
body: No problem, that's what this community is for, asking questions.

Yes, you need licenses for everyone who is able to login into your system.

You should also give access to all your other users in the new space, not just the contractor.

If you want to show the content of the contractor's spaces in your internal spaces, you can use the "include page"-macro for that purpose.


Tags: cloud

confluence-cloud
Failed to upload PDF files
Asked by Sue Boundford:

Message received: You must first lock the file 1 5 Direct Debit Rejections.pdf before it can be edited.

I cannot lock the file as it's stored in my folder and not opened by anyone else.


Answers:
author: Thomas Schlegel
body: Hi Sue,

have you seen this;

<https://community.atlassian.com/t5/Confluence-questions/Expected-behavior-when-uploading-a-new-version-of-an-attachment/qaq-p/82884>

Maybe you're running into a similar problem.

comments: author: Sue Boundford
body: Hi Thomas, thanks for that... my upload problem is because of the spaces in between some of the words... I will need to rename them to ensure an upload.

Who ever named them did not have proper naming conventions in place.

Thanks for you input.


author: Thomas Schlegel
body: Great, you found the problem, [@Sue Boundford](/t5/user/viewprofilepage/user-id/1447261)


Tags: confluence-server

server
How to create a change log in Confluence for a project
Asked by Ellen Beentjes:

Is there a way to create a change log in Confluence for a JIRA projects that shows a complete list (or from the last % days, of resolved and released issues per version?


Answers:
author: Ellen Beentjes
body: Hi [@Ellen Beentjes](/t5/user/viewprofilepage/user-id/533711),

My suggestion would be to write a JQL query (this does assume you have JIRA as well);

All issues with a fix version that has been released, you can specify the project in brackets however if you keep it blank the query will search all projects in JIRA.

```
fixVersion in releasedVersions(PROJECT)
```

This is essentially the same however there is a limit imposed when the issue was resolved. This query looks at all projects as there is no project specified.

```
fixVersion in releasedVersions() AND resolved >= -Xd
```

Once you have saved the JQL query. Navigate to Confluence and add the 2-dimensional statistics gadget, you can do this by following the [Confluence documentation](https://confluence.atlassian.com/confkb/how-to-bring-jira-and-jira-agile-reports-into-confluence-779163801.html). Configure your gadget so it displays Fix for Versions along one of the Axes (X or Y). I chose the other to display resolutions however you can configure however you would like.

This should fulfil your requirements.

Hope this helps

comments: author: Ellen Beentjes
body: Thanks Danny, I'll give it a try :-)


author: Ellen Beentjes
body: We use Confluence Cloud, so the 2-dimensional statistics gadget is not an option. The query is for now sufficient, so thanks for your help!


Tags: change-history

cloud

confluence-cloud
Deactivate Confluence Email Notifications Plugin and use emails only with Comala workflows
Asked by Oliver Kubon:

Hello everybody,

I think many users are aware of the problem with Global Email Settings. They just do not exist and the only way to avoid email spam is that each user deactivates the email settings in their own profile. With 500 to 1000 users this is not really a good option.

We use Confluence 6.8.2 (Server) and Comala Worklows 5.4.1.

The only mail traffic we need is from the Comala workflows. However, the workflows can only send emails when the mail server is set up. So I am trying to find a way in which any Confluence Notifications is disabled via email except for the workflows.

<br />

To achieve that, I have the following idea:  
I set up the mail server and completely disable the **Confluence Email Notifications plugin** . As far as I know, the plugin ensures that mails are ever sent as soon as something happens in Confluence.  
Thus, Comala Workflow has an active mail server and nobody feels disturbed by the many mails from Confluence itself.

I am not sure if this plan works and I thought I could ask the community in advance.  
Has anyone tried this before or has experience disabling the Confluence Email Notifications plugin?

Best regards  
Oliver


Answers:
author: Oliver Kubon
body: If someone has a similar problem in the future:

I have tested my idea and it works fine! :)

Set up the mail server and disable the **Confluence Email Notifications plugin.**If you use the {send-email} macro in comala it will send an email without any problems.

No Spam anymore!

Best regards  
Oliver


Tags: app

comala

confluence-server

email

notification

server

workflow
Companion doesn't launch at all - Mac 10.13.2
Asked by Arthur CHAN:

Hi there, I just registered Confluence for trial and have Companion app downloaded to my Mac Air - Mac 10.13.2.

The installation was smooth and Application icon shown up. However, after that, there's nothing launched.

Checking the Activity Monitor, Companion and Companion helper processes were there.

Anyone has experienced this or is there any solution / fix for it?


Answers:
author: Dan Breyen
body: Hi [@Arthur CHAN](/t5/user/viewprofilepage/user-id/1446767) I'm wondering if this is still an issue. I think things have changed with newer operating systems. I searched for an App from the App store on my Mac and couldn't find one for Jira or Confluence.


author: Shannon S
body: Hi Arthur,

Is there a Charlie icon up in your top menu bar to show that it's running? A physical window won't open so this would be your primary indicator.

Additionally, what happens now when you try to edit a document in Confluence? Does it prompt you to download Companion App again?

Lastly, a few other users had issues, and were able to resolve it in this thread:

* [Solved: Companion App does not launch once it's installed](https://community.atlassian.com/t5/Confluence-questions/Companion-App-does-not-launch-once-it-s-installed/qaq-p/612711)

You can give those suggestions a try as well and see if you have any issues.

Regards,

Shannon


Tags: companion-app

confluence-cloud
Import of Confluence space from another server
Asked by Stefan Buenemann:

I received an exported space from another Confluence server, which I want to import into our Confluence server. I read all the instructions how to do it and want to ensure this export is really only a space and not the whole site. How can I check/validate this in the zip file provided?


Answers:
author: Moses Thomas
body: [@Stefan Buenemann](/t5/user/viewprofilepage/user-id/1446626)I recommend that you first try it in Test environment, there you can verify.

Best!
Does Confluence have issues when a username has a '.' in it?
Asked by Lucy Mardell:

We use the LDAP group function to allow access to confluence. We have one user that has a '.' within the name and it won't sync through to confluence.

We're running on Server 5.10.8.

Any ideas??


Answers:
author: Madhura A S
body: We are also using LDAP authentication in Confluence and many usernames have '.' in it. But never faced the problem. Even my username has '.' . But never faced issue.

comments: author: Lucy Mardell
body: Thanks for the reply. I'll continue to investigate.


author: Danyal Iqbal
body: Yes, remove the '.'


Tags: confluence-server

server
Show changes that was did inside macroses
Asked by khashashin:

When I click view changes it shows me my page but doesn't show the changes. This page has macroses and all changes was inside this macroses. Is ther a way to fix that some how?

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

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


Answers:
author: Manon Soubies-Camy
body: Hello [@khashashin](/t5/user/viewprofilepage/user-id/1200657),

What version of Scaffolding are you running? They recently released the [Scaffolding history feature](https://docs.servicerocket.com/scaffolding/user-guide/checking-changes-made-to-scaffolding-content-with-scaffolding-data-history?__hstc=80426056.c687dc56659429d4567cd4134b4d0fd1.1527680682708.1527680682708.1527680682708.1&__hssc=80426056.1.1527680682708&__hsfp=1157552025), it's been available since v8.18.0.

Hope this helps,

- Manon


author: Danyal Iqbal
body: It is indeed showing changes (notice the green /red highlights in the screenshots)

What exactly would you like to see? Changes within the macro cannot be tracked per se.


Tags: confluence-server

scaffolding

server