youngmon/atlassian-qna huggingface dataset:
Server ID has $action.sid
Asked by dmarrow:

I have $action.sid in my Server ID field. I read the docs and know that it is usually because it is configured wrong in the database. I looked in the database and the key there matches the key in the .cnf file however it does not have \<string\>ServerID\</string\> just the ServerID (XXXX-XXXX-XXXX-XXXX). I tried updating the value to the proper format but when I restart the server it crashes. which I try to log in?


Answers:
author: dmarrow
body: Ann,

Yes this is the article that I found and followed. I get a stack trace when I try and log in. I will see if I can get that for you and send it. I am not at that site today but will probably be able to send it on Monday.

Dave


author: Nic Brough -Adaptavist-
body: Sorry, can you explain why you are doing this?

comments: author: dmarrow
body: Because in confluence when I try to view the Server ID in the web page it has the value @action.sid value field. In some parts of confluence when I try to configure other things it crashes and I thought the two may be related. Why won't it let me correct the value in the database? The last sentence should read: "After I update the database with the proper value, restart confluence and then try and log in confluence crashes.


author: AnnWorley
body: Based on your report of correcting the value in the database, it sounds like you saw: [Server ID Shows as $action.serverId, $action.sid or n.v.](https://confluence.atlassian.com/confkb/server-id-shows-as-action-serverid-action-sid-or-n-v-181536632.html) Please let me know if you are using the SQL from that article.

Please let me know what the other things you configured that crashed Confluence so I can help determine if they are related to the server ID issue.

When you try to login and Confluence crashes, is there any clue in the atlassian-confluence.log? It's located in the directory: \<confluence_home\>/logs  
Note: The \<confluence_home\> directory is the path defined in the following file: \<confluence_install\>/confluence/WEB-INF/classes/confluence-init.properties
Confluence Cloud API - 403
Asked by Christoph Reg:

I'm having trouble with using the AP.request method in the Javascript client.

I have created a Plugin which shows a custom page (general page) inside **Jira**.

From this page, I want to create a **Confluence** content page via the AP.request method of the Javascript client.

Working with the JIRA API via AP.request works fine, but when I try to call any method of the Confluence API it always fails with 403, no matter the endpoint I'm using.

Here is an example request that fails:

```
const data = {          title: "test",          "type": "page",          "space": {            "key": 'REL',          },          "body": {            "storage":{              "value": "<p>TEST TEST</p>",              "representation": "storage",            },          },};AP.request({        type: 'PUT',        contentType: 'application/json',        url: '/wiki/rest/api/content',        data: JSON.stringify(data),        success: (resp) => {          console.log(resp);        },        error: (xhr, status, err) => {          console.log(status);        },      });
```

What am I doing wrong here?

Do I need to specifically request a scope for Confluence in the addon descriptor?

Do I need to enable something in the settings?


Answers:
author: Shannon S
body: Hi Christoph,

1. Can you check and see if when you login to the instance using the same credentials can you add or modify a page in that space?
2. Does the space REL already exist? Since you're using the method PUT it only works to update and not create. Otherwise, you'll want to use POST. See our [API documentation here](https://docs.atlassian.com/atlassian-confluence/REST/latest/):  

   ```
   Create content:?POST /rest/api/content
   ```

Kind Regards,  
Shannon


Tags: confluence-cloud

rest-api
First had database issues then it couldnt clear cache - now I am getting below error Please help !!!
Asked by Surendra Kalidindi:

I have given all the permissions to the windows user. Unable to install and get it working - have been trying to install this and get it work for 1 week - but it is not working - need immediate help as I am extremely frustrated:

Cause

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)


Answers:
author: AnnWorley
body: I understand you are installing Confluence and you ran into some database and cache issues. Now you are seeing the "Spring Application context has not been set" error even though you checked the file system permissions.

Please check all the resolutions on the article: [Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html). The error can occur because of database or name resolution issues as well as file system permissions.

Please let us know more about the database and cache issues you ran into before. That could help point us in the right direction to resolve the current issue.


Tags: team-calendars-for-confluence
Tasks in a Table will not display in Task Report
Asked by Elisha:

I reformatted how our tasks look in a space from the original "Type your task here. Use "@" to assign a user and "//" to select a due date" to a new format in a table. First column is the task, next column the assignee, last column the due date."

However, when I go to my Task Report macro, the assignee and due date get lost. The task is displayed though without the other information. I'm assuming it's because I've separated the information into the two other columns.

Help!


Answers:
author: Reto Eggenberger
body: We added a feature request. Please vote for this feature: <https://jira.atlassian.com/browse/CONFSERVER-40334>


author: Mohammad Soliman
body: I agree 100%. I've been searching for a way to do this. The current method is very clunky.


author: Mattias Van doninck
body: I would really like to be able to make a task list in a table. This way it looks nicer and it can be sorted. The current way (checkbox + assignee + due date all in one block) looks messy.


Tags: table

task
Problem installing confluence: Generating identifier
Asked by brandlandgroup:

Hi

I currently have a problem installning confluence on a mysql database, after i have entered the database credentials and clicked on next the page loads for about 20 sec and then i get this error:

```
org.springframework.orm.hibernate5.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [HY000]; error code [1665]; Generating identifier; nested exception is org.hibernate.exception.GenericJDBCException: Generating identifier
```

Has anyone come across this problem before?

Thanks!


Answers:
author: AnnWorley
body: I haven't seen that error before, and my research didn't turn up much.

It is definitely an error that is generated by the database. A similar error is caused by an incorrect log setting in the My SQL configuration file: [Confluence will not start due to incorrect log format](https://confluence.atlassian.com/kb/confluence-will-not-start-due-to-incorrect-log-format-789095783.html)

To eliminate the error, first make sure your version of MySQL is 5.6 or 5.7, as those are the versions supported by the latest Confluence: [Supported Platforms](https://confluence.atlassian.com/doc/supported-platforms-207488198.html)

Secondly, please make sure the database is configured as described in [Database Setup For MySQL](https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html).

I look forward to hearing what you find as you examine your MySQL setup.


Tags: mysql
Can I include a template inside another template?
Asked by Maria Pascual:

Hi,

I need to create a parent template includes 4 child templates.

The parent template uses "include page" macro to display the 4 child templates.

I tried this in production/live space and it worked using non-template pages.

Is it possible to do this same structure using templates for all the pages?

Your input would be much appreciated. Thank you.

Maria


Answers:
author: Maria Pascual
body: I found a potential solution:

<https://community.atlassian.com/t5/Confluence-questions/Create-Sub-Pages-from-Within-a-Template-or-Blueprint/qaq-p/114143>

I will try "Create from Template" macro.

I will post another message if that works or not.

Thank you!


Tags: template
Is there a way that only Confluence administrators can change the permissions of a space
Asked by Bob Do:

Typically, space administrators can change the permissions of a space (even if an AD connection is used). Is there a way that only Conflunce Administrators can do this?


Answers:
author: AnnWorley
body: The only way to keep space admins from changing the permissions is to take away the Admin permission for them on the space. They will still be able to do just about everything else. Please see [Space Permissions Overview](https://confluence.atlassian.com/doc/space-permissions-overview-139521.html) and [Confluence Admin Permission Levels Explained](https://confluence.atlassian.com/confkb/confluence-admin-permission-levels-explained-604209420.html).

comments: author: Bob Do
body: Can you create a template for a space without an admin permission, or restore a page?

Where can I configure, that they don't can change space permissions?


Tags: administration

permission
More customization for user signup in Confluence?
Asked by Yaacov Weingarten:

Currently, if we allow user signup there is a top-level differentiation made between allowing signup for particular email domains and users in all domains. Is there a way to configure the signup to act differently for users within a domain and those outside a domain.

For example, if we want to allow any user (both internal and external to the company) to sign-up, but when they signup they are automatically added to the confluence-users group and do not have access to their profile to change that configuration. Would it be possible to allow internal (as defined by the domain of their email address) users to be configured in a group that would allow them to later access their full profile details? This would allow them to access the permissions on their spaces, with minimal administrator intervention.


Answers:
author: Nic Brough -Adaptavist-
body: You'd need to write a new login handler to do that.


Tags: user-management
How to get a list of active users counting towards the Confluence license with JIRA Server directory
Asked by Tomasz Lewandowski:

Hello,  
I would like to list users counting towards the Confluence license. I'm using Confluence 5.0.2 and JIRA 6.0.4 with Crowd directory and MySQL database. Unfornately common SQL solutions do not list what I want.


Answers:
author: AnnWorley
body: It sounds like you saw our knowledgebase article, as your question has nearly the same title: [How to get a list of active users counting towards the Confluence license](https://confluence.atlassian.com/confkb/how-to-get-a-list-of-active-users-counting-towards-the-confluence-license-298978076.html)

The queries on that page should work for Confluence 5.0.2, and they sort the results by directory so you should be able to use that SQL to get the active users counting toward your license from a JIRA user directory or from a Crowd directory.

Please let me know how the queries on our knowledgebase article do not list what you want, or whether they do work for your case.

comments: author: Tomasz Lewandowski
body: First query from your link gives me 125 rows with usernames and most of these account are already deactivated in JIRA. I have over 490 users counted for license in Confluence.


author: AnnWorley
body: Perhaps you have nested groups or usernames that are the same in the Confluence Internal and JIRA User Directories.

Please use the UI to investigate further. Users with permission to use Confluence count against the license. If you remove the extra users from the groups that are granted permission to use Confluence, they will no longer count against the license.

The UI does not present a flat list of users that count against the license. Since only the groups listed under **Global Permissions** count against the license, those are the only groups you need to examine to get a list of users that count against the license.

Within the UI, you can get a listing of groups and users that are assigned Global Permissions by navigating to Confluence Admin \> Global Permissions. You can view the groups via Confluence Admin \> Groups to reveal their members. To see which directory the users are in, click on the username in Confluence Admin\>User Management

![UserMgmt.png](https://community.atlassian.com/t5/image/serverpage/image-id/5176i5AF5AF1264912DFF/image-dimensions/297x245?v=v2 "UserMgmt.png")


author: Tomasz Lewandowski
body: I have mainly "Remote JIRA Directory" as Directory. I have only \~10 users i internal Confluence directory.


Tags: jira

mysql

sql
(Interface) Connect Confluence with Oracle Application Express (APEX)
Asked by Matthias Hoffstadt:

Hello,

as we use a self-creates, APEX based ERP in our company, I would like to ask if there is an easy way to connect Confluence to Oracle Application Express (Oracle Database). What I want to do in Detail:

One of our APEX Applications should be able to send an order to Confluence, to create several new pages.

Thanks in advance.

Matthias Hoffstadt


Answers:
author: Nic Brough -Adaptavist-
body: Your APEX application should issue REST calls to Confluence to create the pages.

See <https://developer.atlassian.com/confdev/confluence-server-rest-api>


Tags: external

integration

oracle
"show more" not working in Confluence Cloud
Asked by Robert Jacob:

Our Confluence Cloud instance recently got the new look and since then the "show more" option at the end of any list of pages doesn't work. The page reloads but there's no new content.

Specific examples: The list of pages under "Activity" in my profile page, the list of "Recently Updates" pages on any space.

Browser: Google Chrome (Version 59.0.3071.115 (Official Build) (64-bit)) on Mac


Answers:
author: Robert Jacob
body: I tried Safari and it happens there too (Version 10.1.2 (11603.3.8)). I then tried "Turn off for now" and it still was happening. So maybe its just our instance.


author: Maarten Cautreels
body: Hi Robert,

I've tried it with my own profile on a Confluence Cloud instance and it seems to be working fine. Do you perhaps have any ad blockers enabled (sometimes they block the wrong requests). To make sure it's nothing browser related, can you try in another browser? (Fe.: Internet Explorer, Firefox, Safari, ...)

If that does not resolve the issue, it's probably a bug in the new UI. In that case there are currently two steps to take:

1. Report this feedback to Atlassian. There's a feedback option in the profile menu (clicking on your profile image) in Confluence: ![Screenshot 2017-08-23 at 08.12.51.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/5064i7205271D114EAC51/image-size/large?v=v2&px=999 "Screenshot 2017-08-23 at 08.12.51.jpg")
2. In the same menu, right below the "*Give feedback button* " there's a link "*Turn off for now*" which will switch you back to the old UI. This will resolve the issue for now. Please do remember that eventually the new UI will be switched back on (usually when all important bugs were fixed)

Best,

Maarten
How to change base url
Asked by dmivsokolov:

How to change base url if we don't have system-administrator user? Where is this settings option stored, Is it somewhere in  
the configuration files or in the database? We have h2db.h2.db database

<https://community.atlassian.com/t5/Confluence-questions/problem-with-running-Confluence-with-nginx/qaq-p/626312#M83903>


Answers:
author: Thomas Schlegel
body: Change the base url here:

http://\<your confluence url\>/admin/viewgeneralconfig.action

But you need to have administration permission in Confluence.

comments: author: dmivsokolov
body: The problem is that we do not have administrator permission in Confluence.


author: Thomas Schlegel
body: Without an administrator, you can't change the base url. There has to be at least one.

What is the reason, why you don't have an administrator? Maybe you should solve that problem first.


author: Nic Brough -Adaptavist-
body: You really need to have an administrator do this sort of thing.

They should probably be setting a new base url at the same time you move off the h2 database on to a proper one.


author: dmivsokolov
body: How to create a new user with system-administrator rights? Editing database manually option doesn't suit us well.


author: Thomas Schlegel
body: You need a confluence administrator to give other users the administrator permissions.

Who did the initial installation of your Confluence instance? He / she had to set up a system administrator account during the installation.


author: dmivsokolov
body: This account has been lost. How to open a new one with similar or same rights?


author: Thomas Schlegel
body: Please look at that documentation:

<https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html>
Top level breadcrumb does not direct to home page in new look
Asked by Susan Ostreicher:

In the new look Confluence, the top level breadcrumb redirects to the Page hierarchy instead of the home page. Is anyone else puzzled and frustrated by this? I can't find another real-life example of location-based breadcrumbs where the top level points to something other than the home page.

<br />

I asked about this in a support ticket, and it was logged as a bug, but then resolved with the explanation that this is by design - so I opened a new suggestion. Just wanted to share here so that anyone else who's interested can add their vote.

<https://jira.atlassian.com/browse/CONFCLOUD-56986>


Answers:
author: Susan Ostreicher
body: Well, sometimes wishes do come true! ;) It's working for me now, and I just got a notification that the bug fix is awaiting release.


author: Sandy Johnson
body: I guess there first time for everyting, but don't hold your breath on how long they will take to fix it. :)


author: Susan Ostreicher
body: Nevermind... the original bug was re-opened, and it looks like it will be fixed. Thank you for listening, Atlassian! :)

<https://jira.atlassian.com/browse/CONFCLOUD-56869>


Tags: confluence-cloud
Create User Macro that may assign a task to a user
Asked by Jason Williams:

Hi,

I'm creating a user macro to create a ToDo in the document. As a parameter I've asked if they want to create a task and which user to assign it to.

Now I'm trying to work out how to create and assign the task.

I've tried a variety of methods, but can't work out how I should go about doing it.

If there is an in-built macro to call via: \[$action.getHelper().renderConfluenceMacro("{user-mention:user=$!paramCreateTaskAssignUser}")\]

But I don't know what the name of user mention macro is (if indeed it is one and not some other type of funtion) and I don't know if I've defined it as a task correctly or if it needs another macro call....

Please help! Some examples would be great.

Thanks


Answers:
author: Tim Oldendorf
body: Jason- I am trying to do something similar. Did you ever figure this out?

comments: author: Jason Williams
body: Hi Tim,

Unfortunately I don't believe that I did. There was only a limited amount of time I had to devote to it. I guess it was a 'nice to have' for me. But I would certainly be interested if you end up having a win. Please let me know how you get on.

Thanks,

Jason


Tags: user-macro
creating multiple projects in JIRA
Asked by sn:

hi,

users of JIRA 7.3 server.

we are planning to create linked "software project" spaces in Confluence for all of our JIRA projects. we want to store application level documents in the spaces and other info as well. we want to create projects in JIRA at stand-alone application level. so, each stand-alone app or product will have 1 project in JIRA.

1) My problem is we might have close to 300 standalone apps. Is there a way to create thesE multiple projects easily. without having to create each one manually?

2) are there going to be any isues i need to think ( from admin stand point) if we have 300 projects in JIRA?

3) when i create a project in JIRA, is there a way that it would automatically create a space in Confluence( i think this functionality was depricated)

thanks!


Answers:
author: somethingblue
body: Hi,

You're going to need to use an add-on such as [ScriptRunner](https://community.atlassian.com/t5/JIRA-questions/How-to-bulk-create-projects/qaq-p/590194) or [Bob Swift's CLI](https://bobswift.atlassian.net/wiki/display/JCLI/How+to+create+projects+or+sets+of+issues+based+on+a+template) to accomplish creation of multipls projects at once.

Take a look at the links I provided. The ScriptRunner link is to a community post where a script was written using ScriptRunner and the Bob Swift link is to their knowledge base article showing you how to use their tool to create projects using templates.

Cheers,

Branden

comments: author: sn
body: thanks branden.

will there be any issues (from an JIRA/Confluence Admin ) standpoint if we have 300 projects?


Tags: jira-software
In Edit mode, no longer able to leave blank space between numbers.
Asked by Vickie Louwet:

2 weeks ago when I went in to edit a document with a number sequence, I was able to add new steps while keeping a space between each one like this:

1. Step 1  

2. Step 2  

3. Step 3  

4. Step 4

To do this I would press enter, and backspace to get rid of the number.

Now when I go into edit mode and press backspace, it does not create a blank line, it brings be back to the line before. I am not able to leave a blank space in edit mode (when creating the document for the first time I am able to).

It ends up looking like this, with step 5 right after step 4:

1. Step 1
2. Step 2  

3. Step 3  

4. Step 4
5. Step 5

If I take all the data on the page and paste it to a new blank sheet, I can now add blank lines again between the numbers.

This has only started happening since the most recent update, is anyone aware of what I can do to fix it?

It's driving me a bit crazy! Thank you very much in advance.


Answers:
author: Stephen Deutsch
body: Hi Vickie,

It may be a bug with the newer version of Confluence. However, there is a workaround you can use. Instead of pressing enter and using backspace to get rid of the number, when you get to the end of the line, press Shift+Enter, which will create a line with no number, and press Enter again to create the next numbered line. I just gave it a test and this worked OK.

comments: author: Vickie Louwet
body: THANK YOU!!! Tried it and worked for me as well. You have saved my sanity :) I really hope they fix this bug, but at least now (thanks to you) I have a workaround.


author: Bill Langton
body: [@Vickie Louwet](/t5/user/viewprofilepage/user-id/1146766)Did you file a bug? I'm seeing this behavior as well, but not limited to just the number list items. ALL blank lines are being removed. Really annoying. My workaround was same as Stephens. I was just coming in to file a bug....


author: Bill Langton
body: I figured out that, in my case, the problem was cause by pasting from an email. The Confluence editor behaves differently in the presence of \<div\> tags. Shift-Enter adds a \<br\> which is not removed. Guessing that the editor is not adding a \<p\> tag when pressing Enter. Filed a bug.