youngmon/atlassian-qna huggingface dataset:
How to modify the attachments macro in confluence?
Asked by Elnaz Beirami:

We want to modify the attachments macro. There is the column "modified" in that macro that shows who and when the attachment was modified and we do not want this to be included in our table. We want a basic table that shows only the file names and users can download those files easily. Please let us know if there is any way to modify this macro.


Answers:
author: Gregor Kasmann_Actonic
body: You cannot modify this macro, but you can create your own "user macro" with the same functions.  
Create new User Macro:

![2017-10-21 23_21_26-Edit User Macro.png](https://community.atlassian.com/t5/image/serverpage/image-id/8087i1F42E5D38863C1EB/image-dimensions/554x400?v=v2 "2017-10-21 23_21_26-Edit User Macro.png")  
Put macro source like this:

```
## @noparams
#set ($attachmentsList = $content.getLatestVersionsOfAttachments())
#if ($attachmentsList.size() > 0)
?? ?<ul>
?? ???? #foreach( $attachment in $attachmentsList )
?? ???????? #set ($currentAttachmentId = $attachment.id)
?? ??? ??? ?#if ($attachment.comment && $attachment.comment.trim().length() > 0)
?? ??? ??? ??? ?<li><a href="$generalUtil.htmlEncode("${req.contextPath}${attachment.downloadPathWithoutVersion}")">$generalUtil.htmlEncode($attachment.comment)</a></li>
?? ??? ??? ?#else
?? ??? ??? ??? ?<li><a href="$generalUtil.htmlEncode("${req.contextPath}${attachment.downloadPathWithoutVersion}")">$generalUtil.htmlEncode($attachment.fileName)</a></li>
?? ??? ??? ?#end
?? ???? #end
?? ?</ul>
#end
```

comments: author: Elnaz Beirami
body: Thank you very much Gregor! This is exactly what I was looking for.


author: Nic Brough -Adaptavist-
body: It would require re-coding and re-compiling the add-on that provides the macro to do this.

You could probably get close with a user macro though, instead of coding a new add-on

comments: author: Elnaz Beirami
body: Thanks Nic for the info!


Tags: attachment
need a macro like 'popular-label' but with label exclusion
Asked by Michael Regelin:

Hello,

we use a lot popular label in a heatmap.

The problem is that every page created by a process, have a specific label.

I'm interested in the other label and not this one.

Is it possible to have an option to exclude label ?


Answers:
author: Gregor Kasmann_Actonic
body: Unfortunately you cannot implement it OOB. You should create some custom macro for this.

comments: author: Michael Regelin
body: Hi Gregor,

thanks for your answer.

Unfortunately, I dont have a developper under the hood ;-)

Thanks anyway.

Michael


Tags: exclude

label

popular
Error System in Space Directory
Asked by Sol Hott Ojeda:

Hi

I have problems in confluence cloud, this occurs at the moment of entering and look for an existing space.

java.lang.RuntimeException: Hystrix circuit short-circuited and is OPEN  
at com.netflix.hystrix.AbstractCommand.handleShortCircuitViaFallback(AbstractCommand.java:965)


Answers:
author: Fabian Lim
body: Looks like Atlassian has logged this error here, but there are no fixes: <https://jira.atlassian.com/browse/JSWCLOUD-17142>
Change User Group License in confluence
Asked by Bruno Soares:

I configured Confluence by linking to our Jira platform.  

At this point we will need only 10 licenses for confluence. However I assign in configuration the jira-servicedesk-users group for confluence editing.  

This group currently has 23 users. I need to make the group change, creating in Jira a group called jira-confluence-users.  

How do I do this?  

Thank you.


Answers:
author: AnnWorley
body: Licensing in Confluence is controlled by the "can use" global permission. The Confluence global permissions are at Confluence Admin\>Global Permissions. If you add the desired group to the Global permissions and grant Can Use they will be able to log into Confluence.

Disabled users will not be able to use Confluence, as you observed.

As it mentions in [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):
> Confluence's license count is based on Global Permissions. Users will count towards the license in the following ways:  
> If the user is a member of a group that has global permissions to use Confluence  
> If the user is individually granted global permissions to use Confluence


author: Peter DeWitt
body: [@Bruno Soares](/t5/user/viewprofilepage/user-id/1151981), you will need to create a new group and add those 10 users.

<https://confluence.atlassian.com/adminjiraserver071/view-create-or-delete-a-group-802592335.html>

Once you have you group created, you can use that one for Confluence.

.pd

comments: author: Bruno Soares
body: [@Peter DeWitt](/t5/user/viewprofilepage/user-id/356173)Ty for your response.

I created the group , so now I Want to change in Confluence the license group in jira.

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

Edit: I Found the user in admin of confluence and Disable this user. Decreased the number os licenses in confluence, but disable the user in Jira too.

I think , as I disable this users, they cannot use confluence anymore.

How do I Change the group that confluence get the licenses ?

Thankyou.
Lost access after confluence backup reloading on another server
Asked by Pierre SCHWARTZ:

Hello,

I am migrating Jira \& Confluence instances into new internal servers. Both apps are linked to share authentication : Confluence uses Jira's users.

I have successfully migrated Jira and I can log in and manage it.

I have reinstalled Confluence on another server and reloaded the backup from the previous Confluence instance. No login/password has been asked during the confluence installation.

And I cannot log into Confluence. I assume the link between the apps is broken.

If I try to recover my password, the link sent by email brings me to the form, ok, but when submitted I get an exception

```
com.atlassian.crowd.exception.runtime.OperationFailedException: com.atlassian.crowd.exception.ApplicationPermissionException: Forbidden (403) Erreur "403 - Forbidden" rencontr?e lors du chargement de cette page. client.forbidden.exception Aller ? la page d'accueil JIRA	
```

Using the database, how can I recreate an admin account ? With such an account I would be able to relog in and to reparameter the link between Jira \& Confluence.

Thanks for your help


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Pierre SCHWARTZ](/t5/user/viewprofilepage/user-id/1158094) ,

you can recover admin rights through the following approach <https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html>

Fabio
Confluence setup problem
Asked by ?eyma Nur ARI:

I give that error in picture what would I do ![Ads?z.png](/t5/image/serverpage/image-id/8037i25E7EDDD2D7D153E/image-size/large?v=v2&px=999 "Ads?z.png")


Answers:
author: Gregory Van Den Ham
body: Can you tell us a bit more about the environment (server OS, db, confluence version)? Anything in the confluence logs on the server?


author: AnnWorley
body: I got the exact same error yesterday when I was installing Confluence. I deleted the contents of the home directory and made sure the user I was running Confluence with was the owner of the home and install directories. (The database tables had been partially set up by Confluence so I also dropped and created a new database. There is an option in the setup wizard to overwrite the Confluence tables but it seems to take forever to do it that way.)

Please delete the contents of the home directory and make sure the Confluence startup is being run by a user with permission to write to the [Home and Install Directories](https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html).

I look forward to hearing how it goes.
Attachment link open in MS Office
Asked by Daniel Vlad:

Hello,

How can I do that the link to an attachment (template) on another page/space (Word, .docx) direct open in Word and not in a preview?

I implement the Link like this: Choose Link \> Search and enter part of the attachment name.


Answers:
author: Nelson Pereira
body: You can also try this free add-on: [Short link](https://marketplace.atlassian.com/1218222)

It doesn't not open in MS Word, but allows you to edit word documents in the page.


author: Reinhard Piltz
body: [Office Connector Prerequisites](https://confluence.atlassian.com/doc/office-connector-prerequisites-170493096.html "Office Connector Prerequisites")
Rest Api Markup {}
Asked by Joram Sbrisny:

How to create a page with a Markup{\] via Rest Api (json)?


Answers:
author: Vero Rivas
body: Hi [@Joram Sbrisny](/t5/user/viewprofilepage/user-id/1158064)

Look at this posts, maybe can help you

<https://community.atlassian.com/t5/Confluence-questions/Insert-Confluence-Wiki-Markdown-via-API/qaq-p/667936>

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

Cheers


Tags: rest-api
Search for Confluence Pages without Tags
Asked by joachim.mund@bs-energy.de:

Hey,

ich want to search for Pages in my Wiki where i or others forgot to set Tags.

Perfect would be a search a filter like "noTags" Tags=NULL or something but a List of all Pages sorted by Tags or Tag count would be okay too.

Someone an idea?


Answers:
author: James Dellow
body: See <https://community.atlassian.com/t5/Confluence-questions/How-to-find-pages-in-Confluence-space-with-no-label/qaq-p/263864>

Just try putting the following in the search box:

type:page NOT labelText:\[a TO z\]

comments: author: joachim.mund@bs-energy.de
body: Hello James,

thank you very much!

Your suggestion works fine


author: joachim.mund@bs-energy.de
body: Hello James,

thank you very much!

Your suggestion works fine.

comments: author: James Dellow
body: No problem!


author: Jermaine O
body: Hi James, Is there a particular way to limit the search results to a Parent Page? Using the Search Results macro I can limit the results to a Space but I'd like to also limit the results to just the children of a certain page.


author: James Dellow
body: Confluence Query Language (CQL) supports two filters that do this, ancestor and parent. However, I don't think they'll work with the Search Results macro. Have you tried the Page Tree Macro with the search option selected?


author: Jermaine O
body: Thanks for the reply James. I've just tried the Page Tree macro however it didn't seem to work out fully for me: The search syntax "ancestorsid:########" works to provide a list within a subset of pages. However, "parent:########" does not seem to work - this turns out no results.

I've resorted to performing my search then adding additional an additional filter within the search results screen to filter on "with parent". I've then saved the URL of the results to quickly perform this search in the future.


Tags: search

tag
New Confluence layout
Asked by Mark Gahagan:

Is there a way to restore the previous Confluence theme\\layout? This new layout is a pain! I prefer having the nav bar at the top rather than the side. There is also now more clicks to access 'Space Tools' and your product requirements under navigation. This new layout feels like a backward step.


Answers:
author: Reinhard Piltz
body: Did you mean dashboard layout?

[read here](https://community.atlassian.com/t5/Confluence-questions/Confluence-6-Switch-back-to-old-dashboard/qaq-p/611613/jump-to/first-unread-message "read here")

comments: author: Mark Gahagan
body: It's the full theme to the application. The recent update where they have removed the tool bar from the top of the screen to the left hand side and shuffled functionality around meaning you have to go hunting for commands whereas before they were easily accessible. It took me several clicks to find 'Space Tools' as it has been removed from the bottom left hand side of the screen. Previously when you opened up a space you had much quicker access to the tree view of product requirements, now again you have more clicks to access it.
How can I export a Confluence Page containing a Roadmap Planner
Asked by Tanya Fraser:

I have a Confluence Page. It is a one page summary report on Jobs.

There is a Roadmap Planner on the page.

When I export the page to PDF the Planner doesn't appear - the section is blank. Everything else appears.

I am using Confluence 5.9.6 on server

The Roadmap is not large (I saw another question where the roadmap planner was very large). There is no delay in the PDF formation.

Its just a bit blank - help!


Answers:
author: Mark Bereznitsky
body: Hello [@Tanya Fraser](/t5/user/viewprofilepage/user-id/1158050) !  

Unfortunately the build in PDF exporter does not support rendering asynchronously loaded content like the roadmap macro.  

You could probably use your browser's built-in functionality to export the page to a PDF. It would be different depending on the browser but you can usually find it where you would usually find the printing options.  

Let me know if it doesn't do the trick!

comments: author: Anat Ben Israel
body: Hi, has anything changed since July 2019? I think this is a very important feature.


Tags: roadmap
How to disable Confluence inline comments in just one space, but allow old-style end comments?
Asked by Helen OBoyle:

I've seen this page that discusses how to disable the comments section at the end of the page: <https://confluence.atlassian.com/confkb/how-to-disable-commenting-on-an-individual-page-695107603.html>

However, what I am interested in doing is keeping THAT comment facility but disabling the new one that comes with the inline commenting add-on.

The trick is that the inline commenting add-on can't be globally disabled, because our content development and release areas run on the same instance of confluence.

Is there a trick like the javascript function in the linked page above, that works for the inline comments? Some sort of event override perhaps?

A co-worker has found <https://community.atlassian.com/t5/Confluence-questions/Is-there-a-way-to-disable-in-line-Comments-on-Wiki-pages/qaq-p/109579>, but that relies on a macro being added to the global macros file, and I'd rather not introduce that potential maintenance gotcha. Our ideal solution would be javascript on each page for which we want to disable the inline comments feature.

The reason putting the comments in the macros file is more of a maintenance issue than putting a couple lines of script on every page is that we do not control the macros file but we do control the content that we publish to Confluence using an automated tool, and after the initial change to the publication script, no further effort is required by us to ensure that all pages posted to our release space in the future disallow inline comments.

Thanks in advance.


Answers:
author: Helen OBoyle
body: Answered my own question with a bit more experimentation.

To do this inline in a page, use this:

\<ac:structured-macro ac:macro-id="cfdd18d0-a0f9-4a25-9dd7-e16c9c5a0daa" ac:name="html" ac:schema-version="1"\>

\<ac:plain-text-body\>\<!\[CDATA\[\<style\>button\[data-key\*=inline-comment\] { display:none !important;}\</style\>\]\]\>\</ac:plain-text-body\>

\</ac:structured-macro\>

comments: author: Vishnu M
body: Where we need to use this query in HTML macro ?


author: WW
body: ```
ac:name="html"
```

That means it's an HTML macro with this in the body:

```
<style>button[data-key*=inline-comment] { display:none !important;}</style>
```


author: Tupling
body: You can accomplish this with CSS in the style sheet or HTML Macro if you want it page dependent.

#view-inline-comment-button{

display: none;

}

if in a HTML Macro you must include

\<style\>

#view-inline-comment-button{

display: none;

}

<br />

\</style\>
Page Properties 'Number of Items to display' bug?
Asked by Dave Horn:

Hi,

I have 8 pages in a space with page properties. Each page property has an id; each page as a label.

When I create a page with a page property report with a default 15 items to list, it lists the 8 items... and a '2' for the second page of list items. Clicking the 2 does nothing. And it shouldn't: all items are listed on page 1. The 2 shouldn't appear.

When I adjust the number of items to display to 5, I get 7 list-pages! Page 2 works, but 3 to 7 don't work.

Is there something triggering needless page indexes that I should be aware of? Special characters in keys, for instance? Hope you can help!


Answers:
author: Brant Schroeder
body: [@Dave Horn](/t5/user/viewprofilepage/user-id/583550) are you on data center or cloud?

If you are on data center you probably need to run a site reindex. Sounds like the index is out of whack. <https://confluence.atlassian.com/doc/content-index-administration-148844.html> \\

If you are on cloud the reindex happens automatically so the issue should resolve itself in several hours.
How to restore gliffy diagram have been deleted and tracking who delete
Asked by tiendungitd:

Hi everyone,

I just figured out my page lost 1 diagram, i tried to find this diagram in each page history, but not found it. Can I restore it in Confluence? also I want to know who delete it, is it possible?

![Screenshot_9.png](/t5/image/serverpage/image-id/8014i0680A488E0550C54/image-size/large?v=v2&px=999 "Screenshot_9.png")

another thing, I could not search gliffy diagram.

![Screenshot_1.png](/t5/image/serverpage/image-id/8015i33DDC89691FBB7FE/image-size/large?v=v2&px=999 "Screenshot_1.png")

Thanks.


Answers:
author: Vero Rivas
body: Hi [@tiendungitd](/t5/user/viewprofilepage/user-id/662901)

Look at this posts, maybe can help you

<https://help.gliffy.com/confluence/Content/GliffyCommon/Viewing-revision-history.htm>

<https://help.gliffy.com/confluence/Content/GliffyCommon/Disaster-recovery-diagram.htm>

Cheers
permission log question
Asked by Anderson Hsu:

Dear Partners,

Would it be possible which account add group to permission list ? Thanks a lot.

![permission.jpg](/t5/image/serverpage/image-id/8010iC24C4E289197B72D/image-size/large?v=v2&px=999 "permission.jpg")


Answers:
author: josh
body: Check the audit log (you need to be on 5.10+)

https://\<servername\>/admin/auditlogging.action

Depending on how long ago the change was made you may need to search.
Remote Directory Connection Failed
Asked by Kenny Terasawa:

JIRA and Conflence were working together but it stopped after tweaking the server setting.

Not sure how to fix.. The error message is;

Test basic connection : Failedorg.apache.http.conn.ConnectTimeoutException: Connect to xxxxxxxx:8080 \[/xxxxxxx\] failed: connect timed out

Test user rename is configured and tracked : Not performed

Test get user's memberships : Not performed

Test retrieve group : Not performed

Test get group members : Not performed

Test user can authenticate : Not performed


Answers:
author: Mandia
body: How to fix this issue?

comments: author: Shannon S
body: Mandia,

If you have that error, it means that Confluence is having trouble connecting to the remote directory, for some reason. Your server admin will be able to help with this.

If that is you, or if they're having any trouble, please raise this as a support ticket with the [Confluence Support Team](https://support.atlassian.com/contact)!

Take care,  
Shannon


author: Kenny Terasawa
body: test


author: Shannon S
body: Hi Kenny,

Can you let us know exactly what changes you made and the steps you took to apply them?

Please also share with us any messages from the error logs when you run into that error, so we can see the full details surrounding that error.

Thank you!

Kind Regards,  
Shannon

comments: author: Kenny Terasawa
body: Hi Shannon

Thank you for your reply. we use AWS and we change the setting in IP area... I need to get more info from our server admin but I have captured the support log in zip if you can have a look at it for me.

Please let me know how I can forward the zip file over to you?


author: Shannon S
body: Hi Kenny,

We only support AWS on Data Center using Quickstart or Cloud Formation Template:

[Confluence Data Center AWS Quickstart](https://aws.amazon.com/quickstart/architecture/confluence-data-center/)

Is this what you have used, and you haven't customized it? I suspect you might be using Server instead of Data Center without the quick start template. I can try to help you with this despite not being supported and see if we can get you working again.

I've created a support ticket which you should have received in your email. You can send the Support Zip there.

Thank you!

Kind Regards,  
Shannon


author: Kenny Terasawa
body: .


author: Shannon S
body: Hi Kenny,

I wrote you in the support case I created for you, but when your instance connects to Remote Directory, it's using a 52.\* IP and not the 54.\* one that you mentioned.

Do you know what the IP might be? Please feel free to follow-up in the support ticket so we can keep our troubleshooting here and ultimately post the answer here.

Kind Regards,  
Shannon


author: Support Neatideas
body: test
Incorrect 'Duplicated page titles' error
Asked by Ryan Schick:

I ran into a frustrating problem today where I cannot create a new page tree. I have created hundreds, but today I get the error:

* Duplicated page titles

There is no duplicate tho. I could type sdklndsu238j230 and it would say the same thing. I have tried a different browser, I've cleaned cache, I've rebooted. Had a co-worked try on his with the identical information, and it worked immediately. When to a DIFFERENT computer with a DIFFERENT OS and problem remained. So it seems that it has something to do with my account specifically, but no permissions have been changed, and I still have full admin access.

Thoughts?


Answers:
author: AnnWorley
body: Is there any way there is a space in the title as in this question/answer? [Confluence page will not save due to error "The title \[page title\] already exists in space \[space title\].](https://community.atlassian.com/t5/Confluence-questions/Confluence-page-will-not-save-due-to-error-quot-The-title-page/qaq-p/412473)

comments: author: Ryan Schick
body: No it's a very generic message. Does not reference another page.


author: Ryan Schick
body: **Invalid Input**

The following errors occurred:

* Duplicated page titles
Contributors macro for Anonymous Access
Asked by Jim Schwilk:

Is there a way to allow anonymous users see the contributors on a space/page?


Answers:
author: Shannon S
body: Hi Jim,

If you have given the [anonymous users access](https://confluence.atlassian.com/doc/setting-up-public-access-156.html) then they should be able to see the macro on the page.

What are they currently seeing when they navigate to the page with the macro?

Kind Regards,  
Shannon
Manage Add Ons for a Specific Page in Confluence
Asked by Sayantani_Mitra:

I have been trying to add an add on Integration to a Specific Page in Confluence. The Manage Add Ons I find is for the entire Confluence Group. Is there a way, I can add it to a specific page and it's child pages?


Answers:
author: Daniel Wester
body: If you're running on Server then Addons aware global in nature. They have complete access to the java api and can pretty much do anything.

Now or if you're on Cloud they operate using an addon specific user (unless they use the acting on behalf of user grant). This means that if you restrict that user - the addon is automatically restricted


author: Boris Berenberg - Atlas Authority
body: Nope