youngmon/atlassian-qna huggingface dataset:
How to you write an sql statement that prints everything belonging to a particular space?
Asked by P:

On[this page](https://confluence.atlassian.com/confkb/how-to-remove-a-page-manually-in-the-database-using-sql-commands-385321460.html), a query has been given to delete a page manually via SQL.

How can this query be modified to print (instead of delete) everything belonging to a space given the space key?


Answers:
author: Nic Brough -Adaptavist-
body: With great difficulty, the data structure in Confluence is not what you expect it to be and you're going to need to think about dozens of queries in order to extract that.

The manual deletion thing you've found is nothing to do with reporting, it's there for when things are genuinely broken in the database and removing a page that way is the very last resort, and hence highly focussed on doing just a delete with minimal collateral damage.

Why are you trying to find everything that is in a space? If that really is what you want for some reason, then why are you not simply using the space tools to get a list of pages and attachments (as those two are likely to be really what you're interested in).

comments: author: P
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) - As mentioned in my reply to [@Radek Dost?l](/t5/user/viewprofilepage/user-id/715713) , we are trying to diagnose a problem happening only in a particular space and not in other spaces. So having a query that prints out what's in a space will be useful in doing a diff between good spaces and this one bad space.


author: Nic Brough -Adaptavist-
body: Ok. It probably won't be that useful, and more to the point, SQL is an awful way to try to get these lists out.

What exactly is the problem you are having? It's very likely we can help you identify the cause and fix without torturing ourselves with database queries.


author: Radek Dost?l
body: Why do you want to do this from SQL and for what purpose? That is one of the most painful methods you could possibly go for. There are space export options as well as content tools, besides the fact that page content will be stored in storage format in the database.

Moreover, what do you consider as "belonging to space" - are we talking about just pages, blogs, or are we also talking about space actors, notifications, subscriptions, attachment, labels and so forth, that's quite a lot of tables you would have to join.

comments: author: P
body: [@Radek Dost?l](/t5/user/viewprofilepage/user-id/715713) - It will help us diagnose a problem with a particular space. I am most interested in pages, blogs (and their previous versions/children), and attachments (and previous versions) to those pages and blogs.

space actors, notifications, subscriptions, labels are not needed at the moment.


Tags: confluence-server

server
Images Failing to Load
Asked by Emerix _Administrator_:

We've noticed recently that random images on random confluence pages on one particular space are missing and not loading (error message 'Failed to load').

Space root has the old version editor (Legacy). Page with image error, the new.

Confluence status page indicates operational and no incidents reported.

Any help with this?

Thanks!

Romina


Answers:
author: Emerix _Administrator_
body: Hi Bill,

nop... I created a support ticket for this. Hope it gets fixed soon. Thanks again for your answer.

comments: author: Kieli Wei
body: Hi Emerix, do you know if you already have a response to the support ticket? I am experiencing the same issue with images failed to load


author: Emerix _Administrator_
body: Hi Kieli,

Check out if the image you fail to see has been uploaded directly on that page or is actually attached to a different page. May be you are facing this issue because you don't have access to the page to which the images are uploaded (restrictions are inherited to children pages). If that were the case, these are two possible solutions: add the users that need to access these images on the restrictions applied to the desired pages, or upload the desired images directly on the affected page.

Hope this helps.

Romina


author: mickael moreau
body: Hi Emerix,

I have the same issue. The workaround is to remove picture and uploaded again.

It is not a good solution because I lost my history pictures

Regards

Mickael


author: Emerix _Administrator_
body: Hi Michael,

try raising a support request and provide as much information as possible. Maybe it is a particular problem on your instance and hopefully you?re offered a different solution.

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

Regards

Romina


author: Emerix _Administrator_
body: Hi Bill, yes, Chrome, Edge, etc. and all users with access to that space (Producto Emerix 6.x).

comments: author: Bill Bailey
body: are there differences in how the images were inserted into the page (for example, just pasted). or in the file type?


author: Bill Bailey
body: Do all users and different browsers see the same issue?


Tags: atl-gruland

cloud

confluence-cloud
Enable REST API access to confluence
Asked by Roja Gurram:

Hlo All,

Can someone please let me know how to do the below query ( Raised by the CLIENT ).How do we achieve please.

Could I get access to add pages to confluence in the TEST Space via the REST API. I am automatically building a page to track some metrics and it would be good if the script could upload to it directly.


Answers:
author: Gonchik Tsymzhitov
body: Hi [@Roja Gurram](/t5/user/viewprofilepage/user-id/3627350) ,

Please, start from auth part - which is related to the tokens.

After your favourite docs will be the next link <https://developer.atlassian.com/cloud/confluence/rest/intro/>

<https://docs.atlassian.com/atlassian-confluence/REST/1000.107.0/>

Of course, you can build pages automatically.

And rest api on cloud is enabled by design.

comments: author: Roja Gurram
body: Hi Gonchik,

Thanks for your response.

As a admin what need to take action from my end to give permissions to the client please ?


author: Gonchik Tsymzhitov
body: Nope, I just share the next link that's it.

<https://id.atlassian.com/manage-profile/security/api-tokens>


author: Roja Gurram
body: Gonchik,

We just need to create tokens for the user by using the below link ? Else is it sufficient to send the link to the Client?

<https://id.atlassian.com/manage-profile/security/api-tokens>


author: Gonchik Tsymzhitov
body: The client need to create a token.

Because they will use that token with related permission as user


Tags: atl-gruland

cloud

confluence-cloud
How to join 2 tables?
Asked by Chetan Belur:

I have 2 tables that I want to join. 1st table is a user created table form the source editor which is always static and the 2nd table is output from the table csv macro. 1st table is just header rows for the 2nd table. I want 1st table to sit on top of 2nd table. 1st is static and has merged cells in them. Because I can't merge cells in the table from csv table macro, I created one static table containing only header rows and have merged cells. Now I want to join these. Literally 1st table should be on top of 2nd table. I have no clue about sql at all. I looked into table transformer macro. On googling about them for 2 hours, I don't think sql insert or join helps me achieve this. If it does please let me know, how I can do this. Thank you!


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Chetan Belur](/t5/user/viewprofilepage/user-id/4234104) ,

Unfortunately, you won't be able to implement the case. Due to the limitations of Confluence editor, the Table Transformer macro transforms multi-level headings to one-level headings so that to accomplish further operations with columns.

comments: author: Chetan Belur
body: Hi Katerina, thanks for the response. So the next question would be, is there a way to merge cells on a table that is output from the csv table macro? or is there any way to create tables that has merged cells? I cannot do merge cells manually in the source editor because I'm uploading data to the page through scripts


author: Katerina Kovriga {Stiltsoft}
body: Sorry, couldn't come with any ideas.

Our Table Transformer allows to split one column into two (for example, if you need to divide [task name and its description](https://community.atlassian.com/t5/Confluence-questions/Why-is-my-Gantt-chart-not-showing-the-JIRA-ticket-names/qaq-p/1359981)) and you'll be able to merge several columns into one (not specific cells but the whole columns of a native Confluence table or created with the Table from CSV macro):

![Fri-1-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/126922iD6439014EBE79003/image-size/large?v=v2&px=999 "Fri-1-1.png")But you'll be able to merge the whole columns, not the specific cells and not in headings.


author: Chetan Belur
body: Ok, thanks for this info. Looks like a basic thing such as merging cells automatically through scripts or through table macros is not possible. Wish there was some way


Tags: confluence-server

server
A user in our team's space can only see the blog post option in the create menu
Asked by Nermine Abdulhafiz:

Hello,

A user in our space has the right permissions and should be able to create pages, but in the create menu he can only see the blog post option.

I tried the following:

* deleting his permission and granting it again
* different browsers (he tried on Chrome and Edge)
* clearing cache and cookies and he still cannot see any other option but the blog.

Any hints would be great.


Answers:
author: G subramanyam
body: Hi [@Nermine Abdulhafiz](/t5/user/viewprofilepage/user-id/4234055) welcome to the Confluence Atlassian community forum.

To answer your query, there are 3 levels of permissions in Confluence: **Global, Space, Page**.

As per your scenario, I think you should recheck the "space permissions" (Assignable permissions for each space) for that user. These links would assist you with the same:

**[https://support.atlassian.com/confluence-cloud/docs/what-are-space-permissions/](https://support.atlassian.com/confluence-cloud/docs/what-are-space-permissions/?)**

**<https://support.atlassian.com/confluence-cloud/docs/assign-space-permissions/>**

If you find my post useful, kindly upvote and "accept answer" for the benefit of new members.


Tags: confluence-server

server
Automatic renaming of articles on related pages
Asked by ??????? ???????:

How can I make sure that when pages change, their title is automatically changed in linked pages?

I have a merge problem with displaying the title of the page after renaming.

For example. There are two pages - Page 1 and Page 2. The link from page 1 is copied to page 2, after which the title "Page 1" is displayed. There can be several such connections.  
Rename "page 1" to "page 1.1" in the future. In this case, for some reason, these names on page 2 do not change .. or change somewhat.


Answers:
author: Nic Brough -Adaptavist-
body: Do you mean they are pasting in the page urls and manually copying the display name?

If so, then there's no way to automatically rename links. Confluence has no way of knowing what you want from the link and no way of knowing when a link changes. Your people will need to manually update all the incoming links when they change a page name.

Or you could get them to use Confluence's links - when you create an internal link to \[space:page\] Confluence automatically uses the page title for the link, without any text needed, and if the target is moved or renamed, it automatically uses the new link and/or name.


author: ??????? ???????
body: Thanks for the help. We will try to use this approach in a couple of sections.


author: ??????? ???????
body: As far as I know, my colleagues use a simple way: copy / paste


author: Nic Brough -Adaptavist-
body: Are you using the internal page linking function for these links?
The link to an Anchor works, but the result is hidden behind the "Edit" bar. How can I improve this?
Asked by antoine.weekers:

When creating a link via an Anchor, the result is that the Anchor is hidden behind the Edit bar and is therefore not visible. How can I ensure the result is visible for all users?


Answers:
author: Kian Stack Mumo Systems
body: [@antoine.weekers](/t5/user/viewprofilepage/user-id/4233800), it looks like there is some discussion of this issue in another question [here](https://community.atlassian.com/t5/Confluence-questions/Confluence-issue-with-Anchor-links-hidden-by-breadcrumb/qaq-p/1286398).

They are recommending that you put a line break after the anchor and before the header of the area you want to link to so that the header is visible.

comments: author: antoine.weekers
body: Thank you for pointing me to the similar discussion.


Tags: anchor

new-to-confluence

server
Counting using Macro
Asked by SHEILY:

If i need to count how many times particular word came in row, is it possible using macro ?


Answers:
author: Kian Stack Mumo Systems
body: [@SHEILY](/t5/user/viewprofilepage/user-id/4233775), can you please provide a little more clarity on what you are trying to do? Confluence has no way to do this out of the box, but if you provide some more information, we might be able to find an add-on which can help with your requirements.   

Thanks,  

Kian


Tags: cloud

confluence-cloud
I am unable to restrict confluence page
Asked by Pravin:

**I am getting below error message when I try to restrict the page. Please advise.**

**You're not allowed to change these restrictions. It's either due to edit restrictions on the page, or permissions settings for this space.**


Answers:
author: G subramanyam
body: Hi [@Pravin](/t5/user/viewprofilepage/user-id/4233758)

welcome to the Confluence Atlassian community forum.

To answer your query, there are 3 levels of permissions in Confluence: **Global, Space, Page**.

As per your scenario, I think you should recheck the "space permissions" (Assignable permissions for each space) for that user. These links would assist you with the same:

*<https://support.atlassian.com/confluence-cloud/docs/what-are-space-permissions/>*

*<https://support.atlassian.com/confluence-cloud/docs/assign-space-permissions/>*

*<https://support.atlassian.com/confluence-cloud/docs/add-or-remove-page-restrictions/>*

If you find my post useful, kindly upvote and "accept answer" for the benefit of new members.


author: Ollie Guan
body: Hi [@Pravin](/t5/user/viewprofilepage/user-id/4233758) ,

Add restrictions gives you permission to apply page-level restrictions to a page or blog post. You can restrict a page for viewing, or just for editing.

<https://confluence.atlassian.com/conf615/space-permissions-overview-967337351.html>

<https://confluence.atlassian.com/conf615/page-restrictions-967337528.html>


author: Vero Rivas
body: Hi [@Pravin](/t5/user/viewprofilepage/user-id/4233758)

Are you the administrator?

Probably if you are not, you have restrictions on your own permissions to perform that operation, if so, you will have to speak with the administrator to grant you said permission

Cheers
Export
Asked by aynura.nasibova:

Hello!

We are using the Confluence for Server. Please help me to solved this problem: we have some problem with files export (Word):

pictures are not uploaded(

I\`ll be very thankful if you could help!


Answers:
author: Brant Schroeder
body: [@aynura.nasibova](/t5/user/viewprofilepage/user-id/3987456)

Can you share a screenshot of the images that are not being included in the word export. Also how are you adding these images to the page? Are the images large in size?


Tags: confluence-server

export

server
Identifying Confluence pages that is embedded with specific macro
Asked by Wayne Syaz:

Hello,

I am having trouble identifying which pages in Confluence that has used such macro. For example, I had multiexcerpt in one page, and it has been multi-excerpts include in 5 more pages. Is there a quick way to identify which are those 5 pages?   

Thanks.


Answers:
author: Digimetis
body: Hi [@Wayne Syaz](/t5/user/viewprofilepage/user-id/4233700)

Perhaps try from the Confluence Admin page, there should be a "Macro Usage" section... 'Admin Cog' \> General Configuration \> Macro Usage

Refrence: <https://confluence.atlassian.com/doc/macros-139387.html#Macros-Macrousagestatistics>

Hope this helps!


Tags: confluence-server

server
Instant Websites for Confluence - Cloud
Asked by Bhakti Honmute:

Dear Team,

I want to develop an instant website to my confluence using HTML, CSS, and JavaScript, but unable to see option instant website, in space tool--\>integration, refer below screen shot:

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

spacean area reserved for some particular purposeMore (Definitions, Synonyms, Translation)


Answers:
author: Nic Brough -Adaptavist-
body: Ok, that confirms you have not got it installed. Move to the option above, "Find new apps" and search there.


author: Bhakti Honmute
body: Thanks for a quick reply.

I searched for Instant Website app but it's not listed -

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

kindly assist on above.


author: Nic Brough -Adaptavist-
body: Not from us, we're people with an interest in Atlassian stuff, not your admins.

Use "manage apps" to get an installation and trial for it.


author: Bhakti Honmute
body: Thanks for quick reply.

can I get a trial version for instant website for look n feel please?


author: Nic Brough -Adaptavist-
body: That suggests you have not subscribed to the app that provides the instant websites.


Tags: cloud

confluence-cloud
News feed based on likes
Asked by Markus Homeister:

In my space I would like to show all blog post which I or a specific user has liked.

I want to present my readers an overview of interesting Blogpost. I do not have write access to the spaces where the posts are made. I just can like, comment or add them to my favorite list.

Can I use this to generate a news feed so that people reading my space can see what I'm interested in?

Thanks


Answers:
author: Andrew Kendris
body: [@Markus Homeister](/t5/user/viewprofilepage/user-id/4233657) , great question!

Perhaps the Page Properties Report Macro could be a suitable workaround if you want to pull in details pertaining to the number of likes or comments there are on a page. In order to add this macro to the page, you'll need edit access. Keep in mind the pages you want to pull into the Page Properties Report Macro need the Page Properties Macro embedded and populated appropriately.

Re: Page Properties Report Macro, I've provided below a screenshot where those settings are in the macro.

![Screen Shot 2021-01-22 at 1.14.16 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/126822i0F26AD4026CBFFCC/image-dimensions/275x443?v=v2 "Screen Shot 2021-01-22 at 1.14.16 AM.png")

comments: author: Markus Homeister
body: If I could convince the space owner to add a page properties report.  
Than they probertly would allow me to set labels. Which is the easiest solution.

I wanted to share my favorite Blogposts with others.

In the mean while I found

* Favorites List
  * (!) only working for current user not a different one
* Search Result
  * Content Type: comment
  * Restrict to this Username: my user
  * (!) What to put to the search term to see all?
* Recently Updated Dashboard
  * (!) not atomatically updated
  * (!) number of entries or age can not be limitted


Tags: cloud

confluence-cloud
How can do a TITLE search in confluence for a page?
Asked by Partha Maitra:

I am front-end user. When I copy paste the exact title, I get NO results. I have used the filter "with title" as well, but no results. Why am I unable to get the result when I do an EXACT TITLE SEARCH in a confluence page?


Answers:
author: KAGITHALA BABU ANVESH
body: Hi [@Partha Maitra](/t5/user/viewprofilepage/user-id/4233650) ,

Welcome to Atlassian Community. The following link may help you in searching the content. Please check.

[Confluence Search Syntax](https://confluence.atlassian.com/conf71/confluence-search-syntax-979423613.html)

Thanks.

comments: author: Partha Maitra
body: [Kagithala Babu Anvesh](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4194998) I checked the search syntax, but didn't find anything helpful about my query.


author: KAGITHALA BABU ANVESH
body: Hi [@Partha Maitra](/t5/user/viewprofilepage/user-id/4233650) ,

can i get some reference search "Text". will try from my end.

Thanks.


Tags: confluence-server

search

server
Put a /create from template button on a template
Asked by Micheal Planck:

So: I have a page template. It includes a /create from template button to add child pages.

(Note that to create such a button, you have to make it on a regular page, and then paste it into your template, since you cannot edit the Template field of a /create from template macro when on a template.)

Here is the problem: when you create the page from a template, its button to create its own children points to the space the button *was created in* when you first made it and pasted it to the template.

Although the supporting text says the default is to use the current space, you cannot leave the space field blank. It must have a valid space key. And since the space you will be using when you create the template doesn't exist, you can't enter that new space key.

Wait, it gets worse.

Once you create the page from the template, if you enter edit mode on that page and edit the button, it *magically replaces the space key with the current space*. You cannot even see the old, inappropriate key. If you now click Save, having changed nothing, and then Publish, the button will work as expected: it will now create children in the current space.

So: I can give my users a helpful template that creates a page with a button that will then create child pages. They just have to *edit every button by hand*, at least once, while changing nothing.

Obviously the intent was for a /create macro to update itself to the current space. We know this because that is what it does when you try to edit it. However, it does not do that *until* you try to edit it.

Does anyone know a trick to convincing all of the macros on a newly created page to update themselves properly?


Answers:
author: kioobee
body: I have the exact same problem ! Using those macros is a handy way of filling up a space with pages in a predefined, standard way.... Having the ability to either leave the space key field empty or use the @currentSpace keyword would resolve this issue.

comments: author: Micheal Planck
body: It seems obvious that is how it is supposed to work. So this isn't one of Atlassian's bizarre notions of work flow; it's just a bug.


Tags: cloud

confluence-cloud