youngmon/atlassian-qna huggingface dataset:
How can I see the context (within a page) of a resolved comment in confluence?
Asked by Dave Merrill:

On a large confluence page, I've provided a number of comments, on different paragraphs and table cells.

The page owner has resolved many of them, and I can see each resolved comment ( ...?focusedCommentId=12346789 ...).

But I can't tell what text the comment applied to. I guess I could reopen the comment for each one of these, but that doesn't seem like a great workflow (and is likely to confuse the person who resolved).

Am I missing something?

Thanks,

Dave


Answers:
author: Shannon S
body: Hi Dave,

On the page, when you click ... \> Resolved Comments, you can see all the resolved comments including the text that it applied to. There's no need to individually reopen the comments here.

Can you let us know if you're able to see the comments that way, or why this might not be efficient for you?

Kind Regards,  
Shannon

comments: author: Dave Merrill
body: Thanks, Shannon.

Looks like my description was unclear.

The problem is that the text I selected isn't sufficient context to remind me. In this case, "No" is the value in the table cell. See below:

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

What would be really helpful for this case is if I could select the resolved comment, and then the confluence page would scroll to the text that was the subject of the comment (ideally highlighting that text).

Does that make sense?

Thanks,

Dave


author: Shannon S
body: Hi Dave,

I thought about this this morning and I came to the same conclusion this is what you might have meant. :) I went ahead and created a ticket for that feature request:

* [CONFSERVER-53179](https://jira.atlassian.com/browse/CONFSERVER-53179)

I've also linked it to a more prevealant feature request about listing all the resolved comments in one place so it will be seen when that is being addressed. Please place a vote on that issue to help show the interest in the feature and provide any personal feedback you have, as well.

I've commented a link to this question in a comment on the Atlassian side so the developres can come back to this if they have any questions.

Thank you again for the suggestion!

Kind Regards,  
Shannon


author: boardtc
body: This is a real gap. If someone resolved your comments then you can't click back to find where in the text that comment referenced. I open the page in duplicate side-by-side tabs, select the text in the resolved comment list, and then do a search in the other window! Talk about unproductive, it's ridiculous,
Where do I type Database user, password and Database name?
Asked by Alexander Sopov:

Hey everyone! I have a simple (yet hard to resolve) question.  

I'm developing an addon for Confluence Cloud and I'm using the atlassian-connect-express JS library to do so. My question regards the config.json file.  

In production, where do I specify the username, password and database name for the addon middleware to use?

"production": {  
"port": "$PORT",

"localBaseUrl": "[https://xxx.xxx.c](https://colosseo.qamcom.se)om",

**"store": {**   
**// You won't want to use the memory store in production, or your install**   
**// registrations will be forgotten any time your app restarts. Here**   
**"type": "mysql",**   
**// Again, a PaaS host like Heroku will probably provide the db connection**   
**// URL to you through the environment, so we tell atlassian-connect-express to use that value.**   
**"url": "$DATABASE_URL",**   
}  
}  

<br />

in the example provided, the only values are "type" and "url" to connect to database. Where do I provide username and password to the database?

thank you all in advance

- Alexander


Answers:
author: Lars Olav Velle
body: Perhaps a better place to ask is <https://community.developer.atlassian.com> :)

-Lars

comments: author: Alexander Sopov
body: Sorry, thank you =)
How secure is using Cloud Confluence?
Asked by Sadaf Mufti:

1. How to enable two factor authentication?

2. What kind of security controls are implemented?

3. How can one configure for enforcing policy related to strong password \& account lockout for multiple failed attempts?


Answers:
author: Shannon S
body: Hello Sadaf,

In addition to the information that Quentin sent you, which should answer many of your concerns, I'll provide a bit more details.

1. Two factor authentication is not currently available for Cloud. I created a feature request some time ago to suggest adding this: [ID-256](https://jira.atlassian.com/browse/ID-256). As an alternative, if you have G Suite for your company, you [could consider enabling this](https://confluence.atlassian.com/cloud/integrate-with-g-suite-744721642.html). Then, you can use the built-in two factor that Google has and use it to sign in.
2. Your second questions can likely be answered by the documentation that Quentin sent, but if you have any additional questions after reviewing that, please let us know!
3. Information regarding setting a password policy [is available from our site](https://confluence.atlassian.com/cloud/set-password-requirements-744721633.html). This is only possible to control when you have [verified a login domain](https://confluence.atlassian.com/cloud/domain-verification-873871234.html). If you have not, then it will automatically use the Atlassian ID password requirements. Lastly, when a login attempt is exceeded, then the user is locked out until they reset their password.

I hope this clarifies a few of your concerns, but do let us know if you have anything further you'd like to ask.

Kind Regards,  
Shannon


author: QuentinB
body: Hello, you can find some answer in the Atlassian documentation :

* <https://www.atlassian.com/trust/faq>
* <https://www.atlassian.com/trust/policies/cloud-security>
* <https://confluence.atlassian.com/confeval/other-atlassian-evaluator-resources/atlassian-cloud-security>

Regards


Tags: security
Blocking the flood of notifications
Asked by Abhay Patil:

Many occasional users of Confluence have complained that they get too many notifications - whenever anyone does anything in the space they may have visited once. Of course one options is for them and go "stop watching" whatever is listed under their watchlist. The other option is Email setting. But there it is not at all clear how to stop notifications. It has an option to receive daily report - does that mean that if yo choose that option the "immediate emails" would stop? Is there any way to configure your setting such that you would receive a notification ONLY WHEN someone tags (mentions) you?


Answers:
author: Thomas Schlegel
body: Hi Abhay,

if you don't want any information except if you watch a page or get notified when someone mentions you, uncheck all options in the email settings dialog.

Subscribe to daily updates doesn't remove the regular notifications, as far as I know.


author: Abhay Patil
body: Thanks Thomas.

While I love notifications, many users complained of too many of them. And, I am intrigued because these email settings are not intuitive. The opnly option that has the potential to flood your mail box is "Show changed content" and I do hope that unchecking it would solve the problem.

On the other hand, normally when one opts for one consolidated "daily update" it tacitly means that one is choosing it over "immediate updates". But it appears that's not the case.
Need Help Recovering & Recreating corrupt H2 Embedded DB
Asked by Daniel Healy:

Hi All,

So I am happy to report that my H2 Embedded DB is corrupted (yeah, I know, I know, evaluation purposes only). I was able to use the H2 Recovery Tool to extract and create a .SQL file from the data. However, recreating the DB with the SQL script has not been so successful. I was not able to successfully use RunScript from the set of H2 tools to create it. Instead, I had to use DbVisualizer to create the simple DB, "h2db", open and run the SQL file against the PUBLIC schema. Is that correct? I took the new db file, h2db.h2.db, and dropped it in my database directory, set the ownership and permissions correctly, but Confluence produced a fatal error when starting now:

Unable to start up Confluence. Fatal error during startup sequence: confluence.lifecycle.core:mananagedjobs (Start and stop the Managed Scheduled Jobs) - org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only

Any help would be appreciated. I have a MySQL Server ready to migrate the DB to a production quality DB if I can recover this data.


Answers:
author: Lars Olav Velle
body: Confluence runs daily backup jobs (if you enabled it) Have a look in confluencedata/backups/ and use the zip-file to recover Confluence.

-Lars

comments: author: Daniel Healy
body: I wish there was a backup, but nope :(
Confluence XML-RPC no longer functioning. REST API alternatives for adding space permissions
Asked by Griffin Idleman:

We upgraded Confluence to version 6.2 and can no longer get the XML-RPC calls to work. We need an alternative for adding user permissions to spaces through the REST API. Currently the rest API does not support this functionality.

Does anyone have any ideas or suggestions?


Answers:
author: Stephen Deutsch
body: It doesn't appear that XML-RPC has been removed yet, so maybe there's something else that's causing the XML-RPC calls not to work. Alternatively there is a JSON-RPC API that works similarly that you might be able to get to work. The best thing to do is to install the [REST API Browser](https://marketplace.atlassian.com/plugins/com.atlassian.labs.rest-api-browser/server/overview) so you can see all methods available to you.


Tags: rest-api
Page properties report macro looks okay in preview but doesn't work when published.
Asked by Valentin Margreiter:

So whenever I try to use the Page Properties Macro in Confluence, everything shows up nice and fine in the previews, but as soon as I hit that publish button, I get the following error: Error while fetching page properties report data: HTTP/2.0 403

My problem here is, as I am using the cloud solution, I don't really have the possibility to tweak the macros.

Does anybody know if this is being tracked?


Answers:
author: Shannon S
body: Hi Valentin,

Thank you for reporting this to us!

This is caused by a current bug in the New Look: [CONFCLOUD-56632](https://jira.atlassian.com/browse/CONFCLOUD-56632)

Please have a look through that bug ticket with information on the issue and do let us know if you have any questions!

Kind Regards,  
Shannon
Log Anlayzer not showing Error,Warn other messages
Asked by indra:

Hi Team,

By mistake we deleted logs directory at /var/atlassian/application-data/confluence. So we created logs directory with the same privileges it has before and restarted confluence. After restarting confluence when we saw in LagAnalyzer there are no messages at all despite of having some warn, error,info mesages in atlassian-confluence.log. It is scanning atlassian-confluence.log but not displaying any info, error,warn messages in log analyzer. Please help us in resolving this issue.

Thank you

Indra.![Screenshot_2017-08-09_19-38-47.png](/t5/image/serverpage/image-id/4343i59F11BFE8ADBAE5E/image-size/large?v=v2&px=999 "Screenshot_2017-08-09_19-38-47.png")


Answers:
author: Nic Brough -Adaptavist-
body: Did you restart the Confluence service after recreating the directory?
How can I retrieve liked pages using Confluence Cloud API ?
Asked by Boris Gougeon:

Hi,

I want to write a small script that retrieves most liked pages on our Confluence spaces.

I haven't found any solution yet: are informations about likes available through Confluence Cloud REST Apis ? Can I see if a page has likes ?

There is no reference to it in <https://docs.atlassian.com/confluence/REST/latest/>

Thanks for your reply,

Boris


Answers:
author: Stephen Deutsch
body: You should be able to find it under https://\<confluence_url\>/rest/likes/1.0/content/\<content_id\>/likes

Unfortunately there doesn't appear to be any way to search for likes, so you seem to be limited to calling each page one by one :(


Tags: jira
view-file preview not updating after page updated via REST
Asked by M_S_:

I have updated a larger number of Confluence pages to use the view-file macro to show a PDF attachment. This was done via REST as it was basically a find-and-replace through many pages.

The updated pages show the placehoder for the view-file, but no actual preview - more a generic symbol/image.

Is this a known issue caused by the update via REST? Can Confluence be triggered to generate the previews without going through each page?


Answers:
author: M_S_
body: I used REST to iterate a larger set of similar pages to update/harmonize these. Specifically, the update transitioned to the new view-file macro.

Only the storage format was updated. The pages already had the files attached.

The REST request was basically a PUT on .../content/{pageid} with body

{ id = 2424927, type = "page", title = "...", version = {{ number = 3, message = macro content migration }}, body = {{ storage = { value = ... , representation = storage } }} }

so this should be nothing unusual.

However, looking at the page shows this:

![confluence-preview-issue.png](https://community.atlassian.com/t5/image/serverpage/image-id/4725i612EEE4DDD901409/image-dimensions/241x232?v=v2 "confluence-preview-issue.png")

However, some actions may suddenly trigger the preview thumbnail to render, for example, click edit page (do not actually change anything) +preview + cancel.

The issue is true for all pages involving many different pdfs (and actually also some jpegs).


author: AnnWorley
body: Please let me know more:

* The REST syntax you used to update the pages.
* Were the pages previewing a different PDF before or did you attach the PDF with REST?
* Are all the pages displaying the same PDF?
* Please attach a screen shot of the placeholder.

Please verify that you are using the view-file macro and not the older viewpdf macro. The new File Preview macro is called view-file in the storage format, which can be confusing, as you can see from: [How to replace old View File macros with the new File Preview macro](https://confluence.atlassian.com/confkb/how-to-replace-old-view-file-macros-with-the-new-file-preview-macro-720419365.html)

I was not able to find a known issue for the REST update causing an issue with previewing files, though I did find this bug: [viewfile not able to view pdf document](https://jira.atlassian.com/browse/CONFSERVER-20223). I am hopeful that the bug is not relevant to this case. If you manually add the same PDF to a test page, can you preview it then?
Hello. I need a help in the confluence rest API calls. I want to update my confluence page via curl.
Asked by Achyuth Nagaraj Balasubramanian:

When I tried to delete and add attachments, I am able to do it but create and update is not working. The sample request I am giving is the following,

CURL.EXE -k -u admin:admin -X PUT -H 'Content-Type:application/json' -d'{"id":"28607879","type":"page","title":"new page","space":{"key":"TPNET"},"body":{"storage":"value":"\<p\>This is the updated text for the new page\</p\>","representation":"storage"}},"version":{"number":2}}' <https://xyz.com/rest/api/content/28607879>

The response I get is nothing, it just says no error and at the same time it doesnt update the page also. The same with create. But I am able to get the json using the url I specify in the request. Please help me with the issue. I also tried to include a prefix \\ before each of my " but then too I just don't get any response and error. It's just coming outta the request with nothing.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Achyuth Nagaraj Balasubramanian](/t5/user/viewprofilepage/user-id/1144694) ,

please take a look to the following documentation page <https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/#update-a-page>

Fabio
How to add some entries in the Pages-tree of the space pointing to different anchors in same page?
Asked by Hananya Beck:

Hi

I have single page named 'Getting started' with some anchors inside (marked by 1 in the screenshot).

I need to add this entries under the appropiate entry in the Pages-tree (marked by 2 in the screenshot).

How i can make it?

**I don't want to divide the text to seperate pages.**

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


Answers:
author: AnnWorley
body: You may add the links to the anchors on the sidebar as web links beneath the page the anchors are on, but the links won't be indented under the main page as child pages would be; please see Topic1 and Topic5 under "Page with TOC" in the screenshot:

![Screen Shot 2017-08-15 at 11.00.42 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/4702i0C8E1B559CFF0021/image-dimensions/225x384?v=v2 "Screen Shot 2017-08-15 at 11.00.42 AM.png")

Our options are limited because we are [deprecating custom content in the space sidebar](https://confluence.atlassian.com/confcloud/blog/2017/05/deprecating-custom-content-in-the-space-sidebar).


Tags: confluence-cloud
Some indentations are loose when publish the page?
Asked by Hananya Beck:

Hi

I indent the Heading1 elements one time,

the Heading2 elements two times and so on.

I used for indent the button marked in the picture below.

But when i publish the page **all** the indentations were **losed**.

1) How i can save my manual indentations?

2) Is there an automatic way to define how many indent each HeadingX will be?

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


Answers:
author: Shannon S
body: Hi Hananya,

Can you please confirm the version of Confluence Server or Cloud that you are using? I'm aware of an issue in Cloud ([CONFCLOUD-56300](https://jira.atlassian.com/browse/CONFCLOUD-56300)) where indentations are being stripped, and I want to see if the two are related.

Kind Regards,  
Shannon

comments: author: Hananya Beck
body: Hi  

I am using the Cloud version.


author: Shannon S
body: Hananya,

Thank you for confirming that. In that case, you are indeed affected by the bug.

Please add a vote to the issue as it helps us keep track of the number of users who have run into this problem and help prioritize our efforts.

At this time, there is no workaround, so go ahead and watch that case so we can update you as soon as there is more information.

Kind Regards,  
Shannon


author: Hananya Beck
body: The CONFCLOUD-56300 is partial same,  
but allready in view mode (after publisihing) the indention is destoyed.


author: Hananya Beck
body: 1) Already in view mode (after publishing) the indention is destroyed.

2) The priority is not only Low but **Major**.


author: Hananya Beck
body: Tnx for your answer.


author: Shannon S
body: Hananya,

A priority of a bug gets set via our [Bug Fixing Policy](https://confluence.atlassian.com/support/atlassian-cloud-bug-fixing-policy-206865884.html). When a bug is first created, the priority is usually set to low and is raised by the development team depending on the votes and comments as well as the severity of the bug.

Let me know if this is clear or if you have any questions!

Kind Regards,  
Shannon
How can I add `space` character in the "name" of xhtml-macro parameter?
Asked by lcristianiim:

There is the following xthml-macro:

```
<xhtml-macro name="pinkbutton" class="ro.fortech.att.confluence.macro.PinkButtonMacro" key='pinkbutton'>
  <description>PinkButton</description>
  <category name="confluence-content"/>
  <parameters>
    <parameter name="label" required="true" type="string"/>
    <parameter name="link" type="string" required="true"/>
  </parameters>
</xhtml-macro>  
```

And also the following class:

```
public class PinkButtonMacro extends FortechBaseMacro {
    private static final String MACRO_BODY_TEMPLATE = "components/pinkbutton.vm";

    @RequiresFormat(Format.View)
    public String execute(Map<String, String> params, String body, ConversionContext conversionContext) throws MacroExecutionException {
        Map<String, Object> context = MacroUtils.defaultVelocityContext();

        putParamIfExists_EmptyTextIfNot(params, context, "label");
        putParamIfExists_EmptyTextIfNot(params, context, "link");

        return VelocityUtils.getRenderedTemplate(MACRO_BODY_TEMPLATE, context);
    }
```

What I want is to replace the parameter name "label" to "Button label" and "link" to "Button link". The problem occures in the \`execute\` method because of the params.

Is there a way to get the params if there is a space character in the xhtml-macro parameter name?


Answers:
author: Stephen Deutsch
body: As far as I know, parameters cannot have spaces. Most of the time dashes are used instead, so button-label and button-link. If you want a different name to appear in the editor window, then you'll need to include it in the .properties file. See the example here for more details:

<https://bitbucket.org/resah/confluence-macro-tutorial/src/d3b508ea01a78abdfb0a482a1bd3e477bb4be123/src/main/resources/?at=default>

comments: author: Dong Park
body: Hi, the link is no longer working. Could you explain how I can accomplish this? Thank you.
How to edit attachment file other than Office file
Asked by K.secher:

i want edit attachment file other than Office file, for example :

.sql file, .txt file ...


Answers:
author: Nic Brough -Adaptavist-
body: You probably want to associate the file types with different applications in your operating system settings.

comments: author: K.secher
body: Confluence not manage .sql or .txt file with attachment file editor ?


author: Nic Brough -Adaptavist-
body: Which attachment file editor are you using?


author: K.secher
body: I think we're not talking about the same thing. After file upload on

confluence space, i want to write on the .sql, .txt file.

I take a screenshot to illustrate :![capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/4344i8445510B2369FD73/image-size/large?v=v2&px=999 "capture.PNG")

on the .xls file i can modify but i can't with .sql file.


author: Nic Brough -Adaptavist-
body: Ok, that's the office functions recognising the file type and giving you a quick link for it. It can't know what you might want to edit other file types with.

Have a look in the marketplace - there's some add-ons for adding and configuring these (and even editing in-line)


author: K.secher
body: Ok i'm going to look for.


author: K.secher
body: i have not found on marketplace.
Can't find Child Pages after Confluence rolled out new UI
Asked by Loretta Cheng:

All the Child pages from beyond 2 levels have disappeared after Confluence rolled out the new UI.

For example, we had the following pages in the following structure:

Product Management\> Feature Logic\> "Pick up" logic

but after the UI changed, we could only see as far as

Product Management\> Feature Logic

Is anyone else having the same issue?


Answers:
author: AnnWorley
body: Loretta, I understand child pages are not showing since the new Confluence UI was implemented on your Cloud instance.

Please attach a screenshot of where they are not showing as expected (I assume the pages are still on the instance, or you would have mentioned they were gone).

comments: author: Alan Schmoll
body: Hi Ann,

I just posted a "Discussion" on a related topic. One of the child pages I was working is no longer accessible. Also ALL of the images in the entire confluence doc (parents and children) are now no longer visible.

Appreciate any thoughts you may have on that here or on the discussion thread I started.

Thanks!


author: Loretta Cheng
body: Hi Ann,

Looks like this has now resolved itself over the weekend.


author: Alan Schmoll
body: Hi Anna,

Yes, my issue has now resolved itself as well.

Thanks!