youngmon/atlassian-qna huggingface dataset:
The given range isn't in document
Asked by AustinS:

We're using TinyMCE in AUI dialog2 in Confluence user plugin. When we removed the content from editor box (whenever cursor is not in editor box) and try to add content then it's showing errors:

1. The node to be replaced has been already deleted from the document

2. The given range isn't in document

Looks like when cursor focus not on the editor, it could not get the range from the editor? My guess is that dialog is stealing the focus as this is a common behavior in dialogs created using HTML/CSS.

Do anyone know how to disable its code that steals the focus.

Anyone has any idea about it, any help would be greatly appreciated.


Answers:
author: Daz
body: Hi [@AustinS](/t5/user/viewprofilepage/user-id/1151301),

AUI's Dialog2 does not appear to allow disabling its auto-focussing behaviour. With that said, it only sets focus once the dialog2 element is shown.

I am interested to know when this error is occurring, because I suspect it may not be a problem with AUI's components.

This sounds to me like a problem with TinyMCE and expectations. If the user's focus is not in the TinyMCE editor at the point when you execute your code, and your code is expecting there to be a range, there will be no range, since there will be no text selection, as that requires the user agent to be focussing the field.

At what point in time does this error occur? Does it happen the moment you open the dialog, or some time thereafter?

I don't think I have enough detail to understand the problem completely, but my thoughts would be: in order to replace content in the TinyMCE editor at any point in time, regardless of the user's focus, you probably want to be using TinyMCE's DOM operations -- <https://www.tinymce.com/docs/api/tinymce.dom/tinymce.dom.domquery/> -- as opposed to text selection operations.

If I've misunderstood the problem, let me know. If you can provide more context, such as code, or a video demonstrating the problem, that may help further.

Finally, this seems like a plugin development related question. We have a dedicated community for developers at <https://community.developer.atlassian.com/>. In future, if you ask questions there, they will likely be answered faster, since there are more developers watching those forums.

Cheers,

Daz.


Tags: aui

tiny-mce
Expand sidebar by default
Asked by Chad Walker:

When you initially open a space the sidebar is collapsed. I would like to make the sidebar expanded by default.


Answers:
author: Krisztian Kovacs
body: Hi there,

the sidebar should remember your preference unless you delete cookies in your browser. Whether the sidebar is collapsed or not, depends on the user's preference.

However, I found another thread that talks about forcing the sidebar to be collapsed, perhaps you can do the opposite: <https://community.atlassian.com/t5/Answers-Developer-Questions/Collapse-Sidebar-by-default-Default-Theme/qaq-p/501971>

Cheers,   
Krisz

*P.S.: if you think my answer is useful,*   
*please consider accepting it.*   
*I'm going for the high score.*
Links in Recently viewed pages not working
Asked by Timothy Wilson:

In confluence on any page I type 'gr' to bring up the 'Recently viewed pages' dialog. When I click any of the links in the dialog I expect the browser to take me to that page, but what actually happens is that the dialog is closed and the browser stays on the original page, as though I had just clicked a button to close the dialog.

This occurs in the current versions of Firefox, Chrome and MS Edge. This appears to be recently introduced javascript regression. The impact is that the very useful 'Recently viewed pages' dialog is effectively broken.

Does anyone know of a solution or whether this bug has already been reported?


Answers:
author: Timothy Wilson
body: This seems to have been fixed with 1000.0.0-a37fd8526ad as I can no longer reproduce.

comments: author: Hasnae
body: Indeed, I have been told that a fix got pushed last week. Thanks for reporting it !


author: Domenico Manzo _Actonic_
body: Looks like JS error:

![2018-01-29 10_40_24 - Confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/13462i8700917A8AB8DD34/image-size/large?v=v2&px=999 "2018-01-29 10_40_24 - Confluence.png")

comments: author: Timothy Wilson
body: Yup I can see that too, one logged error for each click on a link.

It's also worth noting that this issue is intermittent. I got one of the links to work on one page, but they're not working on another.


author: Hasnae
body: can you please mention which version of Confluence is affected ?

comments: author: Timothy Wilson
body: Confluence cloud.
>
> ### Confluence 1000.0.0-f3773b37dfe {#toc-hId-1592235161}
Import Cucumber report into Confluence from Jenkins
Asked by devfor qa:

Dear Confluence gurus!

We need to upload daily cucumber reports into Confluence, preferably preserving at least some of the coloring and formatting from the original Jenkins report.

Requirements:

Some confluence users do not have rights to Jenkins.

We cannot use a plug-in. We execute a Jenkinsfile (stored in git) to perform the report import into confluence.

I have tested just import the report as a zip file (with a timestamped report filename) to a report page, which works fine, with some minor formatting lost.

However that approach requires the end-user to download the whole zip down to hard-disk from Confluence, before being able to display the report.

I would rather the cucumber report shown directly in Confluence. Might not need be the whole report, but ought at least be an overview (html) report page.

Is this possible?

Thanks in advance for any ideas.


Answers:
author: Artem Plaksiy
body: Hi,

Any support for Jira server in the future?

Thanks!


author: Nick Iles _AssertThat_
body: Hi

We have a plugin which allows you to:

- create and manage BDD (gherkin ) scenarios in Jira

- Link the scenarios to user stories

- Integrate with test automation frameworks

- Uploads automated test results (cucumber.json) report into Jira

- Triage test runs in Jira

- Updates scenario status in Jira so you can see the test scenario status alongside each user story.

- traceability matrix

If you would like a demo please get in contact

<https://marketplace.atlassian.com/1219033>

Thanks

Nick

Marketplace Vendor


author: LeoDOD
body: Did you ever found a solution to this issue?


author: Hamed Gara
body: Hello, did you find any way to publish cucumber reports into confluence page ?


author: devfor qa
body: there was absolutely no response so I probably ask this as a question instead.


Tags: cucumber

jenkins

upload
plugin descriptors do not match
Asked by Cris Kinross:

When I try to upload a revision to an existing app, the marketplace shows the following error.

Add-on key in plugin descriptor (com.plugins.confluence.product_management_2.product_management_2) did not match existing add-on (com.plugins.confluence.product_management.product_management)

If I remove the "..._2" so that they match, atlas-run reverts to the previous version and does not contain the updates. Uploading the .jar file as an add-on in Confluence works perfectly. Cleaning files with atlas-clean does not solve the problem (updates still not incorporated without changing the key).  

Any suggestions?

Thanks,

CK


Answers:
author: Cris Kinross
body: This was my thought as well but updating the versions did not correct the problem. It seems to be something about the artifactId pointing to an old cache. Have tried clearing out the caches but that did not fix the problem.

Other suggestions?  
I appreciate the help,

Cris


author: Domenico Manzo _Actonic_
body: Have you tried to change the add-ons version?

Something like:

```
<version>1.0.1</version> to <version>1.0.2</version>
```
After upgraded our Jira node to 7.2 how can we sync Jira with confluence 2.2
Asked by Chen Touboul:

1. I upgrade my Jira **6.1.1** to **7.2** .  
what is the best way to upgrae **6.11** to **7.2** ?  

2. What is the right way to sync Confluence **2.2.2** with Jira **7.2** ?  
do i have to change Confluance version...

Please Help :)


Answers:
author: Nic Brough -Adaptavist-
body: You should upgrade Jira to 6.4, then 7.0 then 7.2 - see <https://confluence.atlassian.com/adminjiraserver/upgrading-jira-applications-938846936.html>

I am not sure what you mean by "sync" - you'll need to explain that. But I suspect you mean link them together so they can exchange some information such as issue reports. Confluence 2 is far too old to integrate with Jira 7. You should upgrade that to a supported version.


author: Chen Touboul
body: Hi Nic,   
Thanks for your replay, i'm really happy that **you** are here :)  
The issue is that the guy that i replaced (i'm the new guy) upgradeded Jira 6.1.1 to jira 6.4 and than to Jira 7.2.4 than i got into it and started to explore if that upgrade is the best (btw:i saw the 7.0 Ver' that Atlassian ask to upgrade from an old versions).   
My first question and most important , correct me if i'm wrong:  
Is it the right way to upgrade 6.1.1 to 6.4 and than upgrade to 7.2.4?  

The second question i have is that **we have** a pretty old Confluance **2.3.3** (not like i said before..).  
Since the last try to connect Confluence 2.3.3 with Jira 7.2.4 make a security issue but not explore enough yet to see if that cause from the versios gap..  
maybe you can bring more light about that as well or at list tell me whats the best way to connect Confluence 2.33 to Jira 7.2.4.

and last one if i can what in your opinion is the most stable version today?  

Regards,  
Chen :)  

comments: author: Nic Brough -Adaptavist-
body: No, as I said, it's 6.4 to 7.0 to 7.2, and yes you need to upgrade Confluence. All the versions on the download list are stable, so I'd simply go for the latest one.


author: Chen Touboul
body: Thanks a lot Nic, for your clear answer.  

Cheers,

Chen :)


author: Chen Touboul
body: Hi Nic,   

I have a question to ask cause i'm in the adge of this issue / process :)  

When i started working in my company, Jira server was already 7.2.4.  

The history of our Jira server was 6.1.1 (agile+core) and now its 7.2.4.  

I know its upgraded through 6.4 but not know if its goes through 7.0.0  

My question is how can i know if the upgrade of this Jira goes trough 7.0. version.  

Right know all looks good in 7.2.4 but i wonder if:  

a. There is an option to know (i don't know) if 7.2.4 upgraded through 7.0.0 version   
lets say...by some file or a something that i can check to approve that fact?  

b. If all looks good now what could be the impact for now/future in case that the guy before me didn't upgrade through 7.0.0  

c. Is it coast money to upgrade from 7.2.4 to the new latest version?  
someone told me that from 7.5 version we'll need to pay for license...is that correct?  

Regards,  
Chen :)


Tags: atlassian-support
getting ip address of client machine when trashing a page in confluence
Asked by david hidden:

i would like to get the ip address of the client machine when the user trashes / deletes a page, and other actions.

Post to -

How do I get hold of the HttpServletRequest? {#toc-hId-1788747674}
------------------------------------------------------------------

states Treat `ServletActionContext` as a bonus. If it's populated you can do neat things with it, but don't rely on it.

post -

How to Enable User Access Logging {#toc-hId--763409287}
-------------------------------------------------------

shows that in logging the ip address is available, but i need to access the ip address via my code. QUESTION IS : HOW DO I DO THAT?

your help is very much appreciated.


Answers:
author: david hidden
body: how about this...

RequestCacheThreadLocal !? that seems to have it when httpServletRequest does not.


author: Domenico Manzo _Actonic_
body: You have at least 2 possible options:

1. Add click hadler to all "Trash page" events using JavaScript. Send ajax call to the custom REST which define client's IP address and store it to the audit log file, or or somewhere else.  
PROS:

* easy to implement.

CONS:

* you cannot add such handler if user will remove page thru REST <https://docs.atlassian.com/atlassian-confluence/REST/6.5.2/#content-delete>
* programmatically page delete call cannot be handled

2. Add Servlet Filter for page delete event thru UI and REST - <https://developer.atlassian.com/server/framework/atlassian-sdk/servlet-filter-plugin-module/>

PROS:

* you can handle all trash page events thru UI and REST.

CONS:

* programmatically page delete call cannot be handled

comments: author: david hidden
body: thanks much for your response


author: Panos
body: Unfortunately events run in a separate thread, i doubt you can get the ServletContext. I can think of only one solution. Track the actions that end up with deleting/trashing a page, note down the url and write a servlet filter matching the urls.

comments: author: david hidden
body: thanks much for responding, i had that kinda thought, was hoping for something that already existed as the logging thing has the ip.


author: huzaifa saeed
body: Unfortunately, actions run in separate threads and get the ServletContext. may not be possible. One pragmatic solution is to track actions leading to page deletion/trashing, record the URLs, and create a servlet to clear out matching URLs, like a well-oiled [machine](https://tattoohutt.com/best-wireless-tattoo-machines/).


Tags: ip-address
Confluence space XML export issue
Asked by Anusha Iyer:

Currently I am supposed to do an XML export of 25GB space, Export is done.

As its an huge space download is getting aborted often. once the system is locket or VPN disconnected.

Cant sit a whole day in-front of system. Can anyone suggest me some other option to download the exported file from server/ or any other ways ?

NOTE : The exported file didn't saved on server export folder.

-

Anusha


Answers:
author: Domenico Manzo _Actonic_
body: You can download a backup file directly from "/opt/confluencehome/export". With the resume in case of connection failure, if you have the ssh access to the server, of course.


author: Nic Brough -Adaptavist-
body: You'll need to fix your network so you can transfer a file of that size.
How to add label to a text?
Asked by Andrei Li:

I want to make a table of content based on label. But I can't find the label function in Confluence.

I tried everything, read tutorials but there is no picture or video how to do it.

I found labels on Lynda and there is a field in a video but there is no such a field at my version on Confluence. I am running latest server version of Confluence.

Please, help.


Answers:
author: Nic Brough -Adaptavist-
body: The labels "field" appears when you click on the labels tag icon at the top of the page next to the name. Could you show us what you see there?

comments: author: Andrei Li
body: I have found it but it labels only a page. I want to label selected text.

I tried to select text and click label and then add a label but labeling applies only to the page not to selected text.


author: Nic Brough -Adaptavist-
body: Yes, that's correct, labels apply to pages, not bits of text.

You can comment on text from the page view, but labels are for pages.


author: Andrei Li
body: Thank you, Nic!

I thought that I am blind or something.

My task is easy I want to make a table of content of the page.

By any chance do you know how to make it?

I tried anchors but there is no macros that make a table of content using anchors.


author: Nic Brough -Adaptavist-
body: Use the table of contents macro. It does it automatically.


author: Domenico Manzo _Actonic_
body: Tiy can use Table of Contents Macro - <https://confluence.atlassian.com/doc/table-of-contents-macro-182682099.html>

Pay attention you should have "heading" elements to build TOC.

comments: author: Andrei Li
body: It has worked!

Great!

Many thanks to Domenico and those who answered.


author: Maarten Cautreels
body: Hi,

Could you share an example table of how you'd like it to look and be structured? It's not entirely clear to me what you are looking for.

Best,

Maarten

comments: author: Andrei Li
body: Here is my edit page. I want to add a label to selected text.

![2018-01-28_16-47-46.png](https://community.atlassian.com/t5/image/serverpage/image-id/13449i5127C5CCB633D925/image-size/large?v=v2&px=999 "2018-01-28_16-47-46.png")![2018-01-28_16-48-54.png](https://community.atlassian.com/t5/image/serverpage/image-id/13448iF11EE7AA8DD43892/image-size/large?v=v2&px=999 "2018-01-28_16-48-54.png")


Tags: label
How can i create folders for media files?
Asked by naime_surenkok:

Dear all,

I am a newbie in Confluence, and i want to create folders to manage the photos i am uploading to add in the pages, so that i can have more neat, tidy media folders. How can i do that?

Thanks in advance,

naime


Answers:
author: Sebastian Kleinholz
body: [@naime_surenkok](/t5/user/viewprofilepage/user-id/1181726), there are not really folders in Confluence. But you can just use a page with the functionality you are looking for.

1. Create a Page, Just give it a title not content. Save.
2. Tools -\> Attachments. Upload your media files.
3. Return to page view. Now the paper clip icon is visible.
4. Edit the page.
5. Press the icon for "Insert more content". Select "Other macros".
6. Now you can make your media files visible in a list. Select the "Attachment" macro.
7. For your need select the ++Gallery macro++. This will thumbnail all attached images.

See my screen shot of such a page with three audio files. I had no images at hand. Hope that was helpful.

![Screen-2018-01-27_21-51-04.png](https://community.atlassian.com/t5/image/serverpage/image-id/13440i129DE64E097DC6C5/image-size/large?v=v2&px=999 "Screen-2018-01-27_21-51-04.png")

comments: author: naime_surenkok
body: Dear Sebastian, thank you for the response, but actually, i do not want these folders visible to the watchers, i just want to keep them organized in the back stage. When i post, or want to edit them, i want them to be kept in folders, so i can organize neatly.


author: naime_surenkok
body: Okay i think i got the solution,

1- i have created a page named as "media folder"

2-following your suggestion, i am creating sub pages (folders)

3-And put all the media sorted in different pages

4-go to my original page and call these media from "search in other pages"

5-hide this media folder page from other users:)
How to check all anchors name I have?
Asked by EvgenS:

I have created quite a number of anchors in my space. Each time I want to insert a link to anchor I need to enter page name#anchor name.

While I remember page name(and can check it) I can't remember numerous anchors names and have to go to that page with anchor and open it in edit mode to check its name.

Is there other more quicker and convenient way to check all anchors names?


Answers:
author: Shannon S
body: Hi there,

Unfortunately there isn't an easier way I can think of to keep track of your anchors, besides maybe making a table or spreadsheet somewhere that keeps track of them?

I did find this feature request that may be able to help you:

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

It would help us if you can comment on that case with your ideas on how it would work better, and also vote on it and watch it for future updates.

Let me know if you have any questions!

Regards,

Shannon


Tags: anchor
Maximum size of ContentProperties stored with a page
Asked by Tuelle:

Hi,

The docs say that 32kb of ContentProperty can be stored with each piece of content. <https://developer.atlassian.com/cloud/confluence/content-properties/>

Is this the total amount per key value pair or the total amount of all key value pairs stored with a page (which I may not know, because different plugins or macros may store some own data). I just want to make sure that I don't run out of storage space when my custom macro stores data with a page.

Thanks

Tuelle


Answers:
author: Stephen Deutsch
body: Hi Tuelle,

I'm pretty sure it's 32kb per key-value pair, not 32kb for the page in total.

comments: author: Tuelle
body: Hi Stephan,

Thanks, I recently found the same information.


Tags: content

property
Confluence permission setting question
Asked by Anderson Hsu:

Dear all,

We found we can not change permission in confluence 6.0.3 in google chrome, but we can change permission setting in firefox as shown as below:

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


Answers:
author: Anderson Hsu
body: Dear partner,

When I update database (postgresql 9.3 to 9.4) , after try it can work now at confluence 6.0.1.

Thanks for your kindly assistance.

comments: author: Sebastian Kleinholz
body: I can hardly believe, that a DB upgade will fix a UI issue ... Have you asked atlassian support?


author: Sebastian Kleinholz
body: Following this [page](https://confluence.atlassian.com/doc/supported-platforms-207488198.html), I couldn't find any note related to yours (Confluence 6.6). In Atlassians Jira I found issue [CONFSERVER-39359](https://jira.atlassian.com/browse/CONFSERVER-39359) - similar to yours. But Atlassian recommended to open a ticket at the support.

Do you use Chrome out of the box or modified?

comments: author: Anderson Hsu
body: Dear Sebastian,

I found the error message at google chrome as shown as below: (I have ever open a ticket in confluence in 2016, but I think it maybe a bug, because it's normal in confluence 5.8.2 version in google chrome)

![setting2.png](https://community.atlassian.com/t5/image/serverpage/image-id/14132i08C07C24E3D3286A/image-size/large?v=v2&px=999 "setting2.png")
Can I import questions and answers from an external source
Asked by Shyamala. Dhakshinamurthy:

I need to import approximately 5000 questions and 14000 answers from an external application. I can load it into a SQL Server DB if needed. Along with the questions and answers I need to bring in the Topics/Tags and also the data about who is watching the questions. The users are already users of Confluence. ++Is there a THIRD PARTY TOOL/PLUGIN which will allow me to import the data. If not will the REST API allow me to import++

1) Questions

2) Answers

3) Topics/Tags

4) Details of watching a question


Answers:
author: Sebastian Kleinholz
body: [@Shyamala. Dhakshinamurthy](/t5/user/viewprofilepage/user-id/1181624), before you start realizing your plan, you should first think about how to organize 5000 questions. One page per question? Questions sorted alphabetically and then grouped together? Answers as page comments?

There is the Universal Wiki Importer, but you do not import from a wiki.

There is a importer plugins, but it focuses on document/html.

There are SQL connectors, but they don't arrange your data in new pages.

Best you give the REST API a try and some custom made logic to convert your data to useful pages.


Tags: confluence-app

questions-for-confluence