youngmon/atlassian-qna huggingface dataset:
Ensuring persitence of cofig file changes through updates.
Asked by Alexander Schirmer:

Hi folks,

we've been discussing the update for Confluence server and I was wondering how your experiences as a community are.

We made some changes to the config files (https-connector etc.) and we're not entirely (read: not at all) sure about the persitance of these changes through an update.

How do you ensure that your customizations survive the update?

My initial impulse would be to copy the snippets for the connector and reinsert them into the new config files.

So long,

Alex


Answers:
author: Steven F Behnke
body: I don't mean to be severe, most of the time there are little or no changes. However, it would be unwise to advise anyone copy+paste these configs for *several* reasons.

During our upgrade from Confluence 5.x to Confluence 6.x, we had to completely rework our proxy server and the ssl termination. Our previous configuration was almost completely discarded. This was mostly because our previous configuration made configuring Synchrony very difficult.


author: Alexander Schirmer
body: Hi Steven,

thanks for the feedback!

I did understand and document the changes I made to the server.xml. What I can't lock down exactly is the amount of work in the context of an update.

From you post I understand that the config files are indeed overwritten and I need to implement the customizations into the new files.

This gives me a whole different timeframe for everything!

It will be important to read up on the correct ways to implement "our" customizations in the new version, prepare the code and insert it after the update to minimize downtime.

Thanks again!

Alex


author: Steven F Behnke
body: You can't preserve them like that.

These products are deployed with Tomcat being considered **part** of the Application. Furthermore, the version of Tomcat that Confluence is developed against and deployed with changes for some versions of Confluence. Even now in Confluence 6, there is now a Tomcat container and a Jetty container (for Synchrony). These, the application code, and the database make up the application.

When you modify, for instance, the server.xml file, you're *customizing* the application. You should **not** preserve the entire file via a script or managed system. You should **not** directly copy+paste snippets of config files during upgrades.

What you should do is understand and document what attributes and configurations you're changing. You're customizing Tomcat or Jetty or whatever. When Confluence is upgraded, check the Confluence documentation for the version you're on, check the Tomcat/Jetty documentation for the version Confluence is using, and customize the product to add HTTPS or a proxy or whatever.


Tags: configuration

update
How to direct users to home page on Confluence instead of Service Desk portal (Cloud version)?
Asked by Suman Debnath:

We are using Confluence and JIRA Service Desk. When users log in, they are directed to the Service Desk portal, but I would like to direct them to the Confluence space home page instead. Is this possible?


Answers:
author: Shannon S
body: Hello Suman,

Can you tell me, does this only occur for Confluence-only users, or do your regular JIRA users also experience the problem?

There is a recent bug at [CONFCLOUD-55961](https://jira.atlassian.com/browse/CONFCLOUD-55961) that states Confluence-only users are being directed to Service Desk portal automatically. There is no current workaround for that other than accessing Confluence directly via the Application Switcher.

Kind Regards,  
Shannon

comments: author: Suman Debnath
body: Hi Shannon,

This occurs for Confluence-only users. The users have not be assigned JIRA access yet.

Thanks,

Suman


author: Shannon S
body: Suman,

Thank you for your confirmation.

In that case, it is definitely the bug that I mentioned. At this time, you'll need to have them access Confluence directly by selecting from the Application Switcher, until the issue is resolved.

Thank you for your understanding!

Kind Regards,  
Shannon
getting json using example api confluence
Asked by Alex Wade:

Hi im trying to grab the json from the api call using a rest curl. here's my command

```
curl -D- -u admin:admin -X GET -H "Content-Type: application/json" http://localhost:8080/rest/api/2/configuration
```

I got this from here

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

and here's my output (replacing actual info with "hiding")

```
HTTP/1.1 200 

X-AREQUESTID: hiding

X-ASEN: hiding

Set-Cookie: hiding

X-Seraph-LoginReason: OK

Set-Cookie: hiding

X-ASESSIONID: hiding

X-AUSERNAME: hiding

Cache-Control: no-cache, no-store, no-transform

X-Content-Type-Options: nosniff

Content-Type: application/json;charset=UTF-8

Transfer-Encoding: chunked

Date: Thu, 20 Jul 2017 19:04:35 GMT



{"votingEnabled":true,"watchingEnabled":true,"unassignedIssuesAllowed":true,"subTasksEnabled":true,"issueLinkingEnabled":true,"timeTrackingEnabled":true,"attachmentsEnabled":false,"timeTrackingConfiguration":{"workingHoursPerDay":8.0,"workingDaysPerWeek":5.0,"timeFormat":"pretty","defaultUnit":"minute"}}
```

Now when I use a \|python -mjson.tool afterwards, it tells me no JSON object could be decoded. Its frustrating that the example isn't working with the code, is there some way to grab the only the JSON at the end? Thanks for any help


Answers:
author: Stephen Deutsch
body: Same thing as <https://community.atlassian.com/t5/JIRA-questions/getting-json-using-example-api-confluence/qaq-p/612725>, just remove -D-
Moving Anchors from one page to another
Asked by Alexander levy:

Hello,

for my confluence site, I am using documents which will need to be refreshed from time to time. I am using anchors because another page needs to lead to a specific section in this document. these documents are being imported (msft word). Is there any way to "copy and paste" or do something similar the anchors from one document to the "refreshed" document?


Answers:
author: Shannon S
body: Hello Alexander,

From what it sounds like you want to do, I do not believe anchor macros might be the best suggestion for you. The way they are added will maintain the anchors you originally create, so it's not as easy to move them and update to the refreshed document.

Have you considered using [Excerpt Include macros](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html)? This macro allows you to include bits from other pages, and the content will be updated when it is updated at the source.

Kind Regards,  
Shannon
Fixing confluence attachments URL
Asked by JamieHands1989:

Any URLs that appear in my activity feed in JIRA relating to confluence attachments are incorrect. Here is an example:

[http://jamieandjess.synology.me:8090//download/attachments/2457654/Mia-persona?version=1\&modificationDate=1500563466565\&api=v2](http://jamieandjess.synology.me:8090//download/attachments/2457654/Mia-persona?version=1&modificationDate=1500563466565&api=v2)

How can I fix the // after 8090, as removing one of these gives a correct URL. I'm suprised Atlassian haven't picked this up.


Answers:
author: JamieHands1989
body: I have tried changing the confluence base url to a deliberately incorrect one for a test:

<http://jamieandjess.synology.me:8090/confluence> as the base url gives a download url of [http://jamieandjess.synology.me:8090/confluence//download/attachments/2457654/Mia-persona?version=1\&modificatio...](http://jamieandjess.synology.me:8090//download/attachments/2457654/Mia-persona?version=1&modificationDate=1500563466565&api=v2)

comments: author: Accounting Go2Group
body: What about the URL in the Application Link itself?


author: JamieHands1989
body: No trailing // their either i'm afraid. Thanks for the suggestion.


author: JamieHands1989
body: yes, there is no "/" from the base URL. One of the first thoughts I had. I did find that it was posted as a bug once before but Atlassian refused to fix it on the grounds that IE8 support was being dropped and the "//" wouldn't pose an issue for modern browsers.

Not accurate though, as it doesn't work on Edge, Chrome or Safari


author: Timothy
body: Just checking if you have recmoeved the training "/" from your Base URL.

comments: author: JamieHands1989
body: Thanks,
multiexcerpt and multiexcerpt include macros
Asked by Christopher Juda:

I have a Confluence source page that I am trying to pull information from to populate on 2+ other (separate) pages.

I am trying to accomplish this with the multiexcerpt and multiexcerpt include macros - I create the source content as a multiexcerpt and then add multiexcerpt include macros to the pages/locations I want the source data to appear on.

When I first set these up everything pulled through fine and populated in the multiple locations/pages, but as I modify content on the source page, it is not updating to the linked pages.

Am I missing someting or not applying the macros correctly? I have tried to close down and refresh and save severaltimes, but no luck.

Any help/suggestions would be much appreciated!


Answers:
author: Aleksandr Zuevich
body: Hi Christopher,

have you checked the 'Disable Caching'?

comments: author: Christopher Juda
body: Thank you Aleksandr! I missed this on the settings for the macro. I checked the box and it is working now. Appreciate the help!


author: Kim Vo
body: Hello,

I am having the same issue that Christopher had. I disabled caching on my browser, but the macro is still not making the updates. Is there anything else that can be done to enable this feature to work?

Thank you in advance!
confluence page
Asked by Latoshica Williams:

When you upload pictures to your page and others cannot see the pictures but you can what is causing this?


Answers:
author: Christo Mastoroudes _Adaptavist_
body: Hi Latoshica,

One possibility is that if the picture is linking from another space where you do have access permissions but the other users don't, then that would mean that they can not see the attachment.

Try uploading the picture directly from your storage device.
Help with site search in Google Analytics (Confluence Cloud)
Asked by Susan Ostreicher:

I'm using the [Analytics for Confluence Cloud](https://marketplace.atlassian.com/plugins/com.addonengine.analytics/cloud/overview) plugin, and I connected it with a Google Analytics account. I also followed these steps to track site searches in Google Analytics:

Go to **Admin** \> **View Settings**

**Site search tracking:**On

**Query parameter**: queryString,searchQuery.queryString

**Site search categories:** On

**Category parameter**: key,searchQuery.spaceKey,where

Are these incorrect, or am I missing some other information? Google Analytics is tracking site views, but not site searches (even though I know I've searched the site several times over the past week.)


Answers:
author: Susan Ostreicher
body: For anyone who might come across this, I learned that the problem is due to a bug in Confluence where search data isn't being sent to the add-on:

<https://ecosystem.atlassian.net/browse/CE-1096>

Hope to see it resolved soon!

comments: author: Russell Shirley
body: Thanks I also voted for the bug to be corrected


author: Susan Ostreicher
body: Just wanted to share with anyone who's interested that this bug in Confluence is finally fixed! The [Analytics for Confluence Cloud](https://marketplace.atlassian.com/plugins/com.addonengine.analytics/cloud/overview) plugin is now sending site search data to Google Analytics as expected.


author: mfabris
body: Hi all

The bug might have been fixed, but I still have troubles tracking my search queries.

Is the configuration reported by Susan on top of this ticket still actual?

Is there anything else I have to do to see the search parameters?

I am using the "Google Analytics in Confluence" plugin.

Thank you for any help in this one, I am working on it since a while and I still do not see my search terms.

comments: author: Susan Ostreicher
body: [@mfabris](/t5/user/viewprofilepage/user-id/721747), it sounds like that might be a different plugin from the one I'm using. Have you tried contacting the vendor for support?


author: mfabris
body: Thank you for the quick response!

I doubted so, I must be with a different one.

I will surely contact the vendor, it's in their interest to make this improvement.

thanks Susan!


Tags: addon-com.addonengine.analytics

confluence-cloud
Label section in page
Asked by sachit dhal:

Hi, I want to add label or tag to a heading in a page such that it is searchable. For example, if I add label "next release" to a paragraph in a page then searching next release takes me to that page and that paragraph in the page.


Answers:
author: Jack Brickey
body: Unfortunately you can't add labels to bits of text. Labels only apply to the page. Moreover, while you can add a comment to text unfortunately comments are not searchable. This would be a nice feature for sure. I have to wonder if there's not a suggestion at Jira.atlassian.com already.


Tags: label
Upgrade or rather transfer (license) from 5.5x to 6.x
Asked by Libor_Laubacher:

Hi. We installed 6.x Confluence SEN-XXXXXX using 10 starter license to test etc. Now we'd like, transfer the license from old one to new one in order to shutdown the old Confluence 5.x. Not sure how to proceed here.

I don't really want to post the license

The old details: SEN-YYYYYY

I don't really want to post the numbers and names here. Please let me know.

Thanks.


Answers:
author: Libor_Laubacher
body: Thanks Gonchik \& Ann, I shall give that a go! :)


author: AnnWorley
body: The license key can be viewed and copied from <https://my.atlassian.com>.

Nothing will happen if the old 5.x server is up for an interim period with the same license applied in Production. (I am anticipating that concern because it is commonly asked about.)


author: Gonchik Tsymzhitov
body: Hi!

Just check your old license can be install to Confluence 6.

If your license didn't expired, you copy and paste into a new Confluence.
Resource consumption on server viewing huge files?
Asked by Rene Wegener:

Hi guys,

there's something I've been thinking about recently and would love to hear your oppinion. In a project we're gonna upload some huge files to Confluence, e.g. large word docs or Excel files of some MB including Macros and stuff.

I'm now wondering about how much this might affect the server and what's the best way to work with these files. More specific:

1) If people tend to view files in their browser, does this affect the server or is the whole rendering stuff done on the browser side?

2) If uploading these files causes a lot of resource consumption e.g. for indexing, would it make more sense to store large files on some cloud storage and just reference them (knowing they won't be available in search then)?

Thanks for your suggestions and best regards, Ren?


Answers:
author: AnnWorley
body: For 1:

The rendering is done partly on the browser and partly on the server. The server and the browser will cache the file after first view so subsequent views are less resource intensive.

You can avoid rendering on the server by disabling the view file macro so that users have to download the attachment to view it.

For 2:

The upload process itself can use a lot of server memory, but you should be able to do it without impacting the users if your Java heap settings are reasonable.

You can turn off indexing of attachments if you become concerned about the indexing taking too many resources.

The Cloud storage idea is a sound strategy. If you ever change the storage location you will have to update a lot of links, however.

I look forward to hearing what other Community members have experienced with large attachments in their environments.

comments: author: Rene Wegener
body: Thank you very much Ann,

great answer with in-depth explanation!

Regards, Ren?
confluence user directory
Asked by Anderson Hsu:

Would it be possible how often does user directory synchronise ? Thanks a lot.

![df.jpg](/t5/image/serverpage/image-id/3407iF7E8A6C4ACC2E9E3/image-size/large?v=v2&px=999 "df.jpg")


Answers:
author: Nic Brough -Adaptavist-
body: That's once an hour (3,600 seconds). You can change it in the directory settings.

comments: author: Anderson Hsu
body: If you adjust the inverval, such as 1800 seconds or more quickly, is there performance question or other relately problem, thanks a lot.


author: Nic Brough -Adaptavist-
body: Every synchronisation requires some resources to run, and obviously, the bigger the synchonisation set, the longer it is going to take.

This is generally not a problem for Confluence. The only time I've seen a synchronisation cause performance issues for other users is when it was full of errors.

1800 should be absolutely fine
Confluence sends hourly emails on tasks assigned to a user
Asked by Amanda Johnson:

For some reason, users who have tasks assigned to them in Confluence are receiving the same task reminder every hour, on the hour, six days ahead of the task's due date. This is obnoxious and unnecessary, but there's nothing in the existing Confluence documentation on how to configure task notification settings. Has anyone encountered and solved this problem?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Maybe you have a Confluence add-on like **Task Reminder**? If you are not the admin, you might have to reach out to the admin to check the configuration.

comments: author: Amanda Johnson
body: You were righty-O, thanks so much!
I want to write " Feedback or commit " on top of Commets section how I can do?
Asked by Lakshman:

![commets.PNG](/t5/image/serverpage/image-id/3390iE34A7B85423E2B70/image-size/large?v=v2&px=999 "commets.PNG")


Answers:
author: Stephen Deutsch
body: You can put something like this in your custom HTML:

```
<script> AJS.toInit(function() { $("#comments-section").prepend("<h3>Feedback or commit</h3>"); }); </script>
```
Logging for notification emails in Confluence
Asked by Markus Raab:

Hi all,

is there any chance to look into an email logging directly within the Administrator view in Confluence?

I want to improve (reduce) the amount of notification emails in our organization, as our people get spammed too much by Confluence.

To do so I need to analyze the actual emails going out from Confluence.

Any chance to do that?

And do you have any further advices about the email spamming itself?

Confluence Server 6.2.4

No Email Storm already installed: <https://marketplace.atlassian.com/plugins/confluence.extra.noemailstorm/server/overview>

best

Markus


Answers:
author: AnnWorley
body: If you turn email debug logging on you can tail the atlassian-confluence.log and see when email is going out. The instructions for the elevated logging are on [Mail Troubleshooting](https://confluence.atlassian.com/confkb/mail-troubleshooting-180847235.html)

There's no place to view email activity in the admin console; there is a queue for stuck mail and email errors in the admin console under Mail Queue.


Tags: email

log

notification
Blog posts macro doesn't display image in excerpts mode
Asked by Florian Obradovic:

We have a space called Company with a blog posts macro which agregates all blog posts from all spaces.

If i select content type to display "excerpts" it doesn't display images that are within the blog posts - it only shows the image url.

This happens for blog posts from other spaces. Images are displayed only when the blog post is within the same space as the page with the blog posts macro.


Answers:
author: Shannon S
body: Hello!

This behavior is expected, as reported in [CONFSERVER-23752](https://jira.atlassian.com/browse/CONFSERVER-23752). Have a look at [the following feedback](https://jira.atlassian.com/browse/CONFSERVER-23752?focusedCommentId=286192&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-286192) from our developer:

*We believe that an excerpt is essentially a short text only sample that provides the user a sense of what is on the page. It should not contain any images or styling.*

*When someone inserts* a blog posts*macro with the "excerpts" parameter, it should:*

1. *in the absence of any excerpt macros on the page, provide a text only summary of text on the un-rendered version of* page*, starting from the beginning (which it is currently doing)*
2. *in the presence of an excerpt macro, provide a text only summary of the body of the excerpt macro (which is is not currently doing)*

Let us know if you have any further questions about this.

Kind Regards,  
Shannon

comments: author: Florian Obradovic
body: Ah ok, thx Shannon.

Too bad, a kind of preview like when u post a link in facebook would be great.

But what I really miss is filtering out the URLs of image which making no sence at all in a post, even it's an excerpt. IMHO :)


author: Mike McNamara
body: Yes, the ability to exclude the URL text from the excerpt would be great. I understand not including the image, but if the macro encounters an "http", it would be nice to exclude that string from the excerpt.
Restrict view of updates
Asked by Aur?lia Feyssaguet:

Is there a way to prevent users from viewing all space updates (e.g. updates made on another user profile)? Actually, I would like them to view some specific updates only (e.g. updates made on pages only).


Answers:
author: AnnWorley
body: Under what circumstances are the updates to user profiles displayed to users?

Where do you wish to restrict updates viewed by users? I am guessing on the dashboard.

The All Updates feed on the dashboard will show users any updates on pages they have permission to view. The [Activity Stream Gadget](https://confluence.atlassian.com/doc/activity-stream-gadget-218275789.html) and the [Recently Updated Macro](https://confluence.atlassian.com/doc/recently-updated-macro-139519.html) both allow you to filter updates.

You could change the site home page to a space of your choosing (could create one for this) and change that to the landing page for the instance: [Configuring the Site Home Page](https://confluence.atlassian.com/doc/configuring-the-site-home-page-138140.html). Then you could use the Activity or Recently updated macro with the filters of your choosing.
Content disappears after insertion of a user macro
Asked by Mathias_Sch?tzl:

I've created a user marco to display some HTML content created by a javascript function. But as soon as I insert this user marco into a page, the content following this user marco will not be shown anymore.

![ProblemUserMacro.png](/t5/image/serverpage/image-id/3378i9753723D23C1F8A9/image-size/large?v=v2&px=999 "ProblemUserMacro.png")

Here's the configuration of the user macro:

![ConfigUserMacro.PNG](/t5/image/serverpage/image-id/3379iEE9364328A796CFE/image-size/large?v=v2&px=999 "ConfigUserMacro.PNG")

The javascript function puts the content into the shown div "Liste". So there shouldn't be a problem with non-closed HTML-tags?!

Can anybody give me a hint, what I'm doing wrong here?


Answers:
author: Stephen Deutsch
body: My guess is that the CSS of Alfresco is interfering with Confluence's CSS. Your best bet would probably be to insert the content inside of an iframe.

If you don't want to do that, you could look inside the Developer tools for the text "Testcontent" in the "Elements" tab, and it should show you where it is located on the page (it might be hidden behind some part of the imported Alfresco content), and you may have to adjust the Alfresco CSS as necessary.

comments: author: Mathias_Sch?tzl
body: I've checked the whole HTML content of the page via the console, but I can't find the text "Testcontent". So it seems this text isn't rendered at all.

I've also checked the CSS for any Alfresco stylesheets, but there aren't any on this page. We only import content from Alfresco, but no stylesheets.

But one thing is notable: When I reload the page, for a short moment I can see the Text "Testcontent", which then seems to be overwritten by the content provided by the user macro.


author: Stephen Deutsch
body: Hi Mathias,

Do you get any errors in the browser console?

comments: author: Mathias_Sch?tzl
body: Hi Stephen,

No, there are no errors logged


Tags: user-macro