youngmon/atlassian-qna huggingface dataset:
Confluence AORECENTLY_VIEWED table troubleshooting
Asked by Mat?? Klaud?ny:

How come queries based on:

    SELECT *FROM "AO_92296B_AORECENTLY_VIEWED"JOIN user_mapping u ON u.user_key = user_keyORDER BY "LAST_VIEW_DATE" DESC

are generating the same output for each user_key inserted into the script.   

We have run this script for various different user_keys and we are getting back same recently viewed list of pages (timestamp is on a second exactly the same). Difference in every row is just the "user specific maping" which seems to be not working. Can you please elaborate about how this table works?

Thanks


Answers:
author: Stephen Sifers
body: Hello Mat??,

Your SQL statement is mostly correct except the database is case sensitive. With this said, your statement is attempting to match user_mapping user_key to user_mapping user_key due to it being ran as a low case statement. The proper way to run this SELECT statement will be as follows (note the quotes):

```
SELECT *
FROM "AO_92296B_AORECENTLY_VIEWED"
JOIN user_mapping u ON u.user_key = "USER_KEY"
ORDER BY "LAST_VIEW_DATE" DESC
```

Running the above should properly match your user_mapping table to your AO_92296B_AORECENTLY_VIEWED table. You will also notice that your USER_KEY and user_key will match this time (before they were mismatched due to self matching)

The quotes will honor case sensitivity within your database. Without the quotes (even if case is capital) it will be treated as lower case. If I run the same statement without the quotes you will get an errors as follows:
> ERROR: relation "public.ao_92296b_aorecently_viewed" does not exist  
> LINE 2: FROM public.AO_92296B_AORECENTLY_VIEWED

I hope this clarifies the issue your are having with the select statement.

Regards,  
Stephen Sifers


author: Pavan Kumar Pinniboyina
body: Place a variable for AO table and match with user_key as a.user.key

Working query

```
SELECT * FROM AO_92296B_AORECENTLY_VIEWED a JOIN user_mapping u ON u.user_key = a.user_key ORDER BY LAST_VIEW_DATE DESC
```

Hope it helps

Thanks,

Pavan


Tags: atl-adm

confluence-server

server
Page don't Find
Asked by Manuela Zenklusen:

Hello

I am new here.

I want to make a link to a page in another space. but it doesn't find the page.

Thanks.


Answers:
author: Grigory Salnikov
body: Hi [@Manuela Zenklusen](/t5/user/viewprofilepage/user-id/2298775) and welcome to our Community!

Do you have permission to view this particular page?

comments: author: Manuela Zenklusen
body: hi, thank you,

yes i have made it myself


author: Grigory Salnikov
body: Ok, I see.

Please, go to the configuration page \> "Content Indexing" \> "Rebuild" and then try again.


author: Manuela Zenklusen
body: Thanks.

sorry, i am new with confluence . where i find the configuration page ?


author: Grigory Salnikov
body: It's ok.

You should click on the cog icon and choose "General configuration":

![Configuration.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/37775i161604566C686B6A/image-size/large?v=v2&px=999 "Configuration.jpg")

There you'll find "Content Indexing" under the "Administration" section:

![ContentIndexing.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/37776iA0670C40591074DF/image-size/large?v=v2&px=999 "ContentIndexing.jpg")

This will work if you have a "Server" version of Confluence. As far as I know, there's no such an option in the "Cloud" version.


author: Manuela Zenklusen
body: oh i have found it on the documentation, but i think i dont have permission to do this. i go next week to our adminstration manager and try it.

Thank you well!


author: Grigory Salnikov
body: You're welcome!

Hope it'll work out.

Have a nice day :)


author: Manuela Zenklusen
body: hello

thanks people, i found the mistake. The space was archived. Thanks a lot for the support!


author: Mesut Yilmazyildirim
body: Actually I follow below steps to link to a page in another space;

* Choose **Link** \> **Search** and from the space dropdown, either select the space the page lives in, or **All Spaces**. Then enter part of the page name, and select the page when it appears in the list.
* Choose **Link** \> **Advanced** then enter the space key followed by the page name ++`spacekey:mypage`.++
* Type **\[** and enter part of the page name then select the page from the list. (You can hover over each suggestion to see which space the page is from).

comments: author: Manuela Zenklusen
body: Thanks, but that is what i had make. but it dont find the page.. its not listening there.
Why can't a Confluence Admin add a (code block) macro to a page?
Asked by Matthew McTague:

A Confluence Admin (let's call him Tom), being a member of confluence-administrators and confluence-users, can't add a code block, or any other macro, to a page.

At the moment that Tom tried to add the macro to the page, the error "You are not permitted to perform this operation" is encountered.

The group confluence-administrators has all permissions on Global Permissions, and Space Permissions for all spaces.

The example page I'm testing with does not have Restrictions.

Any ideas would be much appreciated, so that Tom can get on with doing his work and have a great day!

Thanks all!


Answers:
author: Matthew McTague
body: In case anyone has this issue in the future, it was due to incorrect commenting within server.xml.  
Refer [https://confluence.atlassian.com/confkb/after-upgrading-confluence-you-are-unable-to-create-new-pages-or-spaces-785457379.html?utm_medium=logScan\&utm_source=STP](https://confluence.atlassian.com/confkb/after-upgrading-confluence-you-are-unable-to-create-new-pages-or-spaces-785457379.html?utm_medium=logScan&utm_source=STP)


Tags: code

confluence-server

macro

permission

server
Confluence?????????????????
Asked by Yujiro SHIN:

Confluence?????????????????????

???????????????????????????????????????  
?????????????XX???????????????????

??????????????????????????????

???????????????????


Answers:
author: Ai Hirama
body: ?????????????????????????

Confluence Cloud???????????????????????????????????????????????????????????

??????????????

comments: author: Yujiro SHIN
body: ???????????


author: Ai Hirama
body: ???????????????????????????????????????????


author: Mesut Yilmazyildirim
body: As far as I know there is no limit on the number of versions that can be saved. We have several attachments with more than 1000 revisions.  

If you can hit the wink of that mark, that's a fruitful result.

comments: author: Yujiro SHIN
body: I'm having a hard time comprehending the Google translation you sent so I'd appreciate if you could reply in English. Let me resend my previous inquiry in English.

I understand there is no limit in the number of revision history versions that can be stored. However it's unknown HOW LONG the revision history is stored. Do you have any such limit? If so, please kindly specify how long (number of days, years, etc.)


Tags: cloud

confluence-cloud

language-ja
Weird Pop-ups all over Confluence Cloud?
Asked by Charisma Riley:

In Confluence Cloud today, I have all of these little popups everywhere. Anyone know what they are or how to get rid of them?

![Popups on Confluence.png](/t5/image/serverpage/image-id/37748iB0F9AC443EE14C62/image-size/large?v=v2&px=999 "Popups on Confluence.png")

They are driving me nuts, and I have them on almost every page in different places! lol


Answers:
author: Shannon S
body: Charisma,

Those pop-ups usually occur when you're highlighting text. The icon on the left is for you to add an inline comment, and the one on the right is to create a Jira issue from the text you selected.

If you're finding this behavior is occurring without you having to select any text, then I would recommend [raising a support ticket](https://support.atlassian.com/contact/#/). That way we can look directly at your instance and logs to figure out what is causing those to show unprompted.

Regards,

Shannon


Tags: cloud

confluence-cloud
Confluence Team Calendar Doesn't Show End Time
Asked by James Yeom:

I'm using a Team Calendar to track my team's vacation leave. I've got the event configured to show a Date Range and chose these custom fields:

Start: Leave Start Date and Time

End: Leave End Date and Time

However, the calendar only shows the start time and looks like this:

8:00 AM ITLR-33 - Joe Time Off

I'd like it to show the end time as well so that it would look something like this:

8:00 AM - 5:00 PM ITLR-33 - Joe Time Off

Is there a way to do this?


Answers:
author: Fabian Lim
body: Hi [@James Yeom](/t5/user/viewprofilepage/user-id/1790208)

Make sure you use the "date range" feature explained here: <https://confluence.atlassian.com/teamcal/add-jira-events-241566244.html>

Thanks


Tags: confluence-server

jira

jira-server

server
"The editor didn't load this time" Error but only for Chrome.
Asked by sponjworthy:

When internal PC users use the Chrome web browser to edit a page, users get the error

The editor didn't load this time {#toc-hId-1848711132}
------------------------------------------------------

Browser PC: 70.0.3538.102 or greater. Unconfirmed the problem exists with older builds. Problem does not exist in Firefox or IE on the same machine.

Also the problem isn't evident in MacOS builds of Chrome: 70.0.3538.77 or 70.0.3538.102

Confluence Server version: 6.9.1 (don't judge me for not updating)

Hosted on Windows Server 2012 R2 Firewall on or off has the same effect. Unfortunately advice at: <https://confluence.atlassian.com/confkb/confluence-throws-the-editor-didn-t-load-this-time-error-when-trying-to-edit-a-page-840796639.html> doesn't fix the problem.

Any ideas for next steps? Users seem to greatly prefer Chrome to other web browsers so the work around is unwelcome.


Answers:
author: Shannon S
body: Hi there,

Could you share with us the error messages that occur in Confluence server logs when you run into this issue, as well as the errors from the Developer Tools console in Chrome?

Also, you said that Firefox/IE on the same machine don't have the issue - can you confirm that all instances of Chrome do have the problem? It's only with PCs, correct?   

When you test this outside of your network entirely, does it persist?

Thank you for your help!

Regards,

Shannon


Tags: chrome

confluence-server

server
Invoke-RestMethod GET fails
Asked by Robert Knazik:

I am trying to retrieve a Confluence page using this script line:

Invoke-RestMethod -Method GET -User user:pswd  
-Uri "https://confluenceURL/rest/api/content/7700576?expand=body.storage"

But get this error:

Invoke-RestMethod : The remote server returned an error: (404) Not Found.  
At line:1 char:1  
+ Invoke-RestMethod -Method GET -User user:passwd -Uri "https ...  
+ \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~  
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) \[Invoke-RestMethod\], WebException  
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Does anyone know what I'm doing wrong here ? I know the page exists and I have access to it.


Answers:
author: Stephen Sifers
body: Hello Robert and welcome to the Community,

It seems as though your powershell invoke-restmethod call is formatted properly. With that said, your response code of 404 is tell you that the user you're authenticating as does not have permission to view the content.

* **STATUS 404**Returned if the calling user does not have permission to view the content.

Here is the documentation for the [Get Content Calls](https://docs.atlassian.com/atlassian-confluence/REST/6.6.0/?_ga=2.97812191.1314879616.1542026482-1804605431.1539888043#content-getContent) and [Get Content by ID](https://docs.atlassian.com/atlassian-confluence/REST/6.6.0/?_ga=2.97812191.1314879616.1542026482-1804605431.1539888043#content-getContentById).

A couple things to try;

* Ensure the User does have access
* Ensure the Username and password are correct
* Ensure the URL is correct for the content you are attempting to access.

Other options instead of using username:password would be to use an API token. Here is how to get an [API Token](https://confluence.atlassian.com/cloud/api-tokens-938839638.html).

From the URI you are attempting to hit it seems you have the wrong verbiage after expand, the formatting should be:

```
https://confluenceURL/rest/api/content/7700576?expand=body.view
```

Please let us know if this helps to get your REST API calls working.

Regards,  
Stephen Sifers


Tags: confluence-server

rest-api

server
Migrate from MS SQL to Postgresql
Asked by Umesh Motwani:

I am using Confluence 5.8 version with MS SQL database. Now I need to migrate it to Postgresql 5.7 version.

I have installed the software following the guidelines from atlassian and connected it to empty database.

Now I need to do xml backup process as per atlassian. Can someone guide me how to take xmlbackup and migrate the database.


Answers:
author: Nic Brough -Adaptavist-
body: It's covered by <https://confluence.atlassian.com/doc/migrating-to-another-database-148867.html> (that doc has barely changed since version 4)

comments: author: Umesh Motwani
body: I tried to follow steps for backup

This allows you to export the contents of the database to a zipped XML file. You can import the XML file into earlier Confluence versions from 5.3 to 5.8.13, and into compatible later versions. When importing, please refer to the compatibility information in the 'restore' section on this page.

Archive to backups folder

Back up attachments

I did hit Backup button but it keeps **Loading**

I also tried <https://thesourceqa.pseg.com/admin/backup.action> but this goes to above steps


author: Nic Brough -Adaptavist-
body: Yes, you need to let it run the full export. If you think it's failing, you'll need to read the application log to find out what is going wrong.


author: Umesh Motwani
body: I have taken the XML Backup for Confluence(Oracle Database). As we are using the "Restore" Option we have placed the backup in the restore directory and the file is visible in the below screenshot..

After clicking on Restore its taking too long to Process. Can you please suggest whether it will take time to process or else is there any other method to follow.


author: Nic Brough -Adaptavist-
body: It takes as long as it takes. "Any other method" I can mention takes longer and increases the risk of failure significantly.


author: Umesh Motwani
body: I dont see Confluence_Home folder created after it is installed. Is that something I need to make manually?


author: Nic Brough -Adaptavist-
body: No, the installer will create that where you tell it to


Tags: database

install
When i paste time in a row it is pasting into multiple rows and thus look awkward.Is there a solutio
Asked by Satya Narayana:

When i paste time in a row of a table, it is getting pasted into multiple rows and thus looks awkward.Is there a solution.. Even if i extend width of column it is same ..

Current format:

start_time

11/13/18  
10:07:32

start_time

Required format: 11/13/18 10:07:32


Answers:
author: Bill Bailey
body: Are you on Cloud or Server? If the later, you could use a user macro to not allow wrapping

```
## Macro title: No Wrap
## Developed by: Bill Bailey, MarketCom, LLC
## Date created: 2016.06.13
## Version 1.1

## @noparams
<span class="nowrap" style="white-space: nowrap;">
$body
</span>
```

Then you can insert that macro, adding whatever you want to not wrap to the body of the macro.
Atlassian Cloud - how to add custom javascript or html for an embedded iframe
Asked by Jim Mason:

The Cloud version of Confluence appears to have very little support for HTML and Javascript compared to the server version.

How can I add custom iframe code to a Cloud Confluence page to display an embedded report ?

Thanks

Jim Mason


Answers:
author: Stephen Sifers
body: Hello Jim and welcome to the Community!

Confluence Cloud and Confluence Server do have different amounts of flexibility when it comes to HTML and Javascript. Confluence Cloud does not offer native HTML and Javascript support without the addition of Add-On to Confluence.

A quick [marketplace search](https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=javascript) shows there are 5 possible add-ons which enable HTML and Javascript.

Something else to be aware of are the functional difference between Confluence Cloud and server. You can find them here:

[Functional differences in Atlassian Cloud](https://confluence.atlassian.com/cloud/functional-differences-in-atlassian-cloud-744721664.html)[Functional differences in Confluence Cloud](https://confluence.atlassian.com/confcloud/functional-differences-in-confluence-cloud-734070955.html)[Atlassian Cloud vs. Server: Features and use cases](https://confluence.atlassian.com/cloudkb/atlassian-cloud-vs-server-features-and-use-cases-691011844.html)

I hope this clarifies the capabilities of Confluence Cloud and give you options for a market place add-on.

Regards,  
Stephen Sifers


author: Jim Mason
body: Thanks. That does answer the question.

Unfortunately a basic feature ( adding HTML or Javascript to a page ) is not available in the base Cloud product. You have to purchase that as an additional feature which doesn't make the base product competitive with other platforms that include that functionality at no additional cost.

comments: author: Mike Loux
body: This seems to be a theme with the Cloud offerings. Can't do basic server functionality...but don't worry, there's an add-on...but it costs money. I'm trying to do something relatively simple (like, HTML 1.0 simple) like editing a link on a page so that it opens a new tab by default when clicked. Sad that the SharePoint wiki language (which is admittedly awful) has the functionality but Confluence does not. SMDH.


author: Courtney Smith
body: Without a doubt basic scripting or HTML should be in the base cloud product.

It is there in the server product and there is absolutely no reason it cannot be the same on cloud. Reason about security/possibly breaking the site are inaccurate as it would only load for the users instance on confluence and is something that most other cloud offerings allow. After all it is just basic HTML or Javascript and not something we should need to pay for an add-on for $ per user per month.


Tags: confluence-cloud
Getting error message with include macro saying: Unable to render {include} Already included page
Asked by Alex Yasurek:

I have a custom plugin that pulls various pages using the include macro into a single page. After upgrading to confluence 6.11.2, I keep getting a message saying something like :

*Unable to render {include} Already included page 'test page', stopping.*

*Unable to render {include} Already included page 'test page', stopping.*

*Unable to render {include} Already included page 'test page', stopping.*

*Unable to render {include} Already included page 'test page', stopping.*

"Test page" is the page I added the plugin to but I am pulling the includes from another space. In the example above it suppose to pull 2 pages from another space and display the content one after the other. Instead, it displays that message 4 times.

If I were to try to include 3 pages it would display that message 9times, 4 includes = 16times, etc.

I know for a fact that I am passing the correct parameters to the include macro in the plugin because when I have it output the parameters it's from a different space.

#set($pageKey = "$spaceKey:$title")  
$action.getHelper().renderConfluenceMacro("{include:$pageKey}")

It seems like its trying to include the current page it is in but not sure why. This works fine in confluence 6.4.3 and even if I spin up a local instance fo confluence 6.11 it works fine. It just is not working on our staging instance after we upgraded.

I even went into safe mode and only enabled this custom plugin and it still gave the same message.

Anyone happen to know why or ran into this issue before?

Thanks


Answers:
author: Bill Bailey
body: I assume you are trying to do this as a user macro? If so, I would take the other route and just configure the storage code version of the Include macro:

```
? <ac:structured-macro ac:name="include" ac:schema-version="1">
??? <ac:parameter ac:name="">
????? <ac:link>
??????? <ri:page ri:content-title="$paramPageName"/>
????? </ac:link>
??? </ac:parameter>
? </ac:structured-macro>
```

comments: author: Alex Yasurek
body: HI, No its a plugin I created using the SDK. I have tried this before but I didnt get any output from the plugin.


author: Bill Bailey
body: I vaguely remember discussions that .renderConfluenceMacro was being deprecated (or at least no longer present in the velocity context), in favor for:

    convertStorageToView('<ac:structured-macro ac:name="cheese"></ac:structured-macro>;')

It may be that either issues with that method or deprecation of the wiki markup for Include in that context. You may find this article useful:

<https://davidsimpson.me/2014/02/27/an-alternative-to-renderconfluencemacro/>


Tags: macro

atlassian-sdk

confluence-app

confluence-server

include

server
I'm on Confluence 6.11, and can't find the option to import space
Asked by Thorbj?rn Sigberg:

I'm looking to import an individual space to Confluence, but am unable to figure out how. All documentation seems to refer to older versions / non-existant menu items.

I have exported a space from another confluence as XML, and want to import it to Confluence 6.11. I'm a confluence admin. The documentation I find refers to going to Settings and "Import space" in the confluence side page, but this menu item doesn't exist.


Answers:
author: Nic Brough -Adaptavist-
body: It should be under: settings \> backup and restore -\> feed it the name of your xml.

comments: author: Thorbj?rn Sigberg
body: Thank you, this appeared to be only for full restores, but reading it more closely I saw that it was actually for spaces as well. And it worked! Thank you!


author: Nic Brough -Adaptavist-
body: No problem. It is well buried, and not easy to find in my opinion!


Tags: import

server
Render a Macro in a User Macro
Asked by William Yeack:

I want to create a user macro that includes the rendered output of a different macro. For instance:

## Macro title: Version Issues  
## Macro has a body: N

## This is an example macro  
## [@Param](/t5/user/viewprofilepage/user-id/1345631) Version:title=Version\|type=string\|required=true

\<div\>  
$helper.renderConfluenceMacro("{cheese\]")  
\</div\>

However, this just prints out "$helper.renderConfluenceMacro("{cheese\]")". How do I get it to actually render the cheese (or another) macro?


Answers:
author: Thomas Schlegel
body: Hi [@William Yeack](/t5/user/viewprofilepage/user-id/518819),

the easiest way is using the Confluence Source Editor and then do something like this:

* create a temporary page and put the cheese macro on that page
* save the page, edit it again and open the source editor
* there you can see that the cheese macro looks like this:  
  * \<ac:structured-macro ac:macro-id="3025afb4-6562-4aba-bc01-3668dfd87322" ac:name="cheese" ac:schema-version="1"/\>
* copy this and add it to your user macro like this:  

  ```
  ## Macro title: My Cheese
  ## Macro has a body: N

  ## @noparams

  My Cheese:

  <ac:structured-macro ac:name="cheese" ac:schema-version="1"/>

  End of My Cheese, do something else
  ```

If you don't know the Confluence Source Editor, have a look at the [marketplace](https://marketplace.atlassian.com/apps/1210722/confluence-source-editor?hosting=server&tab=overview). In my opinion, it's a must-have app (and it's free).

comments: author: William Yeack
body: Nice one!


author: William Yeack
body: s


Tags: confluence-server

server