youngmon/atlassian-qna huggingface dataset:
Upgrade confluence and DB version
Asked by Karin Heijboer:

I have a server installation of Confluence on a Windows Server2012 R2

I currently have:  
- Confluence 6.2.1  
- Postgres 9.5

I want to migrate to:  
- Confluence 6.9  
- Postgres 9.6

What is the best approach for this?  
Postgres 9.6 is not supported on Confluence 6.2.1. So I assume I first need to upgrade Confluence using the installer.   
I can install the new Postgres 9.6 and move the confluence DB to this new Postgres server. Will confluence automatically recognize this new server (as long as the port is the one from the old Postgres 9.5 server)?


Answers:
author: Lipkent Ng
body: Hi  

You can first upgrade confluence to the version that supports both prostgres9.5 and 9.6 and proceeds to upgrade the database.  

If you are planning to install a new Postgres 9.6, you can first upgrade confluence, generate a database dump from Postgres 9.5 and restore it to Postgres 9.6. After that, you will need to modify the confluence.cfg.xml file in confluence home directory to point to the Postgres 9.6. Confluence read the confluence.cfg.xml file to identify the location of the database and connect to it.  

(i) You may want to generate a database ump backup and a backup of confluence home and installation directory to avoid any data loss or corruption. If possible do perform testing.

comments: author: Karin Heijboer
body: Thanks for your help. I have done the upgrade and migration to the new DB version. It worked perfectly.


Tags: confluence-server

server

upgrade
How can we make restricted pages not show up in a search result?
Asked by Inge van Gisbergen:

We have restricted pages in our documentation and made them only available for internal use.

Customers do not have access?  
But when our customers search the pages show up in the search result.


Answers:
author: Yogesh Mude
body: HI [@Inge van Gisbergen](/t5/user/viewprofilepage/user-id/1469900)

Welcome to the community!

[Here](https://confluence.atlassian.com/doc/page-restrictions-139414.html?_ga=2.210382864.421559132.1528085977-338212943.1524643824)is the page restriction article please have a look at it.

As mentioned in this [older ticket](https://community.atlassian.com/t5/Confluence-questions/Do-restricted-pages-appear-in-that-space-s-search-results/qaq-p/219524) restricted pages and their child pages will never show up in the search result, it will totally be hidden.

comments: author: Inge van Gisbergen
body: Hi [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678)  
Thanks for your respons.  
The top page is restricted, the child page isn't. It still shows up in the search result.

I will restrict the child page as well.


author: Yogesh Mude
body: HI [@Inge van Gisbergen](/t5/user/viewprofilepage/user-id/1469900)

In the documentation itself, they have mentioned like the view restrictions are inherited but not the Edit restrictions means a restriction applied to one page will cascade down to any child pages.

If you feel this answer help to solve your issue then please don't hesitate to accept this answer.


author: Inge van Gisbergen
body: Hi [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678)  

The main page has Everyone "has no access". A company group and myself have edit and read permissions.

If child pages inherit this restriction than accourding to the documentation our customer (= Everyone) should not be able to read the child page, right?

They can not access the page to read the page. But it did show up in the search results.

The page you linked doesn't explain that.


author: Yogesh Mude
body: Yes, if you say, Everyone, then your customer will not be able to read the page.

Please read the <https://confluence.atlassian.com/doc/page-restrictions-139414.html?_ga=2.36984869.421559132.1528085977-338212943.1524643824> middle of the page ie.

Who is Everyone and How do Inherited Restrictions work.


author: Inge van Gisbergen
body: Thanks, I did read it.


author: Inge van Gisbergen
body: Thnx I did read it.


author: Inge van Gisbergen
body: [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678) it's fixed now.  
Somebody changed the restrictions on an even higher level.

Thanks for your help.


author: Yogesh Mude
body: Hi [@Inge van Gisbergen](/t5/user/viewprofilepage/user-id/1469900)

If this issue has been solved then please don't hesitate to accept this answer.

It will help others those who will face the same issue in future.
Ideas share + voting panel
Asked by Damian Sochacki:

Hello,

Currently we're using JIRA + Confluence in our daily Scrum work and it goes really well. However right now there is a need for specific tool/ extension which can help us in particular case:

We need extension which will be able to help us in something like: "ideas sharing". During implementation/ testing we're dealing with things which personally for us could be done differently than it's currently enclose in the specification. For example, labels/ colors in fronted are blue, I recommend that it should be yellow. That's why I need a space where I can write it down (it will be good to put it under specific group/ epic links to easily sort it later). It will be perfect to let others team members vote (for \& against) for raised ideas.

Dear Atlassians, will there be something like this which can handle our requirements?

Thank you from above.


Answers:
author: Timothy
body: Why not implement this in Jira itself?

* You could have a specific issue type in Jira to capture this information
* You can custom fields to differentiate them apart
* Use the voting feature to garner interest
* Use the Jira Macro in Confluence to show them in Confluence

comments: author: Damian Sochacki
body: What "specific" type you're bearing in mind? Custom fields? Voting feature you mean additional confluence tool?
Search in Confluence
Asked by Helen Ahlberg:

In Sharepoint we can use for example  
Search Manage Relevance (ex Manage query spelling correction in SharePoint Server)  
Search Manage Query Rules (ex Search service application)

Rankingmodells

Searchlogs/statistics/analysis

Influence searchhits based on tags or searchwords....

is this someting we can use in Confluence?


Answers:
author: Helen Ahlberg
body: Thanks - I will take a look at the Add-ons.

You can close this case.

Regards,

Helen


author: Helen Ahlberg
body: OK.

Nothing that will appear in Confluence later on?

Confluence Search Syntax is what we have to work with?

Regards,

Helen

comments: author: Shannon S
body: Helen,

Sharepoint and Confluence are two completely different applications with different functionalities. Therefore, I wouldn't foresee the search change to match that of Sharepoint.

At any rate, you may be interested in a few of the add-ons that are available from our Marketplace for alternate search options:

* [Marketplace : Confluence Search Add-ons](https://marketplace.atlassian.com/search?product=confluence&query=confluence%20search)

Regards,

Shannon


author: Shannon S
body: Hi Helen,

Confluence has its own search system which isn't similar to the one on Sharepoint.

You can read more about it here:

* [Confluence Search Syntax](https://confluence.atlassian.com/doc/confluence-search-syntax-158720.html)

Please take your time to review that and if you have any questions about how Confluence's search works, please let us know!

Regards,

Shannon


Tags: atlassian-marketplace

server
How to work with dates in user macro
Asked by Yaacov Weingarten:

Hi,

I am trying to write a user macro that checks the last modification of files. But when I try to compare the dates - nothing seems to work. So I wrote a small User macro to try and isolate the problem. (I thought I was following the advice located in the Community at: <https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-parse-a-string-into-a-date-in-a-User-Macro/qaq-p/500908>

and <https://community.atlassian.com/t5/Confluence-questions/I-would-like-to-compare-dates/qaq-p/61312>)

This is the code of the small macro (that just compares and prints out different formats of the creation and last modification times of the current page):

```
## This is an example macro
## @noparams

#set($mylist = "<br>")
#set( $createD = $content.getCreationDate())
#set( $modD = $content.getLastModificationDate())
#set( $createOb = $content.currentDate)
#set( $modOb = $content.currentDate)

#set ($mylist = $mylist + "file creation date (before parse): " + $createD + "<br>")
#set ($mylist = $mylist + "file modification date (before parse): " + $modD + "<br>")

#*
#set( $res = $createOb.setTime($content.currentDate.parse($createD)))
#set( $res = $modOb.setTime($content.currentDate.parse($modD)))
*#
$createOb.setTime($content.currentDate.parse($createD))
$modOb.setTime($content.currentDate.parse($modD))

#if ( $createOb.before($modOb))
??? #set( $mylist = $mylist + "creation object time was before the modify object time <br>")
#elseif ( $createOb.after($modOb))
??? #set( $mylist = $mylist + "creation object time was after the modify object time <br>")
#else
??? #set( $mylist = $mylist + "creation object time was neither before or after the modify object time <br>")
#end

#set( $createDI = $createOb.getTime())
#set( $modDI = $modOb.getTime())
#set ($mylist = $mylist + "the unix time for creation is: " + $createDI + "<br>")
#set ($mylist = $mylist + "the unix time for last modification is: " + $modDI + "<br>")

${mylist}
```

And this is the output of the macro on the page that I inserted it into:

```
$createOb.setTime($content.currentDate.parse($createD)) $modOb.setTime($content.currentDate.parse($modD)) 
file creation date (before parse): 2018-05-29 14:08:51.904
file modification date (before parse): 2018-06-05 08:51:58.687
creation object time was neither before or after the modify object time 
the unix time for creation is: 1528179636921
the unix time for last modification is: 1528179636921
```

A few questions -

How do I not display the first line of output?

Why are the parsed dates the same (current time)?

Thanx


Answers:
author: Yaacov Weingarten
body: Found the solution to be easier than I thought - since the ContentEntity dates (CreationDate and ModificationDate) actually return a Date object. Used their after() method to perform the comparison


Tags: atl-adm

developer

user-macro
How can people see their profile picture on a Confluence page?
Asked by mayank kapur:

We can configure and use profile picture macro to see one's image on the page.

However, my requirement is depending on the current user the profile picture of that user is shown on the page. Is it possible to configure profile picture macro dynamically (automatically at run time) such that any user who opens a page (with profile picture macro) sees his/her profile picture on it?

Thanks in advance for your assistance.


Answers:
author: Alana Fernando
body: Sorry [@mayank kapur](/t5/user/viewprofilepage/user-id/130232) , to the best of my knowledge , this is not possible in confluence out of the box.

* [Profile Picture Macro](https://confluence.atlassian.com/doc/profile-picture-macro-258801707.html)
* [User Profile Macro](https://confluence.atlassian.com/doc/user-profile-macro-189432828.html)
Create new meeting note in hierarchy
Asked by Paula Billington:

I have used the "create from template" macro/button on our main page to create new meeting notes from a blueprint template. I need the new meeting note to appear in the hierarchy with other meeting notes, not at the top level of the hierarchy. See the attached screenshot. Any ideas how to change the default location so that it's nested 1 level down with the other ones?

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


Answers:
author: Bhakti Paranjpe
body: Create a meeting note page while being on the parent page under which you want to arrange all your meeting note pages. By default, Confluence arranges the pages as children of the page on which you were when creating a new page (or page from blueprint template).

The meeting note pages that are one level up seem to have been created from parent's parent.

* Parent's Parent  
  * Meeting Notes Parent (\<-- Create meeting notes pages while you are on this page)
    * Meeting Note 1 (\<-- This was created when being on Meeting Notes Parent)
    * Meeting Note 2 (\<-- This was created when being on Meeting Notes Parent)
  * Meeting note 3 (\<-- This was created when being on Parent's Parent)

Does this help?

Cheers,

Bhakti


author: Madhura A S
body: Hi Paula Billington,

You can reorder the pages in the confluence.

Click on Space tools -\>Reorder Pages-\>drag and drop the meeting notes under other meeting notes.

Regards,

Madhura

comments: author: Paula Billington
body: Thanks, I was hoping to not have to re-order every time. I want them to originate in the correct place.


author: Henning van Ackeren
body: Hi Paula,

there's a slightly easier manual way: set the location of the page-to-be-created before saving (through location icon at the top, in edit mode). You could hint users to do that through the instructional text in the template.

Another approach: set another target space in the create from template macro, so that all meeting notes end up in the same location without manual work. Then you could add a link to that space in the sidebar, so that meeting notes are found, despite being in a separate "Meeting note" space.

I can't think of another easy way, though there may be better solutions.

Best, Henning


Tags: cloud

confluence-cloud
How can I send a Confluence page to an external user on a daily schedule?
Asked by Josh Carter:

I have a project status report in Confluence that I would like to send to an external customer. I would also like it to be sent daily to that customer, so I don't have to remember to do it every morning.


Answers:
author: Kris G _Alacriz_
body: Hi [@Josh Carter](/t5/user/viewprofilepage/user-id/1397605) -

You can use the app [https://marketplace.atlassian.com/apps/1212189/comala-share-it?hosting=server\&tab=support.](https://marketplace.atlassian.com/apps/1212189/comala-share-it?hosting=server&tab=support.?)

Unfortunately, I am not sure if sharing can be automated at regular intervals. Also, this app works only in server mode.

best,  
Kris

comments: author: Kris G _Alacriz_
body: [@Josh Carter](/t5/user/viewprofilepage/user-id/1397605)-

I heard from Comala Tech that automation is not possible right now. The request has been forwarded to their product team. Hopefully, they'll consider this request which is a valid one and will be useful to many Confluence users.

Meanwhile, I request you to vote for this issue on Atlassian's site <https://jira.atlassian.com/browse/CONFCLOUD-32999> to give it more weight.

best,  
Kris


author: Kris G _Alacriz_
body: Hi [@Josh Carter](/t5/user/viewprofilepage/user-id/1397605)-

Can you please confirm if you are trying to :

1. Send a project status report (page converted to pdf, for example) from Confluence to your customer daily ?

OR

2. Share a Confluence page which actually is a status report ?

If it is the second case, once the page is shared, please have the user open the page whenever (s)he wants to and see the updated page. This is native Confluence functionality.

If it is the first case above, please confirm and I'll pass on your inputs to the Comala Tech product team.

best,  
Kris


author: Victor Mutambuki
body: ![Screen Shot 2018-06-04 at 8.33.44 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/23721i883DB9ED73078AC6/image-dimensions/249x140?v=v2 "Screen Shot 2018-06-04 at 8.33.44 PM.png")

Josh,

I'm not sure if there's a way of sending the page automatically without using a plug in.

If you just want to do it manually, please follow the following [steps](https://confluence.atlassian.com/display/CONF35/E-mailing+a+Page?_ga=2.113292103.1519575038.1528080588-2036332451.1475171229). Make sure you've enabled Anonymous access to Confluence on a per-space level.

Also, you can send the page in word document. Please see attached image.

Victor


Tags: automation

cloud

confluence-cloud

email

external

schedule

share
Can only managers create team spaces?
Asked by Kenny Batista:

I am not seeing the option to create a space other than my personal. Can only managers create team spaces?


Answers:
author: Brant Schroeder
body: Kenny,

It all depends how your confluence instance is configured. Your confluence administrator can change this setting in general configuration \> global permissions. Here they can give individuals or groups access to create spaces.


author: Lipkent Ng
body: Hi Kenny,

For more details on the global permission, you can refer to this {documentation\|<https://confluence.atlassian.com/doc/global-permissions-overview-138709.html>\]. The global permission page allow the admin to grant user the permission to use confluence, create personal space, create public space, and become a admin.


Tags: confluence-server

server
How do I remove the unnecessary border when inserting a code block inside a table?
Asked by Shawn in Van:

Hello all,

Can anyone tell me how to remove the unnecessary border from a code block macro? When the code block macro is inserted into a table, the border is redundant.

<br />

A solution for either the regular code block macro or the better code block macro is acceptable.

I tried to set the css for the page, using the Style macro and many variations of:  

div.xxxx xxxxx {  
border-style: none;  
border-width: 0px;  
}  

Nothing I tried worked. However, going into Chrome code view mode, I discovered that by setting:  
border-width: 1px; to 0px  
... on class="code panel pdl conf-macro output-block" works perfectly.

Now, how do I translate that into a CSS page modifier?  

Thank you


Answers:
author: Davin Studer
body: Try this.

```

.confluenceTable .code {border: none !important;}
```

comments: author: Shawn in Van
body: Thank you Davin!  

You're awesome.   

Why is the !important ?  

Also, is it possible to do this for the {Better Code Block} macro? Either way, this is a success and I'm happy.

Thanks.


author: Davin Studer
body: This CSS just targets the built in code block. Unfortunately, you can't use CSS to do this with the better code macro because that macro is inside an iframe. The !important tells the browser to use this style above all cascades.


author: Shawn in Van
body: Thank you. :)


Tags: confluence-cloud
How do I remove the unnecessary border when inserting a code block inside a table?
Asked by Shawn in Van:

Hello all,

Can anyone tell me how to remove the unnecessary border from a code block macro? When the code block macro is inserted into a table, the border is redundant.

<br />

A solution for either the regular code block macro or the better code block macro is acceptable.

I tried to set the css for the page, using the Style macro and many variations of:  

div.xxxx xxxxx {  
border-style: none;  
border-width: 0px;  
}  

Nothing I tried worked. However, going into Chrome code view mode, I discovered that by setting:  
border-width: 1px; to 0px  
... on class="code panel pdl conf-macro output-block" works perfectly.

Now, how do I translate that into a CSS page modifier?  

Thank you


Answers:
author: Christo Mastoroudes _Adaptavist_
body: There are a few ways that you can do this, but It sounds like you have Content Formatting for Confluence installed since you mention the Style macro. If this is the case follow the steps below.

The idea is that If you add your table with code block inside a div macro with a unique class, then you could target just your code block and not affect other code blocks.

1. Add a div macro to the page and give it a unique class name for example "my-unique-class-name" by editing the macro and entering the parameter.

2. Add your table containing the code block inside of the div macro.

3. In the style macro add the following:

```
.my-unique-class-name .code.panel.pdl {
border: none;
}
```

This should have the result of only changing the code blocks inside your specific div macros.


Tags: code-block

confluence-cloud

css
Can I create a Bluprint from an existing page
Asked by Balbinder Banga:

Hi I have created a project space template. Now, I want to use that space as a Blueprint for other projects to use. Is is possible to use an existing page as a Blueprint?


Answers:
author: Alec Jasanovsky
body: If you haven't yet been rolled out for the new jira UI, then while in the project create prompt, in the bottom-middle will be the option "Create with Shared Configuration". That's your template option.

If you're using the new JIRA, simply hit the "template" option and scroll to the very bottom for the same option.

comments: author: Alec Jasanovsky
body: Oops, read that wrong - for confluence you could either simply copy the page and move it to the new space.

You can also create your own template, but this depends on what you're trying to accomplish. Your best bet is to copy the overview + children pages to a new space.


Tags: confluence-cloud
view change is not showing information
Asked by David Rodriguez:

Have created a page, when I go to look at the "view change" and I do not see anything. It gives me a page not found error. Is there a way to fix this issue?


Answers:
author: Moses Thomas
body: [@David Rodriguez](/t5/user/viewprofilepage/user-id/1466253)I suggest you refresh link , make sure you are logged in to confluence and then try again

Best!

comments: author: David Rodriguez
body: Sorry but this did not work, would you happen to have any other suggestions?

thanks


author: Moses Thomas
body: [@David Rodriguez](/t5/user/viewprofilepage/user-id/1466253)This could be a bug as there is a related ticket registered in JIra, please see Ticket, and try workaround and see

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

Best!


Tags: confluence-server

server
Attachments are being randomly deleted, does anyone else have this problem?
Asked by Jaspal Sumal:

We use Confluence with Scroll to publish our documentation. Currently, we have three published sets of docs and our docsdev site where we are currently updating everything for our next release. Over the last few months, we have found that a large number of our screenshots simply disappear from all four locations. One moment they are there the next they are gone. I am not sure why this is happening. Does anyone else have this problem or know why this is happening?


Answers:
author: Jaspal Sumal
body: I am 99.9 percent sure that no one is deleting the attachments. My boss checked the logs and there was nothing there to help us.

comments: author: Moses Thomas
body: [@Jaspal Sumal](/t5/user/viewprofilepage/user-id/1466271)Are they .png screen shots? do you copy and paste them to confluence pages ?


author: Jaspal Sumal
body: [@Moses Thomas](/t5/user/viewprofilepage/user-id/1138700) yes they are .png shots pasted directly on the page


author: Moses Thomas
body: [@Jaspal Sumal](/t5/user/viewprofilepage/user-id/1466271)I think you could have same case like this.

<https://community.atlassian.com/t5/Confluence-questions/Confluence-loosing-png-attachments/qaq-p/97109>

there is a solution recommended by user you could try.

Best!


author: Moses Thomas
body: [@Jaspal Sumal](/t5/user/viewprofilepage/user-id/1466271)is your issue resolved ?


author: Moses Thomas
body: [@Jaspal Sumal](/t5/user/viewprofilepage/user-id/1466271)I don't have this kind of problem, are you sure some one is not deleting this attachments ? check auditlogs/ confluence logs in

(\<`confluence-home>/logs/atlassian-confluence.log` ) what does it say ?

Best!


Tags: confluence-server

server