youngmon/atlassian-qna huggingface dataset:
How to create a Confluence template from JIRA
Asked by John Hill:

I have a usecase which involves creating a confluence template from within a JIRA issue. Is there a pattern to follow?


Answers:
author: AnnWorley
body: Hi John,

Creating Confluence pages from within Jira issues isn't currently included in the integration. There is a feature request open to add that functionality:[Create Confluence Page from Jira.](https://jira.atlassian.com/browse/JRASERVER-39655) it is "gathering interest" so please add your vote or comment to it if it sounds like it would be useful to you.

Here is a doc that covers what you can do with the two applications together: [Use Jira applications and Confluence together](https://confluence.atlassian.com/doc/use-jira-applications-and-confluence-together-427623543.html)

Please let us know more about your use case, in case someone on the forum can help. When you mention creating a confluence template, do you mean a [page template](https://confluence.atlassian.com/doc/page-templates-296093785.html)?

Thanks,

Ann

comments: author: John Hill
body: I was able to solve this problem by embedded a link as: <https://community.atlassian.com/t5/Confluence-questions/Can-I-trigger-a-template-from-a-link/qaq-p/134700>


Tags: jira-software

template
Formatting single-page PDF exports
Asked by James H:

So Confluence help says

* PDF customization only applies to space exports (not single page exports via **Tools** \> **Export to PDF**, there is no way to style these exports)

(<https://confluence.atlassian.com/conf66/customize-exports-to-pdf-943961603.html>)

Has anyone found a workaround for that?!

If not, Atlassian please could you address this in the next release? The exports currently look dog-ugly and aren't suitable for producing something client-facing.


Answers:
author: Bill Bailey
body: Well if you want client-facing, then I would suggest Scroll (K15t) PDF export plugin. That is how we generate all of our docs.


author: Mary Connor
body: Is there a feature request for this we can vote for? It's a huge hole, not being able to do *basic* branding/copyright for articles that our customers take from our site!

And on Cloud, adding Scroll PDF doesn't *remove* the built-in **Export to PDF** .![export-to-pdf.png](https://community.atlassian.com/t5/image/serverpage/image-id/21722iA373C91F9568938A/image-dimensions/192x186?v=v2 "export-to-pdf.png")


Tags: css

export

format

pdf
Is there a way to restrict space/page view access from a user or group?
Asked by bstinson:

Let's say I have a space that I want everyone in the company to be able to see except a certain group or user. Is there a way to say grant access to the AllUser group and prevent justThisOneGroup from being able to access?

The only way I have found so far is to remove the AllUsers group and add every departmentGroup with view access except justThisOneGroup.

It's tedious doing it the way I describe. It would be nicer if you could change restrict privileges "to" these groups into restrict privileges "from" these groups. As in prevent this group from viewing this space. That way I could add all users to the view access and then add the one or two groups to the restrict from view access.


Answers:
author: Bill Bailey
body: Well, that is the way you have to do it. Confluence permissions are inherited, so you have to break up your big group into group1 and group2. No way I know of around this. A customer of mine had to do something similar by moving contractors to their own group, so that there was an employees only, and a contractor group.

comments: author: bstinson
body: Documentation states (and I verified the behavior) that you can add a group from the admin UI and then just remove all the permissions for that group and hit save. The group will disappear from the list in the admin UI but when you go to the page or space from the frontend you will see that yourGroupYouAddedWithNoPrivs "Has No Access". It's hard to trust when it disappears from the list in the Admin UI and it isn't helpful for a user looking to restrict access to their space. It would be nice if "Has No Access" was just one of the selections in the restriction list.


author: GG
body: Yes, the Confluence Permissions tab only shows users or groups who have access to that Space. The tricky part is that Confluence Permissions are additive: if you add all Confluence Users (confluence-users group) to the Space, yourGroupYouAddedWithNoPrivs will also have access to the Space, even if you added them and unchecked all the checkboxes (as they are members of the confluence-users group).

So I also recommend creating a group for everyone except that special group.

For a clearer picture on who can see what, I highly recommend the Ultimate Permission Manager app. It will show and explain which user can see the Space / Pages and why.

<https://marketplace.atlassian.com/plugins/hu.metainf.plugin.confluence.ultimate-permission-manager/server/overview>


Tags: permission

restriction
We have no password for the admin account in Confluence
Asked by Paul Jeanmaire:

We are running Confluence version 5.10, and we do not have an admin account for JIRA, but not for Confluence and it appears that Confluence does not recognize the JIRA admin account like it states. So there is no entry in Confluence for any record of the admin password or account. Any ideas?


Answers:
author: AnnWorley
body: You may regain admin access to your Confluence 5.10 instance by following this guide: [Restore Passwords To Recover Admin User Rights](https://confluence.atlassian.com/conf510/restore-passwords-to-recover-admin-user-rights-829077919.html)

Please follow the entire guide as there are several conditions that must be met before you can log in. For example, the internal user directory has to be active and the admin account has to be in the confluence-administrators group, among other variables.

comments: author: Paul Jeanmaire
body: Right, we have an stsadmin account, but it does give us the capability to add a new user to the confluence-adminstrators group, but that user does not have admin rights when he tries to add a user, which makes no sense. It's like the system doesn't recognize this administrator's group.
How can I show/list file size in ?Attachments? Macro in Confluence?
Asked by David Lowy:

How can I show/list file size in 'Attachments' Macro in Confluence?


Answers:
author: Shannon S
body: Hi David,

Your title and question seem to have a mismatch, could you let us know what you're trying to do exactly?

You can insert the [Attachments Macro](https://confluence.atlassian.com/doc/attachments-macro-97911315.html) into a page and that will list the attachments for a page.

I suspect the title might have been copied over from another question somehow so if the attachments macro isn't what you're looking to do, can you elaborate a bit more?

Regards,

Shannon

comments: author: David Lowy
body: Apologies, some browser issue caching prior title. I want to use the Attachments Macro but have the listing show attachments file size.


author: Shannon S
body: Thank you for that, David, my apologies. I understand what you're trying to do now.

The Attachments macro will only display the modified date and the filename, so you will need to view the file size from the **. . .** menu on the top right and clicking **Attachments**.

I've created a feature request to be able to view it as a column in the Attachments macro.

Please feel free to vote on it as we gather interest, and comment with your usage case:

* [CONFSERVER-54967](https://jira.atlassian.com/browse/CONFSERVER-54967)

There's a database query that may help you gather the information you need:

* [How do I list all attachments in Confluence with their location and file sizes](https://confluence.atlassian.com/confkb/how-do-i-list-all-attachments-in-confluence-with-their-location-and-file-sizes-346325893.html)

Let me know if you have any questions.

Regards,

Shannon


author: David Lowy
body: Thank you! Voted.


Tags: attachment
Not able to start
Asked by Markus Wilhelm:

Hello,

I installed confluence 5.7.1 on my Server.   
After the first launch, I configured the databaseconnection and so on. All looks fine.   
Now I restarted Confluence and it hangs up with this message -\> "

HTTP Status 500 - java.lang.IllegalStateException: Spring Application context has not been set" {#toc-hId-1789730748}
---------------------------------------------------------------------------------------------------------------------

How can I fix this?

Thanks  
Markus


Answers:
author: Francesc Arb?
body: Hello [@Markus Wilhelm](/t5/user/viewprofilepage/user-id/701216)

Can you paste the whole error, please?


author: AnnWorley
body: Hi Markus,

There are several possible causes of the error you are reporting, I am afraid you will have to review them and see which ones may apply to your case:

[Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html)

I am curious why you are installing Confluence 5.7.1, as it has passed [End of Life](https://confluence.atlassian.com/support/atlassian-support-end-of-life-policy-201851003.html). Are you preparing a test environment for an upgrade?

Thanks,

Ann
Using Confluence Data Centre license on a Server instance
Asked by Martin Ford:

Hi, we're currently running a Confluence Server instance (version 6.1.3) with a 100 user license. I've been given a new, 500 user, Data Centre license for Confluence, which, I understood, would work fine on a Confluence Server instance...

However, on applying the Data Centre license to the Server instance, Confluence informs me it want's to upgrade itself.

Can anyone shed any light on whether a Data Centre license can indeed be applied to a Server instance of Confluence?

Thanks, Martin


Answers:
author: Danyal Iqbal
body: No, the data centre license wont work with server instance.
How to hide "Content by Label" if it returns no data
Asked by adrianoatl:

Is there a way to hide the small Content by Label window on a page if it returns no data? It'd give a better visibility on the page.

![Screen Shot 2018-02-12 at 1.19.39 PM.jpg](/t5/image/serverpage/image-id/14709i9B9D3D0DB1669F1D/image-size/large?v=v2&px=999 "Screen Shot 2018-02-12 at 1.19.39 PM.jpg")


Answers:
author: Shannon S
body: Hi Adriano,

There's no built-in way, but [@Stephen Deutsch](/t5/user/viewprofilepage/user-id/781490) came up with a way on this post using CSS:

* [Suppress the box and / or graphic when no content matches?](https://community.atlassian.com/t5/Confluence-questions/Suppress-the-box-and-or-graphic-when-no-content-matches/qaq-p/120243)

Give that a try and let me know if you have any trouble.

Regards,

Shannon

comments: author: adrianoatl
body: Thank you so much!


author: Shannon S
body: You're welcome, Adriano!

Shannon
JIRA Dashboard Gadget for Add-on Updates
Asked by Doug Kozar:

Does anyone know of a gadget or an easy way to display the JIRA Add-ons I have installed and whether there is an update available to them?

I want my Dashboard to give me more of an overview to the management and maintenance needs for our JIRA and Confluence installation and being able to see if an add-on has an update available would be great to show on my dashboard.

Thank you.


Answers:
author: Nic Brough -Adaptavist-
body: I'm not aware of a way to get this on to the dashboards of either application, but going to admin -\> manage add-ons will list all the current add-ons with flags to show you any interesting states (such as un-licenced, disabled, or having an upgrade available)

comments: author: Doug Kozar
body: Ok, thanks [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454). Yeah, I am aware of the link clicks I need to make. Just wondering if there was a way to alert me through the dashboard that certain updates are available.

I am trying the "Quick Links" gadget but the links seems to be set in stone with no Edit or customizing capability.


Tags: dashboard

jira
Confluence and FasterXML Jackson JSON CVE-2017-15095
Asked by Lloyd Chandler:

Is confluence susceptible to this CVE, including these:

CVE-2017-7525, CVE-2017-15095, and CVE-2017-17485


Answers:
author: Robbie
body: Hi [@Lloyd Chandler](/t5/user/viewprofilepage/user-id/1182133),

None of our products are currently vulnerable to CVE-2017-7525, CVE-2017-15095, or CVE-2017-17485.

Regards,

Robbie

Atlassian Security
Obsolete labels showing up in Labels list
Asked by Lotta Lilja:

I have problems with old, deleted, labels still showing up in the labels lists. The labels list show both current and obsolete labels, i. e. not currently used on any page in the space. Now these label names show up in the list anyway, which will be confusing to my users, since the obsolete and current labels sometimes have very similar names.

I am using Brikit Targeted Search to get Label groups, but Brikit tells me this is a Confluence labels functionality problem.

So how do I get the labels list macro to show only the lables actually existing on the current pages?


Answers:
author: Sharon Metzger
body: We had a similar issue. I had cleaned up my old terminology fairly well, including labels. The labels still showed up in my 'Labels List' macro, but clicking on them showed me no pages with that label.   

In some cases I had edited pages and labels to use new terms, in some cases I deleted obsolete pages. After reindexing, the old labels still appeared. We figured out the pages I'd deleted were still in the space's Trash. Emptying the trash cleared the labels.

comments: author: Merve Nur Bas
body: That did the trick! Thank you very much.


author: Miriam Hopton
body: Thank you so much, Sharon! This worked GREAT. We were having this issue and your direction on how to handle helped so much!


author: Igor M.
body: Hey,

You can try clearing the plugins cache by following steps in: [How to clear confluence plugins cache](https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html)

Then try rebuilding the index from scratch by following steps in: [How to rebuild the content indexes from scratch](https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-110035351.html)

If you still facing issues after that, you can try DB edit, to remove any orphaned labels.

(!) Please test changes first in a test environment before applying to Production.  
(!) Always take a backup of your database, confluence home and install directories.

You can run below query to check if any page and which is still using the label in question:

```
SELECT * FROM CONTENT
WHERE CONTENTID IN (SELECT CONTENTID FROM CONTENT_LABEL
WHERE LABELID IN (SELECT LABELID FROM LABEL
WHERE NAME='[label name]' ));
```

If no pages show up or pages that do show up don't actually have said label, you can use bellow queries to remove label from DB

```

Remove the relevant entries form the content_label table first:

DELETE FROM content_label WHERE labelid IN (SELECT labelid FROM label WHERE name = '[label name]');

Then follow that with:

DELETE FROM label WHERE name = '[label name]';
```

After above edits, make sure you rebuild your index from scratch and clear plug-ins cache, as per first steps in KB.

Hope this helps

Regards,

Igor

comments: author: Lotta Lilja
body: Thanks, I will try that! :-)

//Lena


Tags: label

list
Error setting up restored database
Asked by ciezbit:

backed up and restored SQL Server database from previous installation on a different Windows Server 2012 VM.  

Specified SQL Server connection, test connection succeeded.  

database setup results in the following error at  

http://localhost:8080/setup/setupdbtype.action

below is a link to the content of a log file located in

C:\\Program Files\\Atlassian\\Confluence\\logs

[confluence120218142942-stderr.2018-02-12.log](https://bitbucket.org/snippets/ciezbit/qe65aa/confluence-setup-error-log "error log")


Answers:
author: AnnWorley
body: Thanks for the log file and description of the issue.

Because you are using a database backup from an existing instance, it sounds like you are working on either [Migrating to Another Database](https://confluence.atlassian.com/doc/migrating-to-another-database-148867.html) or [Restoring a Test Instance from Production](https://confluence.atlassian.com/doc/restoring-a-test-instance-from-production-127369720.html). Either way, you do not need to run through the setup wizard. The setup wizard runs when Confluence starts up and does not find the confluence.cfg.xml file in the Confluence home directory specified in the following file: \<confluence_install\>/confluence/WEB-INF/classes/confluence-init.properties. If you continue with the setup wizard it can overwrite the database back-up you made with blank Confluence tables.

<br />

To restore your instance on a different server the home directory also needs to be restored, and the database connection edited to "point" to the backed up database instance, as described in [Migrating to Another Database](https://confluence.atlassian.com/doc/migrating-to-another-database-148867.html):
> If you are moving your database from one server to another you can change the JDBC URL in \<confluence-home\>/confluence.cfg.xml (if you are using a direct JDBC connection) or in the definition of your datasource (if you are connecting via a datasource).

Please review the docs, let us know how it goes, and how we can help.

comments: author: ciezbit
body: Hi Ann,  

Thank you very much for your reply.

There were a few steps we needed to take:

1. give SQL user db_owner permissions
2. when prompted, recreate the database, overwriting the restored database
3. copy confluence.cfg.xml file to the new server
4. backup sites \& spaces on the old / source server
5. restore sites \& spaces to the new / target server

it works now :)

Thank you kindly


author: AnnWorley
body: Thank you for following up to let the Community know how you resolved it. Cheers!
watchers are being auto added in Confluence
Asked by sn:

hi all,

users of Confluence 5.10 server. Our JIRA 7.3 is integrated with Confluence.

Confluence is using JIRA server as user directory.

some users are receiving notifications because they are the watchers of the page/space but the problem is that they have never added themselves as watchers.

Is there a feature which is adding users automatically to pages ? If so, as an Admin how can remove this feature and let users add watchers manually?

thanks !


Answers:
author: Thomas Schlegel
body: Hi,

I think, your users are "autowatching" the content they created or changed. They can turn off autowatching here:

http://\<your-confluence-url\>/users/viewmyemailsettings.action

Your user have to change this setting on their own. A global setting will not be implemented, as you can see here:

<https://jira.atlassian.com/browse/CONFSERVER-22070>

There's a new issue here:

<https://jira.atlassian.com/browse/CONFSERVER-39970>

Maybe you want to vote for it.

comments: author: sn
body: thanks Tom

but these users do not have any activity so far.. they logged in for the first time to edit the settings. How are they being added as auto watchers to the spaces ?

I see significant number of users are in watchers list ( who haven't even logged in yet but have access).

how is this possible ? the 1 logic I can think is these users might have worked/commented/reported/assigned to the issues in the linked JIRA project.


Tags: confluence-administration
I want to copy multiple pages from one space to another space?
Asked by Arun balaji:

Hi,

I have a space for development project called "one" and I have created some pages in it and done some modifications in the pages . I want to use those pages as a template as there are 20 more development projects are there. I do not want to create the same pages for all the 20. So how can I have the same modified pages in all spaces.

Thank you in advance


Answers:
author: Alexey Matveev
body: Hello,

You could use the Power Scripts for Confluence add-on:

[https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1219507/power-scripts-for-confluence?hosting=server&tab=overview)

It is a free add-on. I've found Power Scripts for Confluence really handy for Confluence admins who want to automate their work and apply bulk actions to Confluence.

You could clone your pages with the [clonePage](https://confluence.cprime.io/display/PSCONF/clonePage)method.


author: Mike Rink
body: Hi Arun, if you're in Confluence Server you might consider using our app[Comala Publishing](https://marketplace.atlassian.com/plugins/com.comalatech.publishing/server/overview), which allows you to copy pages from space to space. Let me know if you have any questions about it!

comments: author: H?seyin Demirocak
body: Hi how can I copy more than one page with Comala Publishing?

I only find the options copy page or copy the whole space

thank you.


author: Mike Rink
body: It's true you can only copy whole spaces, or single pages, but you can indicate which pages you *don't* want to publish. So, you could have a space with a mix of pages-to-be-published, and some marked to not be published. It's explained a little more here: <https://wiki.comalatech.com/display/AHP/_2.9+Release+Notes+Common>

Hopefully this helps.


author: Maarten Cautreels
body: Hi Arun,

I've found another question which is very similar and already has an answer posted: <https://community.atlassian.com/t5/Confluence-questions/How-can-I-copy-clone-a-page-family/qaq-p/295878#M50063>

Hope this helps.

Best,

Maarten


Tags: copy

page
How to get a list of all recently created pages?
Asked by Udo Wieg?rtner:

How to display a list showing the recently new created pages?

Although the macro "Recently Updated" can show pages that have been updated recently I want to focus only on NEW PAGES.

Background: On the Homepage of a Space I want to offer a glimpse on where new content has beed added recently. Concentrating on the updated pages is misleading because it would also show a pages where only a few characters have been changed.

Any help appreciated.


Answers:
author: Thomas Schlegel
body: Hi Udo,

there was a feature request for that:

<https://jira.atlassian.com/browse/CONFSERVER-28447>

but Atlassian closed it and stated, that this will not be implemented.

Recently, there was a similar question with a workaround by Stephen Deutsch:

<https://community.atlassian.com/t5/Confluence-questions/How-to-show-all-confluence-pages-created-in-the-last-week/qaq-p/709879>

comments: author: Udo Wieg?rtner
body: Hi Thomas,

I tried the Workaround you mentioned and it works fine! Your hint really helps me getting more clarity into our Confluence instance.

Thanks a lot!


author: Thomas Schlegel
body: You're welcome, [@Udo Wieg?rtner](/t5/user/viewprofilepage/user-id/1186616)


Tags: macro

page