youngmon/atlassian-qna huggingface dataset:
Confluence Search is broken - for one user.
Asked by Duncan Margetts:

I am unable to effectively search Confluence. Other users in my group have no issues. I put a simple keyword and results that I know should be returned dont return. I try an advanced search and ensure there's absolutely no filters set and it still fails. The problem follows my username - I log on at a different PC and it fails the same as my usual PC. The issue is quite variable, some search terms return expected results, some dont.   

I think I'm missing something obvious, but I cant for the life of me work it out. Anyone else experienced anything similar?


Answers:
author: Duncan Margetts
body: A re-index of our Confluence instance has resolved this.


Tags: cloud
Is there a way to create confluence page using curl command?
Asked by Kuldip Nijjar:

Is there a way to create confluence page using curl command? I want to create a page to contain csv data? The csv data is in csv file. I have existing parent page I want (a new) child page to contain csv data.


Answers:
author: Pavel Potcheptsov
body: Hi there.

Yes, there is a way by using REST API which is provided by Confluence and there are plenty of examples in the existing documentation.

The look of final code depends how you want to use it. Once or repeat many times for different spaces and different parent pages.

For one time execution you have to know

- URL of your server,

- login/password of user with create page permission,

- space key,

- parent page ID,

Then you have to construct POST request by using method which creates child page under ancestor (parent) page in the given space.

<br />

For repetitive usage you have to automate the process of getting info about desired spaces and parent pages.

comments: author: francis vila
body: Hi [@Pavel Potcheptsov](/t5/user/viewprofilepage/user-id/510022) ,
> Yes, there is a way by using REST API which is provided by Confluence and there are plenty of examples in the existing documentation.

I'm searching in the Atlassian documentation for info about posting pages to a Confluence server ...

For the moment, I've found this: <https://docs.atlassian.com/atlassian-confluence/REST/5.7.1/#d3e717> . It doesn't say much in the POST section, and no examples are provided. There are a couple of expand/collapse sections, but they are empty. Maybe you could provide a link?
Adding user to space using power script
Asked by Poojaa Sudhakaran:

Hello there,

I'm trying to build a code snippet using Power Script for Confluence for bulk addition for users to a Confluence space. Below is my code snippet for adding user "sample" to a space with key "TEST". This script always returns a false value and the user is not assigned to the space with the mentioned permission.

```
string loglevel = "WARN";
logPrint(loglevel, addUserToSpacePermission("VIEWSPACE", "TEST", "sample"));
```

But after, adding the user to space manually, the below code snippet work fine in removing the user from space.

```
string loglevel = "WARN";
logPrint(loglevel, removeUserFromSpacePermission("VIEWSPACE", "TEST", "sample"));
```

Could you please help me in adding user to space using the script?

Regards,

Poojaa


Answers:
author: Ivan Lima
body: Hey [@Poojaa Sudhakaran](/t5/user/viewprofilepage/user-id/3659999) , assuming you've got all the parameters correct, this should work just fine. The only reason I see that it doesn't work is that your user "sample" is also a member of a group that already has the VIEWSPACE permission.

Hope it helps.  
IL.


Tags: addon-com.cprime.confluence.power-scripts-confluence

confluence-server

server
I forgot my server ID, what should I do?
Asked by Chen Congcong:

I forgot my server ID, what should I do?


Answers:
author: Nic Brough -Adaptavist-
body: Nope, we cannot tell you - we're end-users of Atlassian stuff (of course, there are some Atlassians here), and we have less access to, or knowledge of, your servers than you do.

If you can still log into it though, have a look in the admin -\> applications or admin -\> system info.

comments: author: Chen Congcong
body: I have found it.

Thank you!
User Macro: List all pages by the lable and manipulate them
Asked by Vladimir Vakhlov:

Greetings,

<br />

In my user macro I am trying to list all pages through my confluence for defined label and then manipulate them (for example, sort by name).   

I was searching through pageManager, but was not able to find what method can do it. Any ideas?

Thanks!


Answers:
author: Dominic Lagger
body: Hi [@Vladimir Vakhlov](/t5/user/viewprofilepage/user-id/4035733)

Here is an user macro which shows 10 pages of the label "test".

You get an list of ContentEntityObjects. You can try to sort the list.

```
#set( $label = $action.getLabelManager())
#set( $pageList = $label.getContentForLabel(0,10,$label.getLabel("test")).getList())


<table>
<tr>
<th>Name</th>
<th>Bearbeiter</th>
</tr>
#foreach( $page in $pageList )
<tr>
<td>$page.getDisplayTitle()</td>
<td>$page.getLastModifierName()</td>
</tr>
#end
</table>
```

Hope this helps you

Regards, Dominic

comments: author: Vladimir Vakhlov
body: Thanks [@Dominic Lagger](/t5/user/viewprofilepage/user-id/601600) !


Tags: confluence-server

label

server

user-macro
I can't setup my database
Asked by ???:

I willing to set up confluence via Synology NAS and docker container.

I entered exactly all things.

And I confirmed port-forwarding working well.

Why I can't set up my DB?  

Postgre SQL : 12.3v

Confluence-server on docker : latest.

![Screenshot 2020-08-09 at 01.56.30.jpg](/t5/image/serverpage/image-id/106074iD6B5F1C3DF7324AF/image-dimensions/786x784?v=v2 "Screenshot 2020-08-09 at 01.56.30.jpg")![Screenshot 2020-08-09 at 01.58.00.jpg](/t5/image/serverpage/image-id/106075iFD5AA938CE6358F2/image-size/large?v=v2&px=999 "Screenshot 2020-08-09 at 01.58.00.jpg")


Answers:
author: Nic Brough -Adaptavist-
body: This is what it says it is, the Confluence server cannot reach the database server over your network.

Are the settings correct? Can you try going on to the Confluence server and running a simple telnet to the database host and see if it responds? The error message you will get will probably tell you where the fault is.
Not sure how to proceed with step 3
Asked by Mudassir Syed:

Hi ,

I am installing confluence on an EC2 instance, I have completed till step 2.

where do i find production installation? no idea where to start with step 3.

<https://confluence.atlassian.com/doc/installing-confluence-on-linux-143556824.html>

please help.

Thanks,

Mudassir Syed


Answers:
author: Manisha Kharga _Appfire_
body: Hi [@Mudassir Syed](/t5/user/viewprofilepage/user-id/4043793)

We would like to inform you that after performing till steps2. You can access the Confluence from browser http://localhost:8090/ to begin the setup process.

Here, you can replace localhost with your server detail and port number as you mentioned during the install.

Please share the screenshot where you are facing the issue.

Thanks,  
Manisha


Tags: confluence-server

server
For our Confluence server that the value of the 'SPACE KEY'?
Asked by Kuldip Nijjar:

I'm trying to create/update a confluence page via REST API { post \| put }

Here is a bit of my python code:

Request body  
data = {  
'type': 'page',  
'title': page_title,  
'ancestors': \[ {'id': parent_page_id} \],  
'space': {'key': space_key}


Answers:
author: Manisha Kharga _Appfire_
body: Hi [@Kuldip Nijjar](/t5/user/viewprofilepage/user-id/4043774)

To get the values of the specific Confluence page.   

Please go to the **Space settings** and click on **Overview**. Here you will see the Key detail.

Refer to the below screenshot.

![space.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/106066iE35B3824D2301A58/image-dimensions/312x339?v=v2 "space.jpg")

Thanks,  
Manisha

comments: author: Kuldip Nijjar
body: Do I have to be 'admin' user to get this 'space key' value or can just login as myself and find the value?


author: Manisha Kharga _Appfire_
body: Hi [@Kuldip Nijjar](/t5/user/viewprofilepage/user-id/4043774)

You should have the Space Admin permission to see the space_key value.

Thanks,  
Manisha


Tags: confluence-server

server
Tomcat 404 on docker with contextpath
Asked by fire_mail:

Hi,

i want to install confluence using docker. I created a docker-compose following the official guide and added ATL_TOMCAT_CONTEXTPATH=/confluence as an environment property. When i start the container and try to access confluence, i will get a 404 error from tomcat. Confluence runs behind a traefik container which will do all the ssl and redirect stuff for /confluence. If i remove all the contextpath and subfolder stuff from confluence and traefik container, i can successfully access confluence setup page on web root. Therefore i assume that all other configs and redirects (e.g. ssl) work properly.

My setup: running docker on ubuntu 20.04 using atlassian/confluence-server docker image. Actually no java installed

My configs (simplified):

confluence:

- ATL_PROXY_NAME=\<\<domain\>\>  
- ATL_PROXY_PORT=443  
- ATL_TOMCAT_SCHEME=https  
- ATL_TOMCAT_SECURE=true  
- ATL_TOMCAT_CONTEXTPATH=/confluence

traefik:

- "traefik.http.routers.confluence.rule=Host(\`\<\<domain\>\>\`) \&\& PathPrefix(\`/confluence\`)"  
- "traefik.http.routers.confluence.entrypoints=web"  
- "traefik.http.routers.confluence.middlewares=redirect-confluence-to-https@docker"  
- "traefik.http.middlewares.redirect-confluence-to-https.redirectscheme.scheme=https"  
- "traefik.http.routers.confluence-secure.rule=Host(\`\<\<domain\>\>\`) \&\& PathPrefix(\`/confluence\`)"  
- "traefik.http.routers.confluence-secure.entrypoints=web-secure"  
- "traefik.http.routers.confluence-secure.tls.certResolver=default"  
- "traefik.http.routers.confluence-secure.tls=true"  
- "traefik.http.services.confluence.loadbalancer.server.port=8090"  
- "traefik.http.routers.confluence-secure.middlewares=confluence-stripprefix,confluenceheaders@docker,sec-headers@file"  
- "traefik.http.middlewares.confluence-stripprefix.stripprefix.prefixes=/confluence"

What am i missing? Does somebody else have a working setup like this?


Answers:
author: fire_mail
body: ok i solved it by my self. its just a stupid copy\&paste issue as i reused the redirect config of my nextcloud container. just remove "traefik.http.middlewares.confluence-stripprefix.stripprefix.prefixes=/confluence" and i can access the setup page :)


Tags: docker
Anonymous Access to Help Desk Knowledge Base?
Asked by Amy Brown:

Is it possible to configure Anonymous Access to the Knowledge Base on the Free account?


Answers:
author: Ste Wright
body: Hi [@Amy Brown](/t5/user/viewprofilepage/user-id/4043708)

Not at this point - permissions require a minimum of the Standard Plan.

From [this page](https://support.atlassian.com/confluence-cloud/docs/manage-permissions-in-the-free-edition-of-confluence-cloud/):
> While Confluence is open to logged-in users, anonymous access isn't available on the Free plan. Only users who log in to your Confluence site can access it.

Ste


Tags: cloud
Displaying Jira issues in a controllable format
Asked by Andy Munro:

I am using Jira as a requirements management system and I would like to make sure it is the single point of truth so I would like to produce Confluence reports that can act as the customer facing documents (or close to). Ideally I could control the sections and sub sections with minimal intervention in the ordering. I thought about entering the section numbers e.g 3.2.1 but any changes would mean lots of alterations. Labels could help to break it down. Also thought if I could use issue links to maintain the order?

I do apologies, I'm a Confluence newbie if this is obvious.

I'm using the cloud to experiment but we use a server for the business


Answers:
author: Angelica Salazar
body: Hello [@Andy Munro](/t5/user/viewprofilepage/user-id/3808264)

I am from Easesolutions, vendor of [R4J - Requirements Management for Jira](https://marketplace.atlassian.com/apps/1213064/r4j-requirements-management-for-jira).

We are currently in the works with supporting chapter numbers when exporting from R4J to Confluence. If you're interested, we'd like to discuss more on this topic so please do communicate with us through our [support portal](https://easesolutions.atlassian.net/servicedesk/customer/portal/2).

Best regards,  
Angelica


author: Ste Wright
body: Hi [@Andy Munro](/t5/user/viewprofilepage/user-id/3808264)

To confirm - are you looking to rank the issues in Jira and then visually display these in Confluence?

How is the rank decided? Is it like a backlog of issues?

If yes, you could create a board with a backlog. You can search the backlog's order using JQL, which could be placed on the Confluence page using the Jira Filter Macro. That way, the order of requirements on your page would match the view in Jira, and dynamically update as you make modifications.

If you have issues in a backlog already, your JQL might look like this:

```
project = TEST ORDER BY RANK ASC
```

You also mentioned sub-sections above - if you mean that you need to show the order of requirements with the sub-tasks below each parent issue, something like this might work coupled with the example above:

```
project = TEST ORDER BY Rank ASC, subtasks ASC
```

If this isn't what you're looking for, let us know :)

Ste


Tags: cloud
Can a page properties report pull data from a Jira Macro?
Asked by Stephen Garber:

I'm trying to get jira data to render side-by-side on a page next to data from confluence in a page properties report. Placing the jira macro inside the page properties macro, doesn't make the jira table information available for use.

Is there a workaround way to get jira data to display in real time inside a page properties report? I'm looking for more information than just Summary and Status.


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Stephen Garber](/t5/user/viewprofilepage/user-id/121970) ,

Our customers use the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview) app to work with the Jira Issues and Page Properties Report macros.

We suggest to use them separately. For example, you'll be able to create [visualized real-time dashboards](https://docs.stiltsoft.com/display/public/TFAC/Using+Table+Filter+and+Charts+in+Combination+with+the+Jira+Issues+Macro) in Confluence based on the Jira Issues macro.

![](https://docs.stiltsoft.com/download/attachments/42241867/project%20time_1.png?version=1&modificationDate=1572272174000&api=v2&effects=border-simple,shadow-kn)

And you'll be able to [work with your Page Properties Report macro](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+the+app+with+the+Page+Properties+Report+macro) as well (filter it, create pivots and make charts).

![](https://docs.stiltsoft.com/download/attachments/42245975/2.png?version=1&modificationDate=1581433758000&api=v2&effects=border-simple,shadow-kn)


author: James Conway
body: [@Stephen Garber](/t5/user/viewprofilepage/user-id/121970)

Have you tried using the table view of the Jira issue macro? <https://confluence.atlassian.com/doc/jira-issues-macro-139380.html>

All the best

James

comments: author: Stephen Garber
body: James,

Thanks for the comment, however this won't work for our needs since we need to display information from confluence beside information from Jira in a table.

-Stephen
N?o estou conseguindo incluir trecho de um p?gina em outra
Asked by Prado:

Na caixa de di?logo indico o nome da p?gina, mas como seleciono o trecho que ser? exibido?


Answers:
author: Ana Karolina Silva Camargo
body: Ol?, boa tarde.

Mas para mim n?o aparece a macro Trecho, somente a macro de Incluir Trecho.


author: Julio
body: Faz um tempo, mas tamb?m tive essa d?vida, vamos l?, para Confluence Cloud baseando-se nestes links do Confluence Server (N?o achei para Cloud):

* <https://support.atlassian.com/confluence-cloud/docs/insert-the-excerpt-include-macro/>
* <https://support.atlassian.com/confluence-cloud/docs/insert-the-excerpt-macro/>

Que n?o ajudam muito, mas...

**Ent?o**: usar o excerpt-macro/trecho, ou seja, abre uma caixa na "p?gina A" e com o trecho que quer ser colocado:

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

Depois na p?gina destino "Pagina B", coloque o "incluir macro trecho":

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

Pronto! Nesta p?gina ser? inserido o trecho da P?gina A original.


Tags: cloud
Not able to run confluence
Asked by Bhagya k:

Hi Team,

I installed confluence and I'm not able to run the service. I'm getting this error after running startup.sh and also /var/atlassian/application-data/confluence is empty. Attached error screenshot. Please help me resolve this issue.![Screenshot from 2020-08-07 16-23-41.png](https://community.atlassian.com/t5/image/serverpage/image-id/106069i0CEDD45C882E613E/image-size/large?v=v2&px=999 "Screenshot from 2020-08-07 16-23-41.png")


Answers:
author: repi
body: [@Bhagya k](/t5/user/viewprofilepage/user-id/3630331)

Does the file /opt/tomcat/apache-tomcat-8.5.46/bin/setclasspath.sh exist?  
If existing, are the rights set correctly?

comments: author: Bhagya k
body: Hi [@repi](/t5/user/viewprofilepage/user-id/302600) , Thanks for your response.

file does not exist.

![Screenshot from 2020-08-08 14-22-22.png](https://community.atlassian.com/t5/image/serverpage/image-id/106070i2497DFE224C8BAF6/image-size/large?v=v2&px=999 "Screenshot from 2020-08-08 14-22-22.png")


author: repi
body: The startup.sh is also not the start file for the confluence.  
For manual start or as a system service, confluence must be started with start-confluence.sh.  
As a service with systemd, I solved it like this:

```
[Unit] 
Description=Atlassian Confluence mit Postgresql (Wiki) 
After=syslog.target network.target 

[Service] 
Type=forking 
User=confluence 
#Environment="JAVA_HOME=/usr/lib/jvm/jdk1.8.0_191" 
#Environment="JRE=/usr/lib/jvm/jdk1.8.0_191/jre" 
ExecStart=/data/atlassian_ps/confluence/bin/start-confluence.sh 
ExecStop=/data/atlassian_ps/confluence/bin/stop-confluence.sh 

[Install] 
WantedBy=multi-user.target

```

The environment settings are commented out. Can be set, if working with different Java software, deviating from the system standard


Tags: confluence-server

server
Confluence Can't reach database server or port
Asked by Zhi Tian Liao:

Hello

When I set confluence to connect mysql, it shows me this below error:

both Mysql and confluence are installed by docker in a same server, and set mysql with port 3307(docker run -p 3307:3306)

I have create DB confluence with "grant all" user confluence1 and pw 54321.

and set wait_timeout = 600 in my.cnf but still no use

Does anyone have ideas about it?

Thank you.

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


Answers:
author: Manisha Kharga _Appfire_
body: Hi [@Zhi Tian Liao](/t5/user/viewprofilepage/user-id/4043066)

The communication link between the driver and the data source to which the driver was attempting to connect failed before the function completed processing. So usually its a network error.  

Can you please try to create the database connection using the Connection string option.

Follow the below details and replace the value based on your instance.

**Connection string**: jdbc:mysql://\[Host IP or DNS\]:\[PORT\]/\[Database Name\]?sessionVariables=tx_isolation='READ-COMMITTED'

**Driver class**: com.mysql.jdbc.Driver

**Driver JAR location**: atlassian-confluence/lib/mysql-connector-java-5.1.48.jar

**Username**:XXX

**Password**:XXX

Thanks,  
Manisha

comments: author: Zhi Tian Liao
body: Hello Manisha

Thanks for your replies

I've checked my network, idk why docker cannot connect with Host IP and port, but can be connected with other servers. I try to connect with docker IP and infra port and it works now.

Thanks and have a nice week.


Tags: confluence-server

server
Unable to print New Lines by using "\n" in Table Transformer SQL query
Asked by vinay singh:

Hi All ,

I am using the Table transformer Macro wheer I am concatenating two string columns .

and I need 2 empty lines between the two concatenated strings .

I have tried using

**select str1 + "\\n\\n" + str2 from T1**

but the above sql query is displaying any new lines in the confluence page.

Thanks in advance


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@vinay singh](/t5/user/viewprofilepage/user-id/4043065) ,

Unfortunately, the Table Transformer macro doesn't support "\\n" as an empty line.

You can read more about different use cases with the Transformer macro [here](https://docs.stiltsoft.com/display/public/TFAC/Custom+Transformation+-+use+cases+with+advanced+SQL+queries). If you need any further assistance, feel free to raise a support ticket, describe your use case and attach screenshots of your tables.


author: Katie A
body: [@vinay singh](/t5/user/viewprofilepage/user-id/4043065) Probably too late for you, but maybe not for other searchers...

If your original selection was actually this:

```
SELECT 'str1' + "\n\n" +'str2' FROM T1
```

Try this:

```
SELECT FORMATWIKI('str1' + "\n" + 'str2') FROM T1
```

(the header will show as that formula if you don't put "AS 'name' before FROM)

```
SELECT FORMATWIKI('str1' + "\n" + 'str2') AS 'name' FROM T1
```

I know it looks like one new line but in my confluence it shows up as 2 (and I have the opposite issue...I just want ONE lol)
EazyBI for Jira reports don't appear in some pages
Asked by Owen Guion:

We have been using EazyBi for Jira to build dashboards in Confluence.

Recently, I had a user request to add a report to a set of confluence pages.

When I tried to add the report(s), I get 'App is not responding. Wait or Cancel'

If I try to add the same report to other pages, it works fine.


Answers:
author: Gerda Granti?a
body: Hi [@Owen Guion](/t5/user/viewprofilepage/user-id/1420928) ,

it looks like a temporary performance issue in eazyBI, but if you are still having it, then please send an email with details directly to our support email (support@eazyBI.com) so we can investigate what is causing it.

best,

Gerda // support@eazyBI.com


Tags: addon-com.eazybi.jira.plugins.eazybi-jira

cloud