youngmon/atlassian-qna huggingface dataset:
External user access to confluence space
Asked by bee:

Hi,

I'm new to Confluence and have a basic question....

i would like to grant someone external to my company access to my project space. There are other project spaces that I do not want him to see.

From what i read, I need to first create him as a user via setting \> User management. Once I have done that, how do i restrict him to only see my project space ?

thank you in advance for assistance.


Answers:
author: Bastian Stehmann
body: Hi [@bee](/t5/user/viewprofilepage/user-id/3720749) ,

Welcome to the community.

Yes, that's right. You just have to create him an user account and then you have to check the space permissions.

It depends on how you granted the permissions to the other spaces. If you are using groups, make sure the external user is not in that groups.

If you only grant the permissions to single users, you don't have a problem at all.

Additionally, you have to grant the user permission to at least view that single space.

comments: author: bee
body: hi [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496) ,

i don't own the other project spaces, but on the space that i created and owned, I can see 2 groups : confluence-users and confluence-administrator, plus a few internal users which i added manually.

how do i make sure he is not in those groups after i have created him an account ?


author: Bastian Stehmann
body: Ok, that will make it probably a bit more complicated.

The confluence-users group is usually added to all users automatically and if it is used in your space, it will be in others probably too.

So might want to create a confluence-users-external group or something like that. Then you edit the groups after you created the users and change it to confluence-users-external.

Then the user should have that single group.

Then you can grant that single user the access to your space and additional you will probably have yo give the -externsl group application access.


author: bee
body: Thanks so much [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496) .

i am not able to see "User Management" under setting even though i have been told I'm Confluence Administrator, am i missing something or I am looking at the wrong place for adding the external user /adding a new group ? or i need to be a site administrator to add user ?

apology for so many puzzles to unpack.


author: Bastian Stehmann
body: I'm not absolutely sure about that, but I think you have to be an site admin to add a user.


Tags: cloud

confluence-cloud

external
Full text Search API for documents
Asked by Raj Kishor Singh:

Hi Folks i want to know does Confluence API support or provide results for full text data ie. content of documents. I can see for blogs and pages we can retrieve the body, but not sure is it possible for uploaded word or pdf documents.

thanks,

Raj


Answers:
author: Daniel Eads
body: Hey Raj,

Welcome to the Community! You can indeed use the API to search the text of documents for indexable content (Word, Text, PowerPoint, Excel, PDF, and HTML). The mechanism for searching via API is CQL - [here are the documents on all the available search operators](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).

The **text** parameter includes the contents of attachments. For example, if I've got a text attachment that contains the word "potato", this search will return it:

```
https://mysite.atlassian.net/wiki/rest/api/content/search?cql=text ~ "potato"
```

For completeness (although you're asking about Cloud), I'll mention that Confluence Server would use the **contentBody** parameter for searching instead of the text parameter. Just a slight difference to note for anyone else finding this via Google search and looking for Server help.

Hope that helps!

Cheers,  
Daniel

comments: author: crazy_rationalist
body: Hey Daniel,

I am using CQL search, but sometimes the results for the search term return empty. When I do the same search manually in Confluence, I get loads of results. So, is there a way to replicate the manual search with the API?  

Here's an example for the search term: "What is the per diem costs allowed to be reimbursed for business trips to Paris?"  

Manual search returning multiple results:

![Screenshot 2024-06-13 at 12.16.06?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/329677iAFBABA279723EC8D/image-size/large?v=v2&px=999 "Screenshot 2024-06-13 at 12.16.06?PM.png")

API search returning zero results:

![Screenshot 2024-06-13 at 12.17.38?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/329679iA168E1F32B25D28F/image-size/large?v=v2&px=999 "Screenshot 2024-06-13 at 12.17.38?PM.png")


author: Kunal Jha
body: <https://community.atlassian.com/t5/Confluence-questions/Confluence-Cloud-API-search-endpoint-wiki-rest-api-search-not/qaq-p/2747918#M317430>


Tags: cloud

confluence-cloud

rest-api
Impact of changing primary domain name in G Suite
Asked by Marine Saffar:

I need to change my primary domain name in Google Suite from my current domain name to a new one (which is currently an alias but which I need to become my primary domain name because I may lose my existing one) and I use Google for users authentication on Confluence and Trello.

What's the impact ? Will the new Google Sign-in automatically work?

Will I have to re-create all accounts with the new domain name?

Or can I just migrate existing users?

Any help appreciated.

All the best,

Marine


Answers:
author: Brendan
body: Hi Marine,

I'm wondering if you completed your G Suite primary domain migration?

I will be doing the same thing this month and had the same questions/concerns you raised.

Did you run into any issues?


Tags: cloud

confluence-cloud
HTTPs not starting after underlying system restart/shutdown
Asked by Dan:

Hi,

I am hosting a containerized Confluence (server) v7.0.1 configured with HTTPs and its own certificate on a server. The Docker image that I am using is atlassian/confluence-server.

All works well until I have to shutdown/restart the server. If one of those 2 operations are required, the HTTPs Confluence is not starting by default - just HTTP. After the server is booting up, Confluence is accessible via HTTP, but not also the HTTPs.

The workaround that I have found was:

- Delete the **/var/atlassian/application-data/confluence/lock** file;

- Change the port mentioned as "THIS PORT" with a new port in **/opt/atlassian/confluence/conf/server.xml row** \<Server port="\<THIS PORT\>" shutdown="SHUTDOWN"\>

- Stop and start again Confluence**/opt/atlassian/confluence/bin/stop-confluence.sh** \&\& **/opt/atlassian/confluence/bin/start-confluence.sh**

I would like to avoid this operation in the future as it takes a while until I have Confluence back again with HTTPs enabled.

Is any way that I can solve this issue?

Please let me know if you need any additional information.

Best regards,

Dan


Answers:
author: sukkeong
body: You can add Confluence as a service. This is usually done as part on the installation process - there is a prompt if I remember...

Otherwise, you can add the start/stop script in /etc/init.d. Here is an example that was generated as part of the installation process for JIRA. Just change to reflect your installation (I have removed the actual installation path

```
#!/bin/bash

# JIRA Linux service controller script
cd "/<jira_installation_path>/bin"

case "$1" in
  start)
    ./start-jira.sh
    ;;
  stop)
    ./stop-jira.sh
    ;;
  *)
    echo "Usage: $0 {start|stop}"
    exit 1
    ;;
esac
```

comments: author: Dan
body: [@sukkeong](/t5/user/viewprofilepage/user-id/1040091) thanks for your reply. In the containerized version, I have not seen any prompt to select installing Confluence as a service.

I would prefer a fix with a configuration in UI or in some files rather than fixing it with a cronjob. For some reason, if I am doing all these changes from the ticket's description too fast, I am getting this strange error:

```
23-Feb-2020 09:23:29.122 WARNING [Catalina-utility-4] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [https-jsse-nio-8443-exec-9] (id=[248]) has been active for [69,478] milliseconds (since [2/23/20 9:22 AM]) to serve the same request for [https://localhost:443/plugins/macrobrowser/browse-macros.action?detailed=false&macroMetadataClientCacheKey=1582448914693] and may be stuck (configured threshold for this StuckThreadDetectionValve is [60] seconds). There is/are [3] thread(s) in total that are monitored by this Valve and may be stuck.
```

Therefore, beside calculating the threshold until I can trigger a cron-job with all those steps inside, I would prefer a fix in UI or in some Confluence files.


Tags: certificate

confluence-server

https

server
Upgrade from v6.15.1 to v7.3.1 Failed
Asked by Gabe Ferland (Site Admin):

Followed my normal tasks for upgrading our confluence instance. This time after running the upgrade .exe without any error I get a message that confluence can't connect to the database.


Answers:
author: Bastian Stehmann
body: Hi,

Did you check, that the settings in the dbconfig.xml are still set right.

Is your database still supported?

With knowing more, it is only guessing what it might be.


Tags: confluence-server

server
Upgrade 7.1 to 7.3.1 - poblem mit PostgreSql version
Asked by Michael Gruber:

Hi,  
wants to upgrade Confluence from V7.1.0 to V7.3.1 (Server, Win). The system says that my database does not fit.

<br />

I have installed PostgreSQL DB (V9.5 and V12). Confluence shows me V12 as active DB. Is V12 supported at all? I thought I was using V9.5.

What can I do? I need V9.6 (after release notes) and I am confused how to proceed? Migrate from V12 to V9.5/V9.6? and then upgrade to Confluence 7.3.1?

Thanks for your help.  
Michael


Answers:
author: Nicolas Werle _Decadis AG_
body: Hi [@Michael Gruber](/t5/user/viewprofilepage/user-id/3774487)

Jira 7.3.1 does only support PostgreSQL versions 9.6 and 10. Your database check will always fail, if you use Postgres 9.5 or version 12. You should update to Postgres 9.6 to solve this problem.   
Best,   
Nicolas  


Tags: confluence-server

server
Confluence plugin recommendation needed for viewing Visio content-must be on prem, no cloud
Asked by Rob Horan:

I need to present options to a client with regards to plugins that can be installed and used on prem - NO CLOUD - to essentially convert Visio documents into a form that behaves like native Confluence content - viewable within a Confluence page without having to download or open a preview viewer.

We were using LucidChart On Prem but they have decided to murder their on prem version, so now my client is in need of an alternative, and in the near future.

The only thing that will not work is storage in the cloud.


Answers:
author: David Benson _draw_io_
body: draw.io has a [Lucidchart on-prem mass importer](https://desk.draw.io/support/solutions/articles/16000104665).


Tags: confluence-server

lucidchart

ms-powerpoint

ms-visio

server

visio
Expiration date on an article
Asked by Geetu Malik:

Hi there,

Is there a way, I can set a review/expiration date on a published document, so that when that when we reach the tagged date, an alert is triggered to the creator, that he/she needs to review info again ?


Answers:
author: Danny Zuccaro
body: Hi Geetu,

The steps outlined [here](https://community.atlassian.com/t5/Confluence-questions/How-can-i-set-a-expiration-date-for-a-page/qaq-p/854452) by [@Thomas Schlegel](/t5/user/viewprofilepage/user-id/781483) might meet your needs.

Hope this helps,

Danny


author: Aron Gombas _Midori_
body: You can set an expiration date on a page or a blog post, or even on a complete page tree, using the [Better Content Archiving for Confluence](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview) app:

![confluence-page-expiration-date.gif](https://community.atlassian.com/t5/image/serverpage/image-id/258562i22A8CD58D1B3821C/image-size/large?v=v2&px=999 "confluence-page-expiration-date.gif")

You can configure the app to [send a notification email](https://midori-global.com/products/better-content-archiving-for-confluence/cloud/documentation/configure/notification-emails) to the author, last modifier, specific user(s) or even specific group(s) with the list of the expired pages:

![notification-email-outdated-cloud (2).png](https://community.atlassian.com/t5/image/serverpage/image-id/258563iA6BAFF84843E242D/image-size/large?v=v2&px=999 "notification-email-outdated-cloud (2).png")


Tags: cloud

confluence-cloud
i cant access confluence - Database connection failed
Asked by Chris Birley:

m was running fine, but it suddenly stopped today - i get the following error - database connection failed upon accessing the system via web page. the database lives on the same machine

ive looked though the logs, and can see mention of:

2020-02-21 20:16:16,414 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>2rxibva8t6ga3lx9tsc0\|5a93acb6\]-HelperThread-#2\] \[mchange.v2.resourcepool.BasicResourcePool\] log Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@5e40caab is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.

ive rebooted the machine several times, and ensured that the confluence services are all running.

any suggestions as to where i can look - thanks in advance


Answers:
author: MAJ
body: Dear User

There is a file located in your home directory call *confluence.cfg.xml*

if you make a copy for that file and/or rename it. Then restart the system

the application will re-create that file. Assuming your Dbase is okay that should recover your system.

Good Luck

comments: author: Chris Birley
body: thanks, ive managed to get it so that it loads now - but its talking about a first time setup - does this mean that ive lost everything, and that the db is screwed? or just that i go through the motions of setting it up again and it will find everything it needs to and will be ok?


author: MAJ
body: as a rule of thumb always back up your database.

to answer your question. No the data in your database should still be there.


Tags: confluence-server

server
Enable Filter within Jira Service Desk and Questions for Confluence
Asked by Allison Beaudry:

Hi all,

Is there a capability within the Confluence system to filter out bad language within questions posted within Jira Service Desk and Questions for Confluence?

Thanks.


Answers:
author: Diego
body: Hello [@Allison Beaudry](/t5/user/viewprofilepage/user-id/3573492) !

Allison, your request does make a lot of sense.++*This has been reported in a similar fashion for pages some time ago but the final decision was that it would not be implemented.*++ You can check the ticket itself here:
> * ++**[\[CONFSERVER-6769\] Add capabilities to allow the proactive identification of offensive or inappropriate content](https://jira.atlassian.com/browse/CONFSERVER-6769)**++
> * ++**[\[CONFCLOUD-6769\]Add capabilities to allow the proactive identification of offensive or inappropriate content](https://jira.atlassian.com/browse/CONFCLOUD-6769)**++

I believe that the direction we could move is document revision. This does not apply to questions in Questions for Confluence. Here, take a look:
> * ++**[\[Atlassian Marketplace\] Confluence Apps](https://marketplace.atlassian.com/search?product=confluence&query=review)**++

For short, there is no native method to filter out profanities from Questions for Confluence.

Let us hear from you, Allison! Looking forward to your reply.

comments: author: Allison Beaudry
body: Ok, thanks for letting me know. I noticed that there is an add-on app called Flag Content, however I noticed that it has been archived. Is there any way to download a previous version?

A


Tags: cloud

confluence-cloud

jira-service-desk

questions-for-confluence
User Activity Log
Asked by Meredith Volk:

I am looking for a list of users who have edited articles over the last year.

I would also happily take a list of articles that were edited in the last year if it also included the names of the people who edited them.

Is it possible to get a report like that?


Answers:
author: Parvaneh Zand
body: Hi,

with '**Contributors** ' Macro, you can get a list of contributors sorted by Last Contribution Time. You need to specify scope of spaces(keys) to search.

<https://confluence.atlassian.com/conf65/contributors-macro-939701199.html>

![Selection_112.png](https://community.atlassian.com/t5/image/serverpage/image-id/84102i2B542E182EA009B9/image-dimensions/610x379?v=v2 "Selection_112.png")

For your second question, I guess **'CQL Search'** Macro will help only if you search for list of pages updated by a specific users. (e.g. pages that are contributed by *Someone* over the last year) :
>
> ```
> CQL= contributor in (@ username) and created > now("-1y") and type IN (page)
> ```

<https://developer.atlassian.com/server/confluence/cql-field-reference/>

but for more complicated results, as Aline said you need to use database queries.


author: Aline
body: Hi Meredith,

I do not think Confluence offers this solution out-of-the-box.

What you can do is to query the Database to gather such information.   

<https://confluence.atlassian.com/confkb/how-to-get-a-list-of-users-who-have-modified-pages-recently-858709256.html>  

Cheers


Tags: confluence-server

server
How to find AttachmentManager using @Autowire
Asked by robert_egan_305:

I have a plugin. It can find the attachment manager using

```
ContainerManager.getComponent("attachmentManager")
```

but I cannot figure out how to autowire it. The relatively straightforward

```
@Autowired
public MyCustomServlet(AttachmentManager attachmentManager) {

}
```

Produces a stack trace that implies I need to use \<component-import\>, yet adding @ComponentImport did not resolve that error. I tried adding an import into my own spring xml,

```
<import resource="classpath:/applicationContext.xml"/>
```

but that did not work either. What am I missing?


Answers:
author: Jack Nolddor [Sweet Bananas]
body: Hi [robert_egan_305](https://community.atlassian.com/t5/user/viewprofilepage/user-id/3689163)

This is what i used to do in some of my plugins:

```
@Scannedpublic class MyClass{    protected static final Logger log = LoggerFactory.getLogger(MyClass.class);    @ComponentImport    private final AttachmentManager attachmentManager;
    @Autowired    public MyClass(AttachmentManager attachmentManager)    {        this.attachmentManager = attachmentManager;    }
}
```

comments: author: robert_egan_305
body: It seems you need all 3 annotations. @Scanned, @ComponentImport, AND @Autowired.

Thanks.


author: Jack Nolddor [Sweet Bananas]
body: First time I deal with this "new way" of DI i found quite useful the following documentation:

* [Atlassian Spring Scanner - Readme.md](https://bitbucket.org/atlassian/atlassian-spring-scanner/src/master/README.md)

It helps me while i was creating [Announcement Banner for Confluence](https://marketplace.atlassian.com/vendors/1213300/sweet-bananas)

Hope this help to you as well.


Tags: new-to-confluence
Can I create templates that update retroactively?
Asked by OliverD:

Hi,

We have been creating template pages with macros and details pre-loaded,

Is it possible to create templates in a way that will cause them to update retroactively? So that if we make changes to a template page, all the pages already created with that template will also update?

If so could someone point out how this is done?

Thanks

Oliver


Answers:
author: James Dellow
body: It depends - if you want update static content elements in your templates, you could try making use of the Excerpt Include or Include Page macros. However, if you want something more dynamic and includes editable elements, you'll need to check the marketplace for a 3rd-party solution or develop something yourself.


Tags: cloud

confluence-cloud
Is there a tagged media database viewer/searcher which connects with the wikis?
Asked by Joseph_Smith:

Thinking outside the box here. Things I'm wondering if it can be done:

1. Yes - Create useful pages with images and videos describing important work things

2. Unsure - Add multiple unique tags to images

3. Unsure - View, search, videos and images by tags

I know there are other tools that are specialized for hosting media and images but they aren't necessarily connected to the Confluence Wikis as I am imagining here.

Anyone know if this is possible/even makes sense?


Answers:
author: James Dellow
body: Yes, this is possible.

comments: author: Joseph_Smith
body: Is it something that exists in the base system or is it something that's just *possible* but not currently available.


author: James Dellow
body: It is already there.

Label an attachment (like an image) <https://confluence.atlassian.com/doc/add-remove-and-search-for-labels-136419.html#Add,RemoveandSearchforLabels-Labelanattachment>

There are various macros that allow you to display or find content, such as images, filtered on labels. E.g. <https://confluence.atlassian.com/doc/gallery-macro-139434.html>

And an advanced search option <https://confluence.atlassian.com/doc/search-139528.html>

You can also create your own User Macros to support specific requirements.


author: Joseph_Smith
body: Thank you for pointing that out. Much appreciated.


Tags: confluence-server

server
JQL - how to select Jira Issues by Epic Link
Asked by Peter Augustinak:

Hello, I'm able to select Jira issues by project or Lables but I'm not able to filter issues by Epic Link. It is possible? Thanks a lot in advance.


Answers:
author: Jack Nolddor [Sweet Bananas]
body: Hi Peter,

Have you try to use the "epic link" field?

e.g: Retrieve all issues under Jupiter epic

    "epic link" = Jupiter

... or if you are on a next-gen project use parent instead:

    parent = EPIC-1234

References:

* [**Advanced search reference - JQL fields**](https://support.atlassian.com/jira-service-desk-cloud/docs/advanced-search-reference-jql-fields/#Advancedsearching-fieldsreference-Parent)

Regards

comments: author: Peter Augustinak
body: Hello, it's just not working. As soon as I add epic link into the query, I'm getting no result.

<https://imgur.com/w87OdjE>


author: Jack Nolddor [Sweet Bananas]
body: Have you try to perform the query first on Jira?  

Please try also "Epic Link" instead of "epic link" or event "parent" if your project is a next-gen

If none of this work, please share with us a screen of Jira issue and their relation with the Epic to see if it is correctly setup or even if its linked using other issue link different to the Epic Link field

Regards


author: Peter Augustinak
body: Hello again,

I don't know where to use this query directly in Jira.

Anyway, nothing is working:

"Epic Link"

Epic Link

"epic link"

epic link

also in combination with

"Schedule Optimization"

Schedule Optimization

"schedule optimization"

schedule optimization

Sample of issue linked to Epic.

[https://files.fm/thumb_show.php?i=krp72tak\&view](https://files.fm/thumb_show.php?i=krp72tak&view)

Thanks in advance.


author: Jack Nolddor [Sweet Bananas]
body: Thanks, using [**Advanced searching**](https://confluence.atlassian.com/jirasoftwarecloud/advanced-searching-764478330.html) you should be able to type the following query:

```
"Epic Link" = "Schedule Optimzation"
```

Regards


author: Peter Augustinak
body: Perfect, everything works now thank!

Btw. Did you change/set anything or Am I stupid? :)

P.


author: Peter Augustinak
body: Omg, now I see it, we have a typo in epic link name ... Completely sorry for all this thread :(


author: Jack Nolddor [Sweet Bananas]
body: Hmm I've not edited any of my previous messages.  
So probably you made a typo on your first try  

Regards


author: Ndriakita Solonionjanirina
body: still very helpfull, thanks [@Jack Nolddor \[Sweet Bananas\]](/t5/user/viewprofilepage/user-id/1504038) !!!


author: Nicolas Del Frate
body: Have the same issue, not able to filter via epic link, since my project is managed by the equipment, and the Epic Incidences have not Epic Name field


Tags: cloud

confluence-cloud