youngmon/atlassian-qna huggingface dataset:
Change default display of Confluece JIRA macro
Asked by Vipin:

When I insert a JIRA ticket URL via the JIRA macro, into a Confluence page, it shows these fields by default:

```
Key, Summary, Resolution
```

I want to change the display to show these columns only:

```
Key, Status, Sprint
```

I have a Confluence page which has more than 50 such tickets embedded in various positions of the page. Is there a way to change the Macro default display settings to do this, so that I don't have to go to each link to edit the macro / change the display options / update the column names?


Answers:
author: Shannon S
body: Hi Vipin,

In [Jira Issues Macro](https://confluence.atlassian.com/doc/jira-issues-macro-139380.html) there is a Display Options at the bottom that you can use to select the columns you want to display, and in which order.

Have you seen this feature and are you able to get it to display the issues as you prefer?  
![Screen Shot 2017-10-20 at 11.55.13 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/8036i4798D99A8683F8AC/image-dimensions/538x362?v=v2 "Screen Shot 2017-10-20 at 11.55.13 AM.png")

Kind Regards,  
Shannon

comments: author: Vipin
body: Hi Shannon,

Yes, I use that very screen to go to each embedded JIRA link and change the display options to show the 3 columns I want displayed.

My question was whether there is a way to set my columns as the global default for that Macro, so that I don't need to manually change it every time.

Thanks,

Vipin


author: Shannon S
body: Vipin,

There is a workaround for that, but it does require you to directly edit the .jar files:

[How to Change Default Jira Columns to display in Jira issue macro](https://confluence.atlassian.com/confkb/how-to-change-default-jira-columns-to-display-in-jira-issue-macro-812321422.html)

I recommend you have some familiarity in directly editing source files and make a backup before you save it.

Let us know if you have any trouble.

Kind Regards,  
Shannon
Is there an URL pointing toward one's personal space?
Asked by Marc Dionne:

Hi,

As there is an URL pointing toward one's profile (\<confluence-url\>/users/viewmyprofile.action), is there an URL pointing toward one's personal space?

I thought this could be \<confluence-url\>/users/viewmypersonalspace.action or \<confluence-url\>/spaces/viewmypersonalspace.action or other flavors but it doesn't work.  

I would like to provide a link in a home page other than the one provided under the upper-right photo/avatar menu, that activates an URL containing the username: \<confluence-url\>/spaces/viewspace.action?key=\~\<username\>

Thank you!


Answers:
author: josh
body: This is advanced, but you could make a User Macro to display the current user's personal space (assuming they have one)

```
## Macro title: My Personal Space
## Macro has a body: N
## Developed by: Josh
## Date created: 10/19/2017
## Installed by: you

## @noparams

<a href="$req.getScheme()://$req.getServerName()/spaces/viewspace.action?key=~$action.remoteUser.getName()">Here's your Personal Space</a>
```

comments: author: Marc Dionne
body: Thanks a lot, Josh!

This is a bit new to me, indeed.

I created this User Macro called "espacepersonnel".

![MacroUtilisateurEspacePersonnel.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/8009iC0AEB58F9EC24F9C/image-dimensions/676x176?v=v2 "MacroUtilisateurEspacePersonnel.JPG")

Now forgive my candor, but how do I use it? Where and how do I insert or invoke this line?

Thanks again!


author: josh
body: Hi Marc,

Once you save this you can insert it into your page (or the dashboard welcome message) just like you include any built in macro. You can use the macro browser to find it.


author: Marc Dionne
body: Got it!

That's fantastic!

Thanks a lot again!

Have a great day!


author: josh
body: Thanks Marc! If you wouldn't mind hitting the Accept as Solution check mark I'd appreciate it.
Upload file to confluence page using REST API- Groovy
Asked by Raj Pathak:

Hi

I was wondering how I would go about uploading a specific file from a directory on my local machine to a specific confluence page using the REST API, I couldn't seem to find that in the documentation.

If I could be guided towards that, that would be very helpful!


Answers:
author: Kalyan
body: ```
 curl -v -S -u $USERNAME:$PASSWORD -X POST -H "X-Atlassian-Token: no-check" -F "file_0=@code/pydoc/manage_connections.html" "https://alm-group.atlassian.net/wiki/spaces/PROJECT/pages/830833705/PyDoc"
```


author: Hasnae
body: You might want to have a look at the following documentation of the attachment REST Api :

<https://docs.atlassian.com/atlassian-confluence/REST/6.5.2/#content/{id}/child/attachment-createAttachments>

Hope this helps.

comments: author: Kalyan
body: Any suggestions below question:-

<https://community.atlassian.com/t5/Confluence-questions/CURL-Upload-multiple-html-files-to-confluence/qaq-p/966304#M128149>


Tags: confluence-cloud

rest-api
Recently moved pages are not showing in Confluence page menu but are on the home page
Asked by Jessie:

I recently created a new space and moved some pages from a different space to the new one. The pages show on the homepage of the new space and also display on the "reorder pages" section, but do not display under the "pages" link on the side bar. I have included some screenshots to better explain.

I have checked all the permissions and everything is in order. I am the sole admin of this space. Has anyone ever experienced this issue? Is there something I am missing?![Admin_-_Confluence.jpg](/t5/image/serverpage/image-id/7984iFD4A44F027E64879/image-size/large?v=v2&px=999 "Admin_-_Confluence.jpg")![Fullscreen_10_19_17__10_35_AM.jpg](/t5/image/serverpage/image-id/7986iF4EB7EFC5DC55038/image-size/large?v=v2&px=999 "Fullscreen_10_19_17__10_35_AM.jpg")![Reorder_Pages_-_Admin_-_Confluence.jpg](/t5/image/serverpage/image-id/7985i957CB3481B716242/image-size/large?v=v2&px=999 "Reorder_Pages_-_Admin_-_Confluence.jpg")


Answers:
author: Davin Studer
body: On the reorder pages tab in the screenshot above you can simply drag the General Office Info page on top of the Admin Home page so that it is a child of that page and they should show up at that point. If you notice the little house icon on the Admin Home page. That icon means that that page is the home page for your space. All pages need to be hierarchically under that page to show up in the navigation bar.

comments: author: Davin Studer
body: FYI you can change which page is the home page for a space by going to Space Tools (bottom of the left hand nav) -\> Overview. On that page you can specify which page in the space is considered the home page.


author: Thomas Schlegel
body: Hi Jessie,

move the pages under your Home Page. Then they should appear.

Every page in your space should be located everywhere under the home page.


author: Alwyn Durham
body: Same issue, had to go into "View in Hierarchy" under the "..." menu in the upper right, and then drag the subpages back under the main space page.


author: Jessie
body: Thank you, that worked! I didn't realize that even though it looked like it was under the home page, I had to drag and drop on top to make it the child. Thank you!
Adding A User To The "System-Administrators" Group
Asked by Zebadiah Ramos:

Hello!

I just recently completed the local install of Confluence, and I'm running into problems setting up our SMTP server for notifications. The issue is due to not having System Administration access (Currently no account is listed as having System Administrator access).

Are there any queries that I can run against the DB to verify that no on is in that group? If no one is in the group is there a query I can run that will add an existing user to the group?

Thank you for all of the help and please let me know if more information is needed!


Answers:
author: Mikael Sandberg
body: This should hopefully help you, <https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html>

comments: author: Zebadiah Ramos
body: Hello Mikael,

I tried going through this earlier, but I'm running into an issue after executing the below query.

update cwd_user set credential =  
'x61Ey612Kl2gpFL56FT9weDnpSo4AV8j8+qx2AuTHdRyY036xxzTTrw10Wq3+4qQyB+XURPWx1ONxp3Y3pB37A=='  
where id=1212121;

After running the query I attempt to login using username "admin" and the password "admin", but I'm receiving an incorrect password error and I'm also asked to type out a word now when attempting to log in.


author: Mikael Sandberg
body: Is your Confluence instance connected to AD or are you just using an internal user directory. If you are using multiple, did you do the step where it moved the internal directory to be first?


author: Zebadiah Ramos
body: Currently I'm just using the internal directory. It is linked to Jira Service Desk though, which is using Active Directory for authentication (not sure if this has any effect on Confluence authentication though).


author: Mikael Sandberg
body: The application link should not have any effect to the authentication.

When you run the query to identify the administrator now, does it show that the admin is active? And before you added the admin, was Confluence stopped?


author: Zebadiah Ramos
body: It does show the admin as active, however I didn't stop Confluence before making the change so I'm sure that has something to do with it.


author: Zebadiah Ramos
body: Mikael,

The second link you sent me got us squared away. Thank you!
After Upgrade to 5.8.18, Administration Label Incorrect
Asked by Brandon Viertel:

The label at the top of the administration section shows:

administration.global.menu.label {#toc-hId-1763930906}
------------------------------------------------------

How to fix/adjust?


Answers:
author: Brant Schroeder
body: [@Brandon Viertel](/t5/user/viewprofilepage/user-id/1157431) Have you tried clearing you Confluence cache? <https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html>
When creating multiple issues in a table in confluence, epic name is not mappable?
Asked by Henk Keuris:

Hi,

When I try to create multiple issues in a table in confluence using the popup macro when you highlight some text in a table, the epic field name is required, and doesn't contain a field mapping to the table status header column, like summary and description does.

Is this a bug, or a feature? That seems to not be useful. Why would I create a table in confluence, with the purpose of auto-creating epics from the table, mapping the summary field and the description field, but not the epic name? You can type the epic name into the field, but then it'll create 10 epics (for example), all with the same epic name, which you then have to go edit afterward.

Any help?


Answers:
author: Nadja D?ge
body: <https://jira.atlassian.com/browse/CONFSERVER-56130>


author: Jeff London
body: Any luck with this? We have the exact same problem. It defeats the purpose of creating a list of Epics in Confluence in a table because you can mass create them like we can with Stories or other entities.

comments: author: Thomas Obenaus
body: Same issue here. My not-so-great workaround: create Story issues and bulk change them to Epics. Epic name is still not mapped (remains unset) but at least the issues are linked in the Confluence table.


author: Nicholas Cafaro
body: Agreed. Miss by Atlassian. Hopefully Epic Name mapping finds its way into a release in the future.
Show content in the same page when we have two or more sections
Asked by Caroline Barbosa:

Hi everyone,

I'm a starter in Confluence and I would like to build a page with two sections. On the left side, I want to insert links to another page and on the right side, I need to show the content link clicked on the left side.  
I am using Confluence cloud and I would like to know how to show this on the same page.


Answers:
author: Davin Studer
body: It sounds to me like what you would need to do is set up each of your content pages as two column layout. Then for your left column, you would create another page for that column with your links to all your content pages. Then on each content page, you would use the include page macro in the left column to bring in the links to the left column. It would look something like this.

**Links Page**

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

**Content Page - Edit Mode**

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

**Content Page - View Mode**

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

comments: author: Caroline Barbosa
body: [@Davin Studer](/t5/user/viewprofilepage/user-id/781467)

It is exactly what I need.

Thank you very much again!! I'm really happy :)


author: Thomas Schlegel
body: Hi Caroline,

welcome to Confluence and to this community!

Unfortunately, I don't know any plugin or macro that is providing the functionality you mentioned. There's no thing like a "page within a page".

You could create a bunch of pages that would pretend to be one single page and each of these could import the content of another page and all of them would be linked to each other, but this could become an extremely complex structure - I wouldn't do that, to be honest.

So, sorry that I have no better answer for you.

comments: author: Caroline Barbosa
body: Hi Thomas,

I really appreciated your attention, maybe I need to change my mind e to find another way to present my content.

But I'm not sure if I could express my self with properly, so I attached one print about an example (I found this at Confluence's blog) and I would like to structure it this way.

Thank you very much for your help.

Caroline

![Key concepts - BMC Cloud Lifecycle Management 4.6 2017-10-19 13-24-00.png](https://community.atlassian.com/t5/image/serverpage/image-id/7983i10D944CA24CEAC5D/image-size/large?v=v2&px=999 "Key concepts - BMC Cloud Lifecycle Management 4.6 2017-10-19 13-24-00.png")


author: Davin Studer
body: What you are seeing there is the normal left-hand navigation. That shows all the pages in the space in their hierarchical order.


author: Caroline Barbosa
body: Hi Davin,

Thank you.

I'm completely newbie, now I have a good starting point.

:)


author: Thomas Schlegel
body: [@Caroline Barbosa](/t5/user/viewprofilepage/user-id/1157885) Great, and don't hesitate to ask anything here :-)
filter users by openldap group
Asked by Vladimir Rora:

Hi,  
We use openldap 2.4 for user authentication.  
We want to hide all users in confluence if they don't members of one ldap group.  
But in openldap we don't have memberOf attribute.  
How we can filter users in confluence?


Answers:
author: Shannon S
body: Vladimir,

Can you let us know what you mean by "hide" the users? You mean they shouldn't have Confluence accounts created for them at all, or do you just not want them to be visible to other users?

You should be able to use the memberOf attribute to restrict to a certain group, and according to [this article online](https://adimian.com/blog/2014/10/how-to-enable-memberof-using-openldap/), it's possible to enable it for OpenLDAP.

Kind Regards,  
Shannon

comments: author: Vladimir Rora
body: We have many system accounts, fired users accounts, locked users, etc.  
And we have one group for actual user accounts "alive_users".  

We want to see only users from "alive_users" group in "Users managment" and others pages in Confluence.  

Our ldap don't have memberOf, we try enable it, but our ldap dont use "cn=config", so, try failed.  

Can we filter users by group in Confluence?


author: AnnWorley
body: If the user objects in OpenLDAP have an attribute that indicates they are in a group then you can filter on that attribute. Confluence uses [LDAP queries](https://confluence.atlassian.com/kb/how-to-write-ldap-search-filters-792496933.html) to filter users and groups but if there is no attribute, Confluence doesn't have anything to use in the query.

Would it be possible to put all the users (alive_users) you want to see in Confluence in the same OU? Then you could use the Additional User DN field to filter the users.

![Screen Shot 2017-10-20 at 10.36.09 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/8044i59A2EDD5CB3BE524/image-dimensions/633x179?v=v2 "Screen Shot 2017-10-20 at 10.36.09 AM.png")
Upgrading from Confluence 5.9 without confluence.cfg.xml
Asked by Gerald Eigenstuhler:

I plan to upgrade my Confluence installation, currently in version 5.9.7, to the very newest, which seems to be 6.4.

After reading this

<https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

and that

<https://community.atlassian.com/t5/Confluence-questions/Upgrading-Confluence-5-9-to-6-2-questions-about-steps-and/qaq-p/592919>

I see that there should be a file named confluence.cfg.xml which I should copy over to the new installation. My very problem is that this configuration file does not exist:

```
find /opt/atlassian/confluence/ -name 'confluence.cfg.xml'
```

does not show any results. So, I already looked around in my database (a MariaDB 10.0 server) but I do not have any clue where to set it up.

So, how do I perform the upgrade if the configuration file is not present?


Answers:
author: Mizan
body: The file is present in home directory you are looking in installation directory

try looking in /var/atlassian/confluence

if not there then find where is your home directory <https://confluence.atlassian.com/conf54/confluence-administrator-s-guide/configuring-a-confluence-environment/important-directories-and-files/confluence-home-directory>


author: Gerald Eigenstuhler
body: [@Mizan](/t5/user/viewprofilepage/user-id/781488)Thanks. Great point, I found it in

```
/var/atlassian/application-data/confluence/confluence.cfg.xml
```

(should be reply).


Tags: configuration

upgrade
Jira Macro on Site Welcome Message doesn't seem to work
Asked by Jonathan:

I want to embed the JIRA macro with open tasks of current user into the welcome message (System Blueprint). Bit the macro can't render and shows an unexpected error. The macro does work though on every other page I tested it. My current workaround is to create the content on a normal space page and include that page as the Site Welcome Message - this way everything works fine.


Answers:
author: Jonathan
body: hi - I no longer have that issue (using datacenter by now)

comments: author: Brant Schroeder
body: [@Jonathan](/t5/user/viewprofilepage/user-id/538084) can you share how you fixed it to help others that are having that issue?


author: Brant Schroeder
body: [@Jonathan](/t5/user/viewprofilepage/user-id/538084) Are you on data center or cloud? What macro are you using? What is the error?


Tags: jira
Confluence not starting catalina.sh java usage
Asked by Ruslans Saidans:

Hello, can't figure out what is a problem, Confluence not starting. After launching startup script I get Tomcat started, and record in catalina.out:

/opt/atlassian/confluence/bin/catalina.sh: line 433: 127.0.0.1: command not found  
/opt/atlassian/confluence/bin/catalina.sh: line 433: 127.0.0.1: command not found  
Usage: java \[-options\] class \[args...\]  
(to execute a class)


Answers:
author: Luis Ashurei
body: I have the similar problem and fixed by add "sudo", CentOS.


author: Ruslans Saidans
body: catalina.sh not edited.

Virtual server cloned from production, where everything seems to be working, changed IP and hostname. JIRA application working, Confluence fails to start. Startup output:

Using CATALINA_BASE: /opt/atlassian/confluence  
Using CATALINA_HOME: /opt/atlassian/confluence  
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp  
Using JRE_HOME: /opt/atlassian/confluence/jre/  
Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar  
Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid  
Existing PID file found during start.  
Removing/clearing stale PID file.  
Tomcat started.

comments: author: Ruslans Saidans
body: Rerun confluence install (same version), choosing update - that fixed problem.


author: Mizan
body: Is Java installed ? have you set the java environment variable ?

Di you modify the catalina.sh ?

comments: author: Mizan
body: Also check if this affects you <https://jira.atlassian.com/browse/CONFSERVER-30381>
Lock edit attachments and page to edit, if they open?
Asked by Tony Montana:

Hello!

We need lock attachments and (or) page if somebody their open for editing. How to do it by standard means or need buy plugins?

Thanks for the answers!


Answers:
author: Gregor Kasmann_Actonic
body: Hi Viktar,

What do you mean by "lock attachments and (or) page"? Could you explain it or describe some use case?

comments: author: Cynthia Parenteau
body: Hi,

It looks like this issue was not resolved, but i think i have the same question.

What is the best way to allow only one user at a time to edit an attachment on a confluence page?   

For example, we're using the excel macro, but if multiple users try to edit the spreadsheet at the same time, they are not notified/prompted that anyone else has the attachment opened - and when they save and close the file, the last one to save, is the current/visible version.

We'd like to lock out everyone else from editing the spreadsheet, until one active user has saved and closed.... similar to a network folder situation which tells the user someone else is in the file and they can only view the file read-only. Ideas? Is this possible?

Thanks in advance for any advice.


author: Lars Swart
body: Hi Cynthia,

did you find a solution for this problem? I can't believe that so few people have an interest in it.

Here is a Feature Request. You can vote for it.

[https://jira.atlassian.com/browse/CONFSERVER-39185?workflowName=Confluence+Workflow+-+Public+Facing+v4\&stepId=14](https://jira.atlassian.com/browse/CONFSERVER-39185?workflowName=Confluence+Workflow+-+Public+Facing+v4&stepId=14)


author: Nicolas Casel
body: As there is no Confluence native way of locking attachments, one solution is to use this paid plugin:

<https://marketplace.atlassian.com/apps/36199/cenote-lockpoint-attachment-checkout>


Tags: attachment

lock
Start Excel sheet not as preview
Asked by Arno van Hemert:

Is it possible to start an Excel sheet directly into Excel? Or can attachments only be started as preview?


Answers:
author: Gregor Kasmann_Actonic
body: It can be opened in Excel only after download.

comments: author: Arno van Hemert
body: Hi Gregor,

Thank you very much for you answer.


author: Davin Studer
body: You can use the Excel macro to show the spreadsheet when a user comes to the page. Example below.

**Edit Mode**

![Capture1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/7987iDBC7481C9CF4E738/image-size/large?v=v2&px=999 "Capture1.PNG")**View Mode**

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


Tags: attachment

ms-excel