youngmon/atlassian-qna huggingface dataset:
How to delete pages?
Asked by Mario Tacke:

I'm a site admin for our Atlassian account (site-admins, administrators groups) but I cannot seem to find a way to delete a page anywhere in the app. Neither the detail view nor the pages/spaces overview gives any kind of direction as to how to accomplish this.

Am I really that blind? How do you delete a page from Confluence? The docs do not help. It states:
>
> Deleting all versions of a page {#toc-hId-1760119367}
> -----------------------------------------------------
>
> **To delete a page:**
>
> Go to the page and choose **Tools** \> **Delete** . Confirm the action as prompted.  
> *Note:* The 'Delete' option will only appear if you have permission to delete this page.

I'm a site admin, what other permissions to I need?

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

**EDIT**

After much digging and help from Nic and Ann, I was able to find a way to do it. For anybody in the future:

1. Go to Confluence
2. Click "Settings" (not "Site Administration")
3. Under "Users \& Security" click "Space Permissions"
4. Under "Individual Spaces" click "Recover Permissions" for the space you need permissions to.
5. Edit Permissions

References

- <https://confluence.atlassian.com/conf56/deleting-a-page-658736993.html>


Answers:
author: Nic Brough -Adaptavist-
body: Site admin gives you admin rights. Delete is not an adminstration task, it belongs to the space.

Go to the space permissions and give yourself delete rights, then try again.

comments: author: Mario Tacke
body: > Delete is not an adminstration task \[...\]

That seems like a very counter-intuitive statement to me. I appreciate your guidance though. I was finally able to find the option after much digging. Thank you!


author: AnnWorley
body: It sounds like you are using our Cloud offering and you need space permissions on the space where the page is. For instructions to check your space permissions please see: [Space Permissions Overview](https://confluence.atlassian.com/confcloud/space-permissions-overview-724764760.html)

Here is what the ellipses menu looks like for me on my Cloud Confluence:

![Screen Shot 2017-07-24 at 12.04.20 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/3515i90C079E46B459C97/image-dimensions/166x352?v=v2 "Screen Shot 2017-07-24 at 12.04.20 PM.png")

comments: author: Mario Tacke
body: Thanks Ann. With your and Nic's help I was able to dig through the configuration and give myself access. I find it very counter intuitive for an admin to not have rights to do certain things. Even more so because I can **grant myself access**. I wonder what the reasoning for a feature like this would be...


author: Nic Brough -Adaptavist-
body: The rights for doing things should always be separated out. Especially the "view" - an admin with 1,000 projects or spaces doesn't tend to care about most of them most of the time. It's also a security risk, and a nightmare when trying to debug a permission if you're working with an account that "can do everything". Admin should mean admin, and project/space level project/space.


Tags: page

permission
From localhost to remote??
Asked by Roberto Graziani:

Goodevening,

if it possible to past from a localhost to a remote? I need to display on the internet some documents and every anonymous user can reach them.

When I try the trial version, I choose the url of my Confluence webspace etc, I need something like this.

Thanks

Best Regards

Roberto


Answers:
author: Nic Brough -Adaptavist-
body: I am sorry, I am not sure what the question is.

Are you talking about Confluence Server or Cloud?

comments: author: Roberto Graziani
body: I'm talking about Server. I want to know if I can migrate from localhost. I need a direct web acces to all my documents and their must be displayed not only onmy computer (localhost) but on the internet.


author: Nic Brough -Adaptavist-
body: Ok, but I'd like to clarify what you are thinking of when you say "migrate".

I don't think you mean "migrate" in the usual meaning? That is "take content from my local server and migrate it on to an internet facing server".

Assuming you don't mean "migrate", then a "localhost" server is already ready to serve the content up over the network, but you need to make it available from that server. That would mean some networking config to make a name available for it (if you didn't want to use just the ip address), and giving the users a route to it from the outside.

A lot of people use a proxy to do that - The service runs on your machine, working on the simple ip address of your machine and on a couple of ports (8090 and 8091 are the defaults for confluence). You then have a proxy server that listens to the network (and internet) on \<servername\> and port 80. It can be set up such that when stuff arrives on something like \<servername\>/confluence, it proxies the request and response over to aaa.bbb.ccc.ddd:8080/confluence on your confluence server.


author: Roberto Graziani
body: Sorry, I mean "take content from my local server and migrate it on to an internet facing server".

I will follow your directions.

Thanks Nic.
Installation problems
Asked by Collin Keen:

I have had issues trying to configure my new confluence install. I installed Jira a couple of years ago and didn't have any trouble. The message I am getting is -

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set  
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

caused by: java.lang.IllegalStateException: Spring Application context has not been set  
at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)

I have created 2 different databases in an effort to get this to work, now I seem to be stuck. Any help is greatly appreciated.


Answers:
author: Nic Brough -Adaptavist-
body: There's a couple of things this usually is, so check and rule them out first:

1. Is your system using the right Java? (Check it's using the one distributed with the Confluence you installed)

2. Are all the files and directories owned by the user trying to run the service?
Confluence search defaults to OR; can I change to AND?
Asked by Jessica Weissman:

We have naive users who assume that if they enter a search string in the main Confluence search box they will get articles that match all the entered terms.

But it looks as though if you enter, say, VM west

you get all pages that match either word. Yes, I know we could have them type VM AND west to get the results they expect. That's not likely to work with this group.

Is there a way to change the default to act like Boolean AND?

Having heard no response, is this something where I should request an enhancement?


Answers:
author: Jessica Weissman
body: Thanks, Ann. I'll go look at these articles and will vote on the issue if it makes sense to do so after I read it.

Our use case is a knowledgebase with lots of troubleshooting articles, being moved over from Remedy. Remedy uses OR, which means that users get many many irrelevant articles in the search results. The customer wants to see a limited number of relevant articles for a multi-word query, as he thinks a large result list is overwhelming to his users.

If the Confluence search as configured internally tends to pop the items matching more than one term up to the top, that may satisfy him. I'll talk to him and see. There aren't enough transferred articles yet for him to get a good sense of how it works in practice. He'll be thrilled enough to know it isn't a simple "OR" search.


author: AnnWorley
body: We changed the default search to AND back in Confluence 2.3:

[Search should use AND logic by default](https://jira.atlassian.com/browse/CONFSERVER-5874)

But since then, it has become more sophisticated, as mentioned in:

[multi-term search the default "OR" in Confluence 5.2.x, 5.3.x.](https://jira.atlassian.com/browse/CONFSERVER-30974)
> When a user inputs a simple (read: without boolean operators or lucene search syntax) search query like "confluence search" - we translate the query to improve the search results.  
> It is more than just OR-ing the terms together.  
> Could you explain why you want AND?  
> Documents that have the best match against the search query will have the highest score and will be ranked at the top irrespective or AND / OR.

The best feature request to vote on is:

[Default search behaviour should be "AND" for multi-term search or at least configurable](https://jira.atlassian.com/browse/CONFSERVER-34099)

I suggest commenting there with your use case, to let the dev team know you need the search to work differently. It sounds like it's not a simple AND or OR at the moment.


Tags: search
Generate Confluence spaces with users
Asked by Piotr Dziedziel:

Hi,

I need to generate a report/list of all sites in our confluence where we have 3 colums:

- Space name/link

- Key

- All userid which have access to this space

What is the easiest way to genereate it automatiacally


Answers:
author: Stephen Deutsch
body: This user macro should do exactly what you asked for:

```
## @noparams
<table>
 <tr>
  <th>Space</th>
  <th>Key</th>
  <th>Users with access</th>
 </tr>
 #set ( $allUsers = $userAccessor.getUsers() )
 #foreach ( $spaceObject in $spaceManager.getAllSpaces() )
  #if ( $spaceObject.isGlobal() )
   <tr>
    <td><a href="$spaceObject.deepLinkUri">$spaceObject.name</a></td>
    <td><p>$spaceObject.key</p></td>
    <td>
    #foreach ( $user in $allUsers )
     #if ( !$user.isDeactivated() && $permissionHelper.canView($user, $spaceObject) )
      <p> $user.name </p>
     #end
    #end
    </td></tr>
  #end
 #end
</table>
```

Note that it might take a long time if you have a lot of users/spaces.


author: Piotr Dziedziel
body: Thank you Stephen
Display version page on top information ( and not using History)
Asked by WebReflex:

Hello,

I would like to put an information important on top of my confluence page : The version.

I know we can know the version with "..." -\> "page history"

But i would know it directly in first information under the page title, like this :

(Actual)

**Filters**

Created by Tim Burton, last modified about 3 hours ago

(Wanted)

**Filters**

Created by Tim Burton, last modified about 3 hours ago, v.44.

Is it possible ? If yes, could you give the way to resolved it.

Thx


Answers:
author: kevin conroy
body: Create a user macro (you'll need admin privileges).

The [answer outlined here](https://community.atlassian.com/t5/Confluence-questions/Display-a-page-s-current-version/qaq-p/253833)leads the way, without telling you how to create it :-/

* Admin-\>General Configuration
* select "User macros" from the left hand pane
* click on the **create user macro**link at the bottom of the list in the RH pane
* "Macro name" has to be of the form **my-user-macro** (eg ***show-page-ver***)
* "Macro Title" is the text the user will see in the "add macro" section
* For the macro itself, I replaced all the template text with

## @noparams  
Issue #$content.version

To use it, just edit a page, hit the **+** to "insert more content" and search for the macro name you created.

It works a treat and appears on PDF's, if you gen a PDF from your page. Thanks to [Richard Gundersen](https://community.atlassian.com/t5/user/viewprofilepage/user-id/445823) for answering his own question and sharing this great tip.


author: Stephen Deutsch
body: Put the following code in your custom HTML:

```
<script>AJS.toInit(function() { jQuery(".page-metadata-modification-info").append("<span>v." + jQuery("meta[name=page-version]").attr("content") + ".</span>"); });</script>
```


Tags: display

history
Editing
Asked by Valerii Hritsyuk:

123


Answers:
author: Stephen Deutsch
body: Yes, quite easy.

Do you want to include the whole page? In that case, simply use the [Include Page macro](https://confluence.atlassian.com/doc/include-page-macro-139514.html) in the pages where you want to duplicate the information and refer to the original page.

Do you only want to include part of a page? In that case, you need to choose one page that will contain the information, and put that information inside of an [Excerpt macro](https://confluence.atlassian.com/doc/excerpt-macro-148062.html). Then, on the pages where you want to duplicate the information, insert the [Excerpt Include macro](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) and refer to the original page.

Do you want to excerpt multiple sections out of a page? It's not possible with the base version of Confluence, but you can use the [Multi-excerpt add-on](https://marketplace.atlassian.com/plugins/biz.artemissoftware.confluence.multiexcerpt.MultiExcerptMacro/cloud/overview) to include that functionality.


Tags: edit
Macros only align left
Asked by Mordechai Cikk:

I am trying to center align text inside a user macro. The other formatting works fine but center being ignored.

My latest attempte uses this:

\<span style="color: #132840; font-size: 9px; text-align: center;"\>

some text

\</span\>

Thanks all.


Answers:
author: Stephen Deutsch
body: The span element defaults to the length of its content, not the container into which it is placed. If you want the length to match that of the container, then you have to use the div element. So if you change the content to:

```
<div style="color: #132840; font-size: 9px; text-align: center;">
some text
</div> 
```

Then it should work.

comments: author: Mordechai Cikk
body: As it does.

Thanks very much.


Tags: user-macro
How to disable more than 100 users in Confluence 5.5
Asked by carol.li:

Recently, we are working on reduce our confluence license, from the articl in <https://confluence.atlassian.com/conf55/confluence-administrator-s-guide/managing-your-confluence-license>, we can manully disable an account in admin page(remove the user from confluence-users group). But if we need to disalbe more than 100 users, that would be a lot of work for us, is there any API or some smart way to disable a bounch of users by one time?

Thanks.


Answers:
author: Shannon S
body: Hello Carol,

There's not currently a built-in way to accomplish this, but we do have an existing feature request:

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

You can have a look at the response from a community member at the following question: [Bulk remove users from Confluence?](https://community.atlassian.com/t5/Confluence-questions/Bulk-remove-users-from-Confluence/qaq-p/385352)

It appears to be something you can do via the Command Line Interface application, and you can find more information from the above question.

Let us know if you have any questions about this!

Kind Regards,  
Shannon

comments: author: ODW SW Account
body: Hi Shannon,

Thanks for your answers, Command Line Interface application is really awesome, that's what I'm looking for.

But I have some question when I doing some query work, like:

./confluence.sh --action getUserList --group "confluence-users" --userEmail "noreply@odw.com.cn" --server <http://confluence.com.cn> --user jbriggs --password \*\*\*\*\*

I got bellow errors:

Remote error: null for uri: [http://confluence.com.cn/rest/api/latest/group/confluence-users/member?limit=200\&start=0](http://confluence.com.cn/rest/api/latest/group/confluence-users/member?limit=200&start=0)

Could you please help to take a look?


author: ODW SW Account
body: Here is the brief of the debug output:
> license validation: {"product":"Confluence","baseUrl":"http:\\/\\/confluence.com.cn","build":"5515","connectorVersion":"6.8.0","timeZone":"China Standard Time","time":"2017-07-25T16:46  
> :50.497+0800","message":"Bob Swift Atlassian Add-ons - Confluence CLI Connector has a valid license.","title":"ODW Confluence","version":"5.5.3","status":true}  
> URL requested: <http://confluence.com.cn/rest/api/latest/user?username=lcong>  
> Request type: GET  
> Content type: application/json  
> Using basic authentication.  
> Response code: 404, message: Not Found, url: <http://confluence.com.cn/rest/api/latest/user?username=lcong>  
> Error data: {"status-code":404,"message":"null for uri: http:\\/\\/confluence.com.cn\\/rest\\/api\\/latest\\/user?username=lcong"}


Tags: cli
Confluence_log disabe base
Asked by Daniil Krol:

Hi.

Tell me how to turn off the Confluence_log database or how to reduce it?

Thks.

![2017-07-24_9-42-51.jpg](/t5/image/serverpage/image-id/3490i84B3764B7F284BC9/image-size/large?v=v2&px=999 "2017-07-24_9-42-51.jpg")


Answers:
author: Daniil Krol
body: Please help to disable the database or reduce it ... On the server the place ends ...
ms sql acces rights problem
Asked by gravballe:

I keep getting this error:

ERROR \[main\] \[sf.hibernate.util.JDBCExceptionReporter\] logExceptions SELECT permission denied on object 'BANDANA', database 'Confluence', schema 'dbo'.

even though my db user seem to have the correct permissions to acces the and select in the db. I am trying to get confluence working on a ms sql.

![4OVXodd](/t5/image/serverpage/image-id/3487i5132063147A9BD83/image-size/large?v=v2&px=999 "4OVXodd")![AFoSzZ9](/t5/image/serverpage/image-id/3488i0D5E73E094969E3C/image-size/large?v=v2&px=999 "AFoSzZ9")

If i log into the database with the user i have created for it (wiki) i can select just fine on the database, so what am i missing?


Answers:
author: AnnWorley
body: In the setup wizard, in the database connection URL, please make sure the database name is **confluence_wiki**, Confluence defaults to the database name "confluence" and it looks like that's the database referred to in the error message you posted:

```
SELECT permission denied on object 'BANDANA', database 'Confluence', schema 'dbo'.
```

It sounds like you already saw: [Database Setup for SQL Server](https://confluence.atlassian.com/doc/database-setup-for-sql-server-9258.html) but please double check the steps if the issue doesn't turn out to be the database name.

comments: author: gravballe
body: I have the connection string as:

jdbc:jtds:sqlserver://admsql:1433/confluence_wiki

so that part should be correct, also it has created the database content just fine, its just after it creates everything it then fails?


author: AnnWorley
body: Please review: [Confluence Unable to Start Due to Insufficient Access Privileges to Database](https://confluence.atlassian.com/confkb/confluence-unable-to-start-due-to-insufficient-access-privileges-to-database-218277150.html) and let me know if you are seeing that error in the browser on startup.

Are you reading that connection URL from the confluence.cfg.xml in the root of the home directory?

I am not sure why your error message refers to a different database name. However, you report that the setup wizard is creating tables in the confluence_wiki database.

You mentioned you can run a select when you log into the database using the wiki user. What if you run this query that we know is for a Confluence table:

```
select * from CLUSTERSAFETY;
```


author: gravballe
body: Sorry for the wait. (vacation)

it seems rename the database from confluence_wiki to just confluence made it work. Why is your code hardcoded to a db name, when the setup lets you pick a db name? and your install doc dosent say anything about the db has to be called confluence.

now the trial license has expired, are there any way to get a new trial license, so we can try it now we got it working?
Unable to login to Confluence through Okta (SSLHandshakeException error)
Asked by iplatitsa:

Hi,

I am trying to setup Confluence behind load balancer in AWS and Okta. When I am trying to login via Okta, I am unable to do so. To be more specific, I am being stuck on refirect page from Okta to Confluence (image is attached). When I looked at logs in /var/atlassian/application-data/confluence/logs/atlassian-confluence.log

```
2017-07-24 02:44:12,709 WARN [http-nio-8090-exec-2] [internal.integration.jira.DefaultJiraService] communicateWithJira Problem communicating with JIRA: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
-- referer: https://wiki-stage.mydomain.com/ | url: /rest/highlighting/1.0/panel-items | traceId: f2da7474efe3185d | userName: user.name

```

We are running Active Directory and I imported its certificate into keystore. The only missing piece I could think of is try to point confluence to correct keystore in setenv.sh ( -Djavax.net.ssl.trustStore=\<path_to_keystore\> ).Did anyone have similar problems configuring Confluence with Okta?

Any help is appreciated.


Answers:
author: Peter D.
body: where you able to resolve this? experiencing the same issue.


author: Lars Olav Velle
body: Your cert needs to be imported to the java used by your application:

JAVA_HOME/jre/lib/security/cacaerts

-Lars

comments: author: iplatitsa
body: I have configured CATALINA_OPTS="-Djavax.net.ssl.trustStore=/opt/atlassian/confluence/jre/lib/security/cacerts" argument in setenv.sh

What I am surpsised about is seeing an error related to Jira while I am configuring Confluence.


author: Lars Olav Velle
body: If you are using self signed ssl certificates on both JIRA, and Confluence with application links, then you\`ll need to import certificates to both applications.

-Lars


author: Lars Olav Velle
body: Not sure what SSL problems has to do with Okta integration?

-Lars

comments: author: iplatitsa
body: Is does affect Okta. AD only allows port 636 which is encrypted, so this is where SSL cert from domain controller becomes crititcal.
Confluence Articles aren't loading in Jira Service Desk
Asked by Marc Drescher:

Hi folks,

the applications are connected without error mesage, the articles are listed in Jira Service Desk, but when i click on one and try to watch it the article is just loading endlessly..

View permissions are granted, connected with oAuth-Impersonation(same users base)

I just can't find an article with which i can solve the problem myself. :(

Hope somebody knows something i can test. Thank you in advance for your help.

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


Answers:
author: somethingblue
body: Hi Marc,  

The first thing I would do is collect a [HAR file](https://confluence.atlassian.com/kb/generating-har-files-and-analysing-web-requests-720420612.html) to see what is going on with the website traffic. Take a look at the [Generating HAR files and Analyzing Web Requests](https://confluence.atlassian.com/kb/generating-har-files-and-analysing-web-requests-720420612.html) knowledge base article for tips on how to analyze the HAR file. In the Har file, confirm that there are no HTTP errors thrown in it.

You'll also want to open the browser console tab and check if you get an error with regards too many redirects

If you are using SSL, try [bypassing the SSL application link](https://confluence.atlassian.com/kb/how-to-bypass-a-reverse-proxy-or-ssl-in-application-links-719095724.html) and see if you get the same behavior.

Cheers,

Branden

comments: author: Marc Drescher
body: Hi Branden,

thank you for the answer. SSL was the problem. :)


Tags: jira-service-desk