youngmon/atlassian-qna huggingface dataset:
How do i look up "non space files"?
Asked by Marcus Raitner:

Checking the filesystem on our confluence instance i noticed we have a bunch of files (approx. 6 GB) in the attachments/ver003/nonspaced directory.

How is it possible for user to upload files that are not attached to a space? And how may I administrate/manage the files in confluence (delete)?

The nonspaced directory is twice as big as all other attachments directories.


Answers:
author: Nic Brough -Adaptavist-
body: A user can't do it directly, admins are probably responsible for some of it.

Nonspaced files broadly fall into two categories

* Files that don't live in spaces - this is pretty much negligible, but includes things like the global site logo and graphical data from the odd add-on that doesn't belong in a space
* Files that would live in spaces, but don't yet - I suspect this is your size problem. Atlassian just says "attachments on unsaved content". To my mind, this means "pages people have drafted, but not published", although there might be other stuff (e.g. attachments on pages in the waste bins).

Problem is, I'm not sure how to identify what in there could be deleted. I'd recommend asking the users to go to profile -\> drafts and seeing what they could complete or discard, but I don't think there's an easy way to see what they've got so you can blame/chase the main culprits.

comments: author: Marcus Raitner
body: Hi Nic and thanks for your reply. I have done additional research on this issue. The nonspace folder ist more than twice as big as the attachment folders that are linked to a space. I think this is quite unusual/not normal or am I wrong?

And querying the database it seems that a lot of file are in space and nonspace attachements as well and also several times. This query shows me files not in a space:

select c.TITLE as "Attachment Name", cp.LONGVAL as "File Size", c2.TITLE as "Page Title", /\*s.SPACENAME as "Space Name", \*/c.SPACEID,concat("http://\<confluence_base_url\>/pages/viewpageattachments.action?pageId=", c.PAGEID) as "Location" from CONTENT c join CONTENT c2 on c.PAGEID = c2.CONTENTIDjoin CONTENTPROPERTIES cp on c.CONTENTID = cp.CONTENTID/\*join SPACES s on c2.SPACEID = s.SPACEID \*/where c.CONTENTTYPE = 'ATTACHMENT' and cp.PROPERTYNAME = 'FILESIZE' and c.SPACEID IS NULLorder by cp.LONGVAL desc;

I would like to be able to delete files which are not neccessary oder wrong saved.


author: Nic Brough -Adaptavist-
body: I'm not that surprised - the non-space files could include all files that could be attached in the drafts across every space!

I would not want to delete files from here in case people actually are planning to finish their drafts. But I would want to use something like your SQL to find out what all the drafts are and poke their owners over to https://yourconfluence/users/viewmydrafts.action to get them to review them.

(I've also noted down that I now want to work out a way to auto-discard drafts by inactive users and ones that are over x weeks old...)


Tags: confluence-server

server
After a clean install of Confluence on Centos 7.4 server, I can not enter in the Confluence
Asked by Burlakov Eduard:

When the Confluence required a password for the local administrator, I entered 12345678

After when I needed to use this password, the system did not accept it.

And did not give any error, just again returned to the password entry page

What to do?


Answers:
author: Burlakov Eduard
body: hand and face <https://confluence.atlassian.com/confkb/login-screen-loops-back-to-login-screen-with-no-error-when-using-correct-username-and-password-296913272.html>

comments: author: Daniel Eads
body: Hi Burlakov,

Were you able to get logged in to Confluence using the KB article you linked to?

Thanks,  
Daniel
Find Favorite Spaces in Confluence via CQL
Asked by Admin User:

Hello,

I want to use a CQL Query to find all favorite spaces for the currentUser in Confluence. Do someone has an idea how to do that?

To find all favorite pages it is easy

favourite = currentUser()

But I need this for Spaces.

We are using Confluence 6.12.2 and have Scriptrunner for Confluence installed (5.4.36).

Thanks

Katrin


Answers:
author: Admin User
body: Hi Shannon,

Thanks for your answer. I need this for the navigation bar with the subspace plugin. There I want an entry for personal spaces.

I've found an other easy way to show all favorite spaces for the logged in user:

space.type = favorite and type = space

This works perfect.

Cheers

Katrin

comments: author: Shannon S
body: Katrin,

Happy to hear you were able to resolve the issue in the add-on!

Thank you for letting us know how you did it.

Take care, and have a nice week.

Regards,

Shannon


author: Shannon S
body: Hi Katrin,

What are you going to be using this for? I believe you could do this with a SQL query instead.

You would want to combine [How to list the users favourite pages and spaces](https://confluence.atlassian.com/confkb/how-to-list-the-users-favourite-pages-and-spaces-790626896.html) but restrict it to a specific user using the method from [How to list which spaces a user can access](https://confluence.atlassian.com/confkb/how-to-list-which-spaces-a-user-can-access-321258272.html). For example,

```
WHERE um.lower_username = '<user_name>'
```

I'm not a wizard with SQL but I believe this could get the information you need.

Regards,

Shannon


Tags: adaptavist

confluence-server

server
Confluence rest-api get blogpost
Asked by Patrik Ytterstr?m:

How to get the latest blogpost from Confluence rest-api ?


Answers:
author: Santwana Sarangi {Appfire}
body: Hi Patrik,

Here is the rest api *++\<Confluence url\>/rest/api/content/search?cql=type=blogpost order by++* lastmodified*++desc.++* The topmost result will give you the latest blog post based on the updated date. If you want based on the created date, then replace the "lastmodified" with "created".

Thanks,

Santwana
Incoming links on a page
Asked by Mokhtar HAMDOUCH:

Is there a way to display **incoming links** with-in a page for a **Cloud** confluence Version


Answers:
author: Bob Sovers
body: This is is Atlassian work item: [https://jira.atlassian.com/browse/CONFCLOUD-35218](https://jira.atlassian.com/browse/CONFCLOUD-35218?)

It has been there in one form or another for over 6 years.

Go there and vote for it... maybe Atlassian will get the hint and work on this if enough of us ask for it.


author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Mokhtar HAMDOUCH](/t5/user/viewprofilepage/user-id/2314588),

You must be knowing 'Page Info' displays all the incoming links of the page. To display the same on the page - [this](https://community.atlassian.com/t5/Confluence-questions/Show-incoming-links-on-page-when-using-cloud-version/qaq-p/347401) old community post might help you.

[This](https://marketplace.atlassian.com/apps/1212102/incoming-links?hosting=server&tab=overview) plugin also can be of help.

Thanks

Sireesha

comments: author: Mokhtar HAMDOUCH
body: Hi,

Thanks for your reply

Unfortunately, the "Incoming Links" add-on you sent me works only for the the server version...

Mokhtar


author: Sireesha Dugginapeddi [Appfire]
body: Sorry about that! I hope the community post was helpful!


Tags: cloud

confluence-cloud
ConfluenceIndexer: index vs reIndex
Asked by Andrei:

What's the difference between **index** and **reIndex**?

<https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/search/ChangeIndexer.html>

<https://docs.atlassian.com/atlassian-confluence/6.6.0/com/atlassian/confluence/search/lucene/QueuingConfluenceIndexer.html>


Answers:
author: Stephen Sifers
body: Hello Andrei,

Confluence indexes are present to allow for easier and more accurate search and auto populate results. The main differences between Index and a reindex are objective to what you are attempting to index or reindex.

Within confluence there is a Content Index which is responsible for your search results, space activity and other recently updated content. If this content has never been built you will need to build (index) this content. If the content has been built but results are not accurate or content is missing then you will need to rebuild (reindex).

More can be found at the following in regards to indexes within the UI:

[Configuring the Confluence Search and Index](https://confluence.atlassian.com/doc/configuring-the-confluence-search-and-index-313468163.html)[Content Index Administration](https://confluence.atlassian.com/doc/content-index-administration-148844.html)[How to Rebuild the Content Indexes From Scratch on Confluence Server](https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html)

Creating Confluence content from an API call such as a space or page may not be instantly reflected within the search index. In this case, you will need to ensure you trigger an index of the content if the content is new. You will need to reindex if the content has been updated. When triggering an index you do need to ensure not to indexing/reindexing all content (unless that is what you're looking to do) as there will be performance issues while this completes.

If you are interested in a more developer focused discussion, we would suggest you take a look at the [Developer Community](https://community.developer.atlassian.com/c/Confluence) we have.

Regards,  
Stephen Sifers

comments: author: Andrei
body: Thanks Stephen, I've posted in the wrong forum.  
You can delete the question as it's not relevant here.


Tags: atl-dev

lucene
??????????
Asked by ?????:

??????Hanya??????

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

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

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

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

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


Answers:
author: Nobuyuki Mukai
body: ?? ??

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

[???????????](https://ja.confluence.atlassian.com/confcloud/assign-space-permissions-724764762.html "???????????")??????????????????????????????????????????????????????????

????????[????](https://ja.confluence.atlassian.com/cloud/manage-groups-744721627.html "????")???????????????????????????????????????????????????????????[???????????](https://ja.confluence.atlassian.com/confcloud/assign-space-permissions-724764762.html "???????????")?????????????????????????????????????????

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

comments: author: ?????
body: ???

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

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


Tags: cloud

confluence-cloud

language-ja
which database table holds primary key PageId
Asked by Mukka Vishnupriya:

Could you please say me the table name which has primary key PageId.


Answers:
author: Nic Brough -Adaptavist-
body: Confluence doesn't have "custom fields", so your question needs expanding to tell us what you're really asking about?


author: Mukka Vishnupriya
body: I want to delete pages which has last modification date long ago. To perform action, I am searching the table which has details of pages.

comments: author: Nic Brough -Adaptavist-
body: Ah, ok, you've edited the question to remove part of it, I wasn't sure why my answer no longer matched it!

The last modification date of a page is derived from all the pages that make up its history, so it's not a simple SQL query - you have to go over the whole lot to see what the most recent change was.

You might find it easier to explore via reporting that pulls out older pages (I tend to lean towards user macros)


Tags: confluence-server

server
How to add label to many pages(more than hundred) quickly ?
Asked by lexel225:

I import a word file into space and result to more than six hundred pages.

I would like to add same label to these pages.

Is there any convenient way ?

Thanks.


Answers:
author: Michele Lim [Cprime]
body: [@lexel225](/t5/user/viewprofilepage/user-id/2313772) adding to Alexey's answer, we just made a video on how to bulk add labels, you can check it out here <https://youtu.be/nM0a8JM2T2E?list=PLKTAla3ZrW8mMmYvgOVf3UPXU8V4nc-xj> hope this helps!


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 and I find it very convenient to perform administration tasks in Confluence.

You could write a script to select required pages and add a label to them.

For example, if you want to set a lable to all pages under a certain page, your script would look like this:

    number [] allChildren = getPages(11801);?
    for(number childPage in allChildren) {
        %childPage%.labels += "newLabel";
    }?


author: Rambabu Patina _Appfire_
body: Hi [@lexel225](/t5/user/viewprofilepage/user-id/2313772),

Either use the CLI app (<https://marketplace.atlassian.com/plugins/org.swift.confluence.acli>) or the REST API (<https://confluence.atlassian.com/plugins/servlet/restbrowser>)

Hope this helps you.

Thanks,  
Ram.


Tags: confluence-server

server
Preventing Email Bombing using the Share Page function
Asked by Peter Macdonald:

Is there a way to prevent a user from Email Bombing when using the Share a Page function described at <https://confluence.atlassian.com/confcloud/share-a-page-or-blog-post-724765345.html>


Answers:
author: Shannon S
body: Hi Peter,

The Share Page function uses your outgoing email server setup from Confluence, which should have some way of preventing bulk email from going out.

I would recommend getting in touch with your email server admin to see what they have in place to prevent this from happening.

Regards,

Shannon


Tags: confluence-server

server
I can't Set up Confluence
Asked by Vincent Tang:

When I finish my setup progress, getting Confluence up and running. But I can't link to localhost:8090, it doesn't work for me.

Please contact me if anyone can help me, my email address is \<removed to prevent spam\> Thanks for your help!

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


Answers:
author: ajeet_singh
body: Hi [@Vincent Tang](/t5/user/viewprofilepage/user-id/2313458),

what is your environment specification,

comments: author: Vincent Tang
body: Win10 , Chrome

Do you mean this?


author: ajeet_singh
body: where you installed the confluence ,

operating system, Database etc.
Create from template under specific page in another space
Asked by Jarrod Peeters:

I have a "create from template" macro working to create a new page in another space.

I want each page created in the other space to be created underneath a specific page in the other space, however it will only create the new page under the Space with no option to create as a sub-page in that space.

Can anyone think of a way to make this work, with the caveat that I cannot create or edit a macro as this is locked down by my company's administrators of Confluence.


Answers:
author: Shannon S
body: Hi Jared,

A user called Angus had [discussed this topic](https://community.atlassian.com/t5/Confluence-questions/Create-from-Template-and-Specify-Parent-Page/qaq-p/290661) in the past, and a workaround was determined.
> I've just used this workaround in Confluence 5.5 and can confirm it works:
>
> Take the URL from the normal create from template macro and change
>
> ```
> &amp;fromPageId=#######
> ```
>
> to the id of the desired parent. You can then use a macro such as UI Button from [RefinedWiki UI Toolkit](https://marketplace.atlassian.com/plugins/com.refinedwiki.confluence.plugins.uitoolkit) to make it look nice :)

On [another thread](https://community.atlassian.com/t5/Confluence-questions/Create-template-which-creates-page-directly-in-parent-page/qaq-p/827828), a few more suggestions are mentioned, so please feel free to have a look there!

We have a feature request below that could help with this. The request is to provide more parameters for the macro:

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

It would really help if you could vote for that request and comment with your usage case on that issue.

Let me know if you have any questions.

Regards,

Shannon

comments: author: Miki
body: This is not working for Confluence Cloud
Does the Whitelist protect you from links in Comments
Asked by Peter Macdonald:

<https://confluence.atlassian.com/doc/configuring-the-whitelist-381255821.html> details how the Confluence Whitelist protects Confluence from malicious links in content. Does this also protect us from links added to Confluence pages in a Comment?


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

The Confluence whitelist is designed to allow content from sites when those sites have been added to the whitelist. This whitelist does not protect against malicious links or content. This whitelist does allow you to block content from sites you have not explicitly allowed through the list.

Links will still be made available within pages, blogs and comments and those links will still be clickable. The whitelist does block links, it blocks content from loading within a page if the domain or URL is not listed. An example of blocked content would be to have an RSS feed which was attempting to load content on a page from a domain note listed within the whitelist. The content for the RSS feed would not be allowed due to the domain not being present within the whitelist.

Here are examples from the RSS feed macro:
> CAUTION: Including unknown HTML inside a webpage is dangerous.  
> HTML inside an RSS feed can contain active scripting components. This means that it would be possible for a malicious attacker to present a user of your site with script that their web browser would believe came from you. Such code could be used, for example, to steal a user's authentication cookie and give the attacker their Confluence login password.
>
> The RSS Feed macro may be disabled by your Confluence administrator. Also, your Confluence administrator can define a [whitelist of trusted URLs](https://confluence.atlassian.com/doc/configuring-the-whitelist-381255821.html). You will see an error message on the Confluence page, if the included URL is not in the whitelist.

Source: [RSS Feed Macro](https://confluence.atlassian.com/doc/rss-feed-macro-139431.html)

Just to reiterate, the whitelist macro does not replace a good antivirus/malware product and does not provide protection against malicious links/URLs in pages and comments. The whitelist will only block content from requesting information from a URL/domain that is not present within the whitelist.

Regards,  
Stephen Sifers


Tags: confluence-server

server
Version control of attached document files
Asked by Patrick O_Connell:

Hello all,

A search six ways 'til Sunday finds nothing about this here, in the community. I'm wondering if it's because it's such a basic question. At this job, and a new Confluence user, for 1 month and a bit.

I've got a draft style guide, in Word. (I haven't brought it into Confluence yet. I find Confluence very limiting, and I am *not* a lover of MS Word! In this case, familiarity plus richer feature set beats dislike of giant feature-creature app).

That was created 12 days ago, so I want to update it. I've just created a page, and attached the initial version.

Does Confluence store previous versions of such documents? Same question for images. I *do* like that you can drag the same-named file into Upload if you need to update an image, and it'll automatically replace what's there. I suspect the answer's yes, for both.

Thank you,  
Pat O'Connell  
Tech writer  
Montreal


Answers:
author: Vadim Rutkevich
body: Hi Patrick,

you can also try [Smart Attachments for Confluence](https://marketplace.atlassian.com/apps/1219123/smart-attachments-for-confluence?hosting=server&tab=overview). This app allows you to have a file storage on a space level and keep your files there.

So, in this way you have a single entry point for storing attachments that are used by multiple teams and users. It also supports revisions, so you just need to drag-n-drop a new revision into the folder.

Feel free to drop an email to vrutkevich@stiltsoft.com if you have some questions.

Thanks.

Sincerely, Vadim


author: Nic Brough -Adaptavist-
body: Your assumption is correct - Confluence doesn't care what you're attaching, it just versions each file you send it. If you have files with different names, you get different attachments. When you give it files of the same name, it simply creates version n + 1.

However, I'd be tempted to import the document instead. That will create it as a Confluence page, which gives you far more functionality (versioning still, but also diffs and records of who changes stuff between versions, collaborative editing and immediate presentation instead of having to download a file)


Tags: version

attachment

ms-word
How can I add the parent issue description to the jira macro in confluence?
Asked by Anike Jenneker:

I have a next-gen Jira project with Epics and linked child Tasks. How can I show the linked Epic/parent Description? I've tried Epic Link and Epic Name but the parent is not showing.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/38033i1C520BE3BCC1C81D/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Ang?lica Luz
body: Hi Anike,

I was able to reproduce the same issue here and by searching on our features I found that Epic link does not show on Confluence because currently, it's not possible to use JQL for Epic link on next-gen projects.  
- <https://jira.atlassian.com/browse/JSWCLOUD-17239>  
This feature is from Jira, but it affects Confluence since you are filtering issues from a next-gen project.  
Please, click on vote and watch to receive updates about the feature.

Regards,  
Ang?lica

comments: author: Dayong Wang
body: Hi, the above issue link was closed, but the issue was open.

As a confluence user, I want to see the EPIC name and link (not a key in text) when I choose the Jira Macro and select "Parent" for a next-gen project.


Tags: cloud

confluence-cloud

jira

next-gen