youngmon/atlassian-qna huggingface dataset:
Scroll Viewport redirection
Asked by Amit Kapoor:

How do we redirect links like the following that used to work before we started using Scroll Viewport : [http://\<serverURL\>/display/\<spacekey\>/\<Page1\>]()

These are new links to redirect to now that Viewport is in place:  
[http://\<serverURL\>/\<spacekey\>/\<Page3\>/\<Page2\>/\<Page1\>]()  
This link goes to depth of 3. We have links for higher depths. How do redirect such links?

Here, Page 2 is parent of Page 1

and Page 3 is parent of Page 2.

We are using Confluence 6.13.4 (latest) and Scroll Viewport, Scroll Image Map, and Scroll Versions.


Answers:
author: roman
body: Hi [@Amit Kapoor](/t5/user/viewprofilepage/user-id/1201387)

thanks for creating a direct support ticket with K15t as well as posting your question here. I will copy the answer that resolved the question for you.

You probably want to enable auto-redirects. See the last section here:  
<https://help.k15t.com/scroll-viewport/latest/viewport-configuration-guide-128650318.html>

Try adding a single group to the Viewport configuration and then access the Confluence URL as anonymous. Now the redirect should work as expected in Viewport.

Cheers,  
Roman.


Tags: atlassian-marketplace

confluence-server

scroll-viewport

server
Problem to restore page
Asked by ????? ?????:

I have restored the deleted page, but it did not appeared - neither in the root of Space nor anywhere else. And simultaneousely it disappeared from trash.  
Where can I find it?


Answers:
author: Victor Mutambuki
body: Xahha,

The restored page is parentless. Go to Space Settings --\> Content Tools --\> Reorder Pages. Then move the page to a parent page.

Victor

comments: author: ????? ?????
body: Thank you for your answer, Victor!  
Yes! It is exactly what I tried to do. But the problem is that I don't see the page in the structure - neither in the root of Space nor anywhere else, so I can not remove it and place according to hierarchy.   

I simply don't see it!  

I even tried to seek the page in the space - no results.


author: Victor Mutambuki
body: Xahhan,

Are you the space admin? Did you go get the page from the trash? If so, the pages should be at the root of the space. From there, you can reorder it accordingly.  

<https://confluence.atlassian.com/doc/delete-or-restore-a-page-139429.html>

Victor


author: ????? ?????
body: Thank you, we from the beginning did everything exactly in according to the instruction, and I am space admin. But no results.  

And at last my colleague find it by seek!  
The page has restrictions for viewing (not mine - her's) - may be it was the reason why I did not see it.  

In my opinion it is rather strange as I create this space and Iam admin of the space.  

Thank you for your assistance anyway.  


author: Jonathan Smith
body: Removing my answer since you found it :)

Even though you are an admin, content can be hidden from us.

- Jonathan
How can I link confluence calendar to our work calendar?(Thunderbird and Outlook)
Asked by Veronika Hegedus:

Hi,

I would like to know if there is a way to link the confluence calendar together with our work calendar used at Oracle via Thunderbird and Outlook. I am mainly interested to know if I add an event into the confluence calendar, does it automatically book the same time slot in the work calendar too?

Thank you

veronika


Answers:
author: Davin Studer
body: No it does not automatically add it to your other system. You must setup a process to Synchronize the calendars via the CalDAV protocol. The below page recommends using [CalDAV Synchronizer](http://caldavsynchronizer.org/).

<https://confluence.atlassian.com/teamcal/subscribe-to-team-calendars-from-microsoft-outlook-251005307.html>

If your email system is Exchange you could switch to the [Outlook Calendars for Confluence](https://marketplace.atlassian.com/apps/1217554/outlook-calendars-for-confluence?hosting=server&tab=overview) app and it does automatically add to the exchange calendar.

comments: author: Veronika Hegedus
body: Thank you Davin
How can I create a file and write data to it in Confluence using scriptrunner ?
Asked by Koen Jans:

I use a scriptrunner script job to collect data into a csv format.

How can I write that data into a file on the Confluence server ?


Answers:
author: Davin Studer
body: You could use the [java.io.FileWriter](https://docs.oracle.com/javase/8/docs/api/java/io/FileWriter.html) class. Something like this should work.

```
FileWriter myFile = new FileWriter("/path/to/file.txt");
myFile.write("Stuff");
myFile.close();
```


Tags: confluence-server

scriptrunner

server
Synchrony fail with NullPointerException at first request
Asked by Guido J?kel:

I try to enable Collaborative Editing, but it's not working. I checked different things, but it seems to be no network communication problem.The JVM with Synchrony is successfully lauched, but die on the first requst which is reported by an HTTP-RC 500.

```
20190628-091910.283 INFO [ListenableFutureAdapter-thread-13] [] [DefaultSynchronyConfigurationManager] [Collab editing plugin] Synchrony response (500): Could not verify AppID/Secret for real-time collaboration service at endpoint: http://127.0.0.1:8091/synchrony/v1/apps/secret
20190628-091910.284 WARN [ListenableFutureAdapter-thread-13] [] [DefaultSynchronyConfigurationManager] [Collab editing plugin] Response message for Synchrony-aff9ab3c-a799-37ee-888a-79e6af399f99: Internal Server Error
```

Following [this guide](https://confluence.atlassian.com/confkb/could-not-verify-appid-secret-for-real-time-collaboration-service-969518720.html), I confirmed that the application seems to fail to interact with the database because the key's in table BANDANA are not found in SECRETS .

Until yet, I was not able to configure the logging to write down something. But by help of

```
# kill $(pidof -o 38490 java) && java -classpath <path_to_confluence_sources>/ROOT/WEB-INF/packages/synchrony-standalone.jar:/usr/share/jdbc-mysql/lib/jdbc-mysql.jar -Xss2048k -Xmx1g -Djava.net.preferIPv4Stack=true -Dsynchrony.database.url=jdbc:mysql://mysql.dnb.de.test:03306/jiraT -Dsynchrony.database.username=**** -Dsynchrony.database.password=***** synchrony.core sql
```

I was able to launch Synchrony in a shell. The Confluence Synchrony Watchdog will detect this within seconds and will restart the pairing. As the next request arrives, the Synchrony application bail out with an NPE:

```
WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: medley.core, being replaced by: #'medley.core/boolean?
WARNING: Inst already refers to: #'clojure.core/Inst in namespace: schema.core, being replaced by: #'schema.core/Inst
Exception in thread "main" java.lang.NullPointerException
at synchrony.config$load_config_from_env.invokeStatic(config.clj:182)
at synchrony.config$load_config_from_env.invoke(config.clj:164)
at synchrony.core$_main.invokeStatic(core.clj:31)
at synchrony.core$_main.doInvoke(core.clj:30)
at clojure.lang.RestFn.applyTo(RestFn.java:137) at synchrony.core.main(Unknown Source) 
```

Please, How to trace down what's failing here?


Answers:
author: Daniel Eads
body: Hey Dr. Guido J?kel!

I've noticed you've got a ticket in our support system about this issue and have been working with a support engineer already. In case we find a resolution for you that's useful to others, I'm keeping an eye on your ticket. Feel free to post any details you want to share here once the case is solved, otherwise I'll post a generalized fix for anybody else experiencing this issue that finds this question from search.

Cheers,  
Daniel


Tags: confluence-server

server

synchrony
Migrate Sharepoint to confluence
Asked by siva kedari veerla:

How do i migrate Sharepoint to Confluence (version above 6.0)


Answers:
author: Shannon S
body: Hello Sivakedari,

Thank you for contacting us about this. Confluence is not a replacement for Sharepoint, since Sharepoint is more of a file sharing app and Confluence is a wiki. Therefore, there's no direct migration path for it.

For tips on migrating your files that you are storing within Sharepoint to Confluence, have a look at my colleague Hermance's recommendations below:

* [Sharepoint Migration](https://community.atlassian.com/t5/Confluence-questions/Sharepoint-migration-to-confluence/qaq-p/597341)

Let us know if you have any questions about this.

Regards,

Shannon
Can we enable Microsoft Streams
Asked by SamVijay:

Can we enable Microsoft Streams: Where by searching of the meta data Key word , it shows that section of the video

"Microsoft Streams"

Regards,

Sam


Answers:
author: Shannon S
body: Hi Sam,

Thank you for contacting us. I'm not familiar with Microsoft Streams but I believe this might be some kind of video format?

There's nothing to be enabled for this, but you can embed videos within Confluence. Have a look at my colleague Diego's response:

* [Integration with Microsoft Streams](https://community.atlassian.com/t5/Confluence-questions/Integration-with-Microsoft-Streams/qaq-p/1013343)

Note that as you're on Confluence Cloud you won't be able to enable the HTML macros, but he recommends an iFrame macro for this.

Let me know if you have any questions about any of this.

Regards,

Shannon

comments: author: SamVijay
body: Hi Shannon,

I want to know can we search the content available in the Videos using IFRAME?

Regards,

Sam


author: SamVijay
body: Hi Shannon,

Microsoft Stream is a APT from Microsoft

Similar like You tube/ Uploading live steams

\*If we type the key word this will bring/ show the particular section of the videos where that key word is available in that video or others videos.

\*Like : Meta data can be used to search

Regards,

Sam


author: SamVijay
body: Hi Shannon,

Please find the Link : <https://docs.microsoft.com/en-us/stream/portal-search-browse-filter>

Deep search on what's said in the video {#toc-hId--1414584678}
--------------------------------------------------------------

When searching for videos, Stream finds videos based not only on the title and description, but also based on what's being said in the video. From the search results based on the transcript of the video, you can jump to the exact point in the video that has the information you are looking for.

1. From **Browse** \> **Videos** \> **Search for videos** or the **Search** box at the top of Stream, type a word or phrase to search for.

2. When you see video search results with a time code (for example, @00:10), click any of the lines to start playing the video from that specific point in time.


author: Shannon S
body: Hello Sam,

When you embed a website in an iFrame, the functionality in the website would be the same, provided the host (Microsoft) doesn't prevent certain actions from being accessed via iFrame.

If any feature is not working on Microsoft Streams while in iFrame, then you can contact Microsoft about it and they'll let you know what the issue might be.

Regards,

Shannon


Tags: cloud

confluence-cloud
why space not found even no restriction?
Asked by Chee Yee Sin:

can anyone help me on why the space created with no restriction still no able to view by others?


Answers:
author: Vasiliy Zverev
body: Restrictions are to restrict view/edit permission on selected pages in space.

To view space user need browse space permission.

Namely you should add view permission to users / user groups.

See this for detailed information.

comments: author: Chee Yee Sin
body: ![space tool.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/59274i0DAB04296E0DC464/image-size/large?v=v2&px=999 "space tool.JPG")

i found the setting Space Tool at left bottom for Permission.
Display single issue on JIRA macro in storage format
Asked by Sam Barber:

I'm trying to define the [JIRA issue macro](https://confluence.atlassian.com/display/CONF55/JIRA+Issues+Macro) in [storage format.](https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html)

I've been able to get the macro to display but can't see the element I need to add to display as a single issue.

So far I have:

    <ac:structured-macro ac:name="jira">  
      <ac:parameter ac:name="columns">key</ac:parameter>  
      <ac:parameter ac:name="jqlQuery">key = RO-123</ac:parameter>  
    </ac:structured-macro>

I think I need an extra element such as "display" but can't find it documented anywhere - something like.

    <ac:parameter ac:name="display">single</ac:parameter>  ?

Many thanks,

Sam


Answers:
author: Davin Studer
body: Get rid of the jqlQuery parameter and put in this.

```
<ac:parameter ac:name="key">RO-123</ac:parameter>
```

comments: author: Sam Barber
body: Thanks so much! It's obvious when you know how!


Tags: cloud

confluence-cloud
How do I know if Collaborative editing is enbled
Asked by Jan Revis:

I need to be able to detect if collaborative editing is enabled in a custom action I have created. The only method I can find is to use AJS.Meta.getBoolean('shared-drafts'), however, that meta field is only available in the page context. Is there a way to detect if shared drafts are enabled in the JAVA API?


Answers:
author: Bill Bailey
body: Quickest way that requires no admin access. Open the same page in two browser tabs, Then edit both. You should now see two icons with your initial in the upper right.

comments: author: Jan Revis
body: Hi Bill. Thank you for responding. I'm actually looking for a programmatic way to do it. I have an add-on that would potentially have different behaviors based on whether shared drafts was enabled. The problem with using javascript is the shared-drafts meta tag is only available in a limited number of contexts (page view and edit).


author: Bill Bailey
body: Well is there a way to pull the admin console settings as a java object, and then enable your javascript on the setting of that object?

It is a global setting for the confluence-collaborative-editor-plugin. But I did a quick search and not finding something in the API docs (often happens). Maybe someone smarter than me can help?


Tags: confluence-server

server
OVH Email config is not working
Asked by Jonas Wei?:

Hi,

I'm trying to connect with my OVH email post box. I'm using the following configuration at server.xml:

<br />

\<Resource name="mail/GmailSMTPServer"  
auth="Container"  
type="javax.mail.Session"  
mail.smtp.host="ssl0.ovh.net"  
mail.smtp.port="465"  
mail.smtp.auth="true"  
mail.smtp.user="BN@xx.de"  
password="PW"  
mail.transport.protocol="smtp"  
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"  
/\>

The error in my confluence dashboard is:

An error has occurred with sending the test email:  
com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 535 5.7.1 Authentication failed

I already tried different configurations but sadly none of them worked... Would be great if you could help me to fix this :)

Thanks and best regards

Jonas


Answers:
author: Daniel Eads
body: Hey Jonas, welcome to the Community!

I noticed your port is set to 465 - this generally means SSL/TLS is enabled. Assuming that is indeed the case, you'll need to update that line as well:

```
mail.transport.protocol="smtps"
```

That lets Tomcat know to use smtp**s** (secure) instead of the unencrypted protocol you'd normally expect over port 25.

You might have already seen the [Configuring a Server for Outgoing Mail](https://confluence.atlassian.com/doc/configuring-a-server-for-outgoing-mail-151078.html) document - it provides steps for setting up an SMTP server through Confluence's web interface. I didn't see anything specific about your configuration that indicated you might need to do a manual setup, so it might be worth exploring backing out your changes to server.xml and configuring through the web interface instead. Just ensure the **Use TLS** option is enabled if you go through the web interface.

Cheers,  
Daniel

comments: author: Jonas Wei?
body: Hi Daniel,

Thanks for you fast response! Everything works now - it was my mistake a typo. However the online configuration doesn't work (I think its still this bug: <https://jira.atlassian.com/browse/CONFSERVER-43330>) but I could configure everything successful with JNDI.

Regards  
Jonas
Confluence shutting down after a minute
Asked by Igor:

After I launch confluence, it loads up the CPu up to 100% and then dies withina minute.

I cannot access it through the web during that time. Afterwards it gives me a 503 and there are no confluence related processes running.

**I checked the crontab - it is empty.**

atlassian-confluence.log:

```
2019-06-26 16:28:47,475 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.ConfluenceListableBeanFactory] doGetBean Returning cached instance of singleton bean 'apiFinderFetchMethodsClassLoaderAdvisor'
2019-06-26 16:28:47,475 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.ConfluenceListableBeanFactory] doGetBean Returning cached instance of singleton bean 'apiFinderFetchMethodsTxAdvisor'
2019-06-26 16:28:47,475 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.ConfluenceListableBeanFactory] doGetBean Returning cached instance of singleton bean 'clusterManager'
2019-06-26 16:28:47,476 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.ConfluenceListableBeanFactory] doCreateBean Eagerly caching bean 'scheduledJobDAO' to allow for resolving potential circular references
2019-06-26 16:28:47,476 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.ConfluenceListableBeanFactory] invokeInitMethods Invoking afterPropertiesSet() on bean with name 'scheduledJobDAO'
```

catalina.out

```
2019-06-26 16:28:37,087 DEBUG [localhost-startStop-1] [com.atlassian.config.DefaultHomeLocator] getHomePath Found confluence.home property with value: /var/atlassian/application-data/confluence
2019-06-26 16:28:37,154 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.DefaultBootstrapManager] afterConfigurationLoaded Trying to populate setup configuration if running with Cluster mode
2019-06-26 16:28:37,195 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.DefaultBootstrapManager] isDriverPresent Check if the com.mysql.jdbc.Driver database driver is in the classpath.
2019-06-26 16:28:37,230 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.ConfluenceListableBeanFactory] doGetBean Returning cached instance of singleton bean 'com.atlassian.confluence.plugin.PluginsClassLoaderConfigurationListener#0'
2019-06-26 16:28:37,230 DEBUG [localhost-startStop-1] [atlassian.confluence.setup.ConfluenceListableBeanFactory] doGetBean Returning cached instance of singleton bean 'confluenceLoggingConfigurationListener'
```

<br />

I tried all the options that I could find online, like editing the logs or giving it more ram, but got nowhere. One day, it stopped working at random.

I didn't install any additional plugins.


Answers:
author: Igor
body: I hope somebody knows what I could look into.


author: Kurt Klinner
body: [@Igor](/t5/user/viewprofilepage/user-id/638292)

Which version of confluence are you using?

comments: author: Igor
body: I'm running Build number 7901

Can't find the precise version without accessing Confluence through the web


Tags: confluence-server

server
Why does Confluence use class="auto-cursor-target"
Asked by Bill Bailey:

This is more of a curiosity.

I often have to edit the storage code for a page to clean up various items. I noticed awhile back that the following code would appear, I guess as a spacer around some objects?

```
 <p class="auto-cursor-target">
???? <br/>
</p>
```

It seems the be filtered out when the page is displayed. Does anyone know why Confluence is inserting this code?


Answers:
author: Davin Studer
body: I believe it has something to do with collaborative editing as I have only seen that when Synchrony is turned on.

comments: author: Bill Bailey
body: That could be. I know I can delete them, but they are reinserted. The only reason I care is it creates extra phantom space in the editor view that causes me to think it is empty p tags or something like this:

```
<p>
???? <br/>
</p
```


author: Christian Czaia _Decadis AG_
body: You can manually edit the HTML, get rid of the auto-cursor-target and add a \<span\>\</span\> instead.

Directly save the page and don't touch or edit it again ant the \<br\> is gone. We use this for example for pages that we include in other pages.

This will not help everyone but at least it works :-)

comments: author: PiginSpace
body: This was helpful because after replacing \<p class="auto-cursor-target"\> \<br/\>\</p\> with \<span\>\</span\>, I saw what auto-cursor-target was doing. It managed the space between macro elements, in my case the structured macro element for an ac=info element.  

Actually, without auto-cursor-target I got a full paragraph height of white space after a note, so when I had consecutive notes it didn't look good. With auto-cursor-target the white space following the note was reduced, which looked much better. This works for all sorts of elements it seems, like checklists.   

I'd wondered why I sometimes had a lot and sometimes a little white space after these macro elements. Now I know that when I want the standard paragraph white space following, I'll check that I have \<span\>\</span\> in the code, and when I want reduced white space following, I'll make sure that I have the auto-cursor-target paragraph. Great find! Thank you.


author: Brian Packham
body: auto-cursor-target is like a virus. Once it gets into your page is messes up the formatting and it is very hard to get rid of


Tags: confluence-server

xhtml
Can I give read only access to JIRA users without confluence license?
Asked by Purujeet Parida:

I have a JIRA software license for my team of 50 users. I only need about 10 of them to have ability to edit confluence pages. Can I allow the other 40 users to be able to see pages without any editing permissions? Does that mean I have to buy Confluence license for 10 people or 50 people?


Answers:
author: Mikael Sandberg
body: Hi [@Purujeet Parida](/t5/user/viewprofilepage/user-id/3175906),

Welcome to the Atlassian Community.

You can enable anonymous access, see [Setting Up Public Access](https://confluence.atlassian.com/confcloud/setting-up-public-access-934718729.html) for instructions on how to do it.

comments: author: Purujeet Parida
body: Thanks Mikael! Turns out that for my use case, licensing all users is the only option.


Tags: cloud

confluence-cloud

read-only
I need to save a doc that i received via email to a specific confluence folder w/o saving to desktop
Asked by Jennifer Calhoun:

I often receive client files via email or sftp that I am not supposed to save on my local computer. I have been instructed to save these in each client's specific confluence file space instead. How can I navigate to and save to confluence using the save as function on each document? Most important part of this - I do not want to save this document anywhere prior to saving to confluence - no extra steps please as we are working for efficiency.


Answers:
author: Davin Studer
body: The ones in your email will first need to be saved to your local machine or a location accessible to you such as a network share. There is no way around that. You cannot go straight from an email attachment into Confluence.

As for the ones that are SFTP'd if you are able to open of the SFTP location in Windows Explorer or Finder if you are on a Mac you can simply drag them and drop them onto a Confluence page and they will upload.

comments: author: Jennifer Calhoun
body: Thank you Davin - that is a great tip for the SFTP. I am really disappointed about the email one though :( Hopefully confluence finds a way to accommodate that soon.


Tags: cloud

confluence-cloud