youngmon/atlassian-qna huggingface dataset:
How can I add JavaScripit (&lt;script&gt;) into the <head> tag of my login page?
Asked by Micha? Wiland:

I need to add JavaScripit (\<script\>) into the \<head\> tag of my login page. Can someone please provide some tutorial how it can be done?

It should be like this:

```
<head>...........

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

 <script>
???//some action
 </script>

..........</head>
```


Answers:
author: Amith Mathur _Appfire_
body: Hi [@Micha? Wiland](/t5/user/viewprofilepage/user-id/2407703),

Yes, you can customize the Confluence login page. You need to edit the login.vm file. This file content contains a mixture of HTML and Velocity. See [Velocity Template Overview](https://developer.atlassian.com/display/CONFDEV/Velocity+Template+Overview?_ga=2.251490054.1824753732.1544408100-230607409.1540785202). You can review [this page](https://confluence.atlassian.com/doc/customizing-the-login-page-163938553.html) for the details.

Thanks,  
Amith Mathur


Tags: developer

javascript
Not able to open "Open in editor"
Asked by David Ripper:

Hi guys,

I want to edit some macros but sadly when I click on the button "Open in editor" nothing happens. I tried both IE and Chrome browser.

Can anybody please help me with my issue?

Thank you in advance

David Ripper![Bez n?zvu.png](/t5/image/serverpage/image-id/39863iDF034C6D36B8D7C1/image-size/large?v=v2&px=999 "Bez n?zvu.png")


Answers:
author: Diego
body: Hello there David! This is indeed a strange behaviour.   
Could you clarify a few things for us?  

1- what macro are you trying to edit?  
2- are you still able to edit pages normally?  
3- when did you first notice this issue?  
4- is this happening in Confluence Cloud or Server?  

Let us know your findings!
Does the Confluence Read-Only mode work with Confluence Server?
Asked by Martin James:

Does the Confluence Read-Only mode that was released in 6.11 work with Confluence Server or does this only work with the Data Center?


Answers:
author: Manon Soubies-Camy
body: Hello [@mybucket2018](/t5/user/viewprofilepage/user-id/684169),

See this documentation page: [How to Make Confluence Read-Only](https://confluence.atlassian.com/confkb/how-to-make-confluence-read-only-311920317.html), there is a built-in feature in Confluence Data Center but some workarounds are suggested if you're running Confluence Server though.

Hope this helps!

- Manon


Tags: confluence-server

server
Disable Reset Password for Active Directory Users
Asked by sivakumaran sivashan:

Our confluence is configured to access by users who are in **Active Directory (AD)** and **internally created users**.

As we cannot reset the password for AD users in confluence, is there any ways to **disable password reset** option only for AD users and display a message that they cannot reset the password in confluence?


Answers:
author: Rambabu Patina _Appfire_
body: Hi [@sivakumaran sivashan](/t5/user/viewprofilepage/user-id/2414471), You can go through the article [How to disable users from changing their password](https://confluence.atlassian.com/confkb/how-to-disable-users-from-changing-their-password-218278022.html) may help you.

comments: author: sivakumaran sivashan
body: This will disable password reset option for both internal and AD users.

I want to disable password reset only for AD users or re-direct AD users to a different link.


author: AMS MMG
body: Has there been an update on this. We suffer from the same problem.

<br />

To me it seems a reasonable request to be able to configure it differently for users from Identity Providers that are writeable by Confluence and those who are not.


Tags: confluence-server

server
Are there issues defaulting a label on a new blog in 6.2.1?
Asked by David Brown:

I created a button to create a new blog entry in a specific space using the following code:

<https://wiki.????????.com/pages/createblogpost.action?spaceKey=MS>

This code works fine. I adjusted the code to default the label using the labelsString. I also tried labels-String but still got the following error:

The reference to entity "labels-String" must end with the ';' delimiter. (400)

I tried it with both labelsString and labels-String

[https://wiki.?????????.com/pages/createblogpost.action?spaceKey=MS\&labelsString=ms-ba-success](https://wiki.?????????.com/pages/createblogpost.action?spaceKey=MS&labelsString=ms-ba-success)

or

[https://wiki.?????????.com/pages/createblogpost.action?spaceKey=MS\&labels-String=ms-ba-success](https://wiki.?????????.com/pages/createblogpost.action?spaceKey=MS&labels-String=ms-ba-success)

Any ideas on why I am getting this error?


Answers:
author: Diego
body: Hello there David!   
I am not really sure on how to **replicate this behaviour** so we can start looking for a solution.

<br />

Could you share with here with the Community **how you created this button** ?   

Just take care to **not disclose** any sensitive information or something that your organization policies does not allow.  

Let us know if this was done using a macro, plugin or any other way!

comments: author: Doug Melvin
body: [@Diego](/t5/user/viewprofilepage/user-id/1188952) I was able to replicate something similar by simply pasting the equivalent URL into my page.

I am currently running Confluence 6.10.0 and while the post is created, using the following URL doesn't append the label (even after saving, no hidden field of labels are included or anything like that):  

\<base_URL\>/pages/createblogpost.action?spaceKey=\<KEY\>\&labelsString=\<label\>

and the same URL using \&labels-String also fails to add the label to the new page
Conflunce page reports
Asked by alvin balmes:

hi,

im trying to migrate my reports to a confluence page and auto update my data from other reports. Can I link one of my reports from a different web link to my confluence page and update it everytime i run my extract?

Similarly, can i create a chart and auto-update it as well?


Answers:
author: Shannon S
body: Alvin,

Could you let us know what add-on you're using to generate your reports and charts? This will help us to better answer your question.

Please also include your Confluence version.

Regards,

Shannon


Tags: atlassian-support
2 different types of text editors
Asked by Peter Trinh:

You might have noticed this, but there are 2 different types of editors with 2 different toolbars:

1. ![1.PNG](/t5/image/serverpage/image-id/39842i657B1FAF27CD26EE/image-size/large?v=v2&px=999 "1.PNG")2.

![2.PNG](/t5/image/serverpage/image-id/39843i8E37492D4C18DFC4/image-size/large?v=v2&px=999 "2.PNG")I really like the first one, as it produces much easier text editor, especially when it comes to markdown and code block:

This nicer view:

![1a.PNG](/t5/image/serverpage/image-id/39844i2D00162810BE66E4/image-size/large?v=v2&px=999 "1a.PNG")Versus this view:

![2a.PNG](/t5/image/serverpage/image-id/39845i28F1EFE414164BE3/image-size/large?v=v2&px=999 "2a.PNG")How can I convert all of the old editors to the nicer editor for all of my pages? Specifically, right now, when I create new "Blank Page", it goes to the older editor, and I want it to open the nicer editor.

Thank you guys.


Answers:
author: Stephen Sifers
body: Hello Peter,

The new editor does have a better, easier feel and use to it (as you stated). The simplified answer as to when/how do you have it rolled out can be found within a blog post:
>
> Rollout updates {#toc-hId-1849848865}
> -------------------------------------
>
> **We're constantly adding new features and improvements to the experience. To minimize disturbances, we roll changes out gradually, so you may not see them on your site until a few weeks after these dates.**
>
> 14 Dec 2018: A very small percentage of you who don't use the currently unsupported features will see this roll out to all your pages, new and old.
>
> If any older pages do contain unsupported content, they'll open up in the old editor and you'll be able to edit and publish them as per usual.
>
> 19 Jun 2018 : Updates start rolling out to new meeting notes (doesn't affect existing ones).
>
> 19 Feb 2018 : Updates start rolling out to new blog posts (doesn't affect existing ones).

Source document: [Confluence Editing Improvements](https://confluence.atlassian.com/confcloud/confluence-editing-improvements-945107733.html)

With this said, December 14th is the earliest day the new editor should be rolled out to all pages (without unsupported content) within Confluence.

I hope you find this helpful and it clarifies when the features will be fully released.

Regards,  
Stephen Sifers

comments: author: Laurentiu Padeanu
body: Hi, I still see both versions of editors on some pages, how can I use only the updated/new one? Is the usage of new vs. old one related to any "unsupported" features in pages? Thank you!


Tags: cloud

confluence-cloud
Can I use Confluence Cloud and Confluence server together?
Asked by Helen Gosper:

We currently use Confluence server for external technical documentation (available to 'anonymous', without a login) and internal collaboration (via login). Cloud is not suitable for our technical documentation due to the limitations regarding custom domain names. However, I can see advantages in switching to cloud for our internal usage.

Assuming these would behave as two totally separate instances, is it possible to configure an application link between the two?

Has anyone had an experience in running both of these together?


Answers:
author: roman
body: Hi [@Helen Gosper](/t5/user/viewprofilepage/user-id/544620),

yes, you can link Confluence Cloud to Server with application links. You should be able to search pages in Cloud Confluence from Server and vice versa in addition to having a link in the app switcher.

Are there any particular use cases you would like to achieve with having both products connected?

Related links in the Atlassian docs:

Link Atlassian applications to work together: <https://confluence.atlassian.com/applinks/link-atlassian-applications-to-work-together-785449117.html>.

Link to server products from Cloud: <https://confluence.atlassian.com/cloud/link-to-server-products-from-cloud-744721656.html>.

Roman.


Tags: confluence-server

server
Include Page macro does not retain SPACEKEY prefix
Asked by Jeff Olchovy:

I am attempting to create a document that uses multiple 'Include Page' macros that **all reference other documents in the same space**.

More often than not, these fail to work and I see the following error materialize in my view: "Unable to render {include} The included page could not be found."

When this happens, I edit my page and the macros such that I input the correct SPACEKEY prefix followed by a colon before the document title that I wish to include. After I do this, the macros work correctly.

HOWEVER, on subsequent page visits, the change to the macro does not persist and returns to its original state without the SPACEKEY prefix and the errors reappear.

Any help resolving this issue would be appreciated as I have to manually edit the page before every view or export.


Answers:
author: Stephen Sifers
body: Hello Jeff,

What you're describing with the Include page macro not keeping the Spacekey:page persistent seems to be a defect in the product. You should not have to edit the page and re-enter the SpaceKey each time you want to simply view the page.

With this said, there are 2 bug requests what have been placed which seem similar to the issue you're reporting. You can find the bug requests here:

[CONFCLOUD-56386](https://jira.atlassian.com/browse/CONFCLOUD-56386)[CONFCLOUD-64794](https://jira.atlassian.com/browse/CONFCLOUD-64794)

Please let us know if these apply similarly to the issue you're describing. If they do apply to your issue, please vote and watch them for future updates.

If they do not, I will open a support case on your behalf for this issue to be addressed.

Regards,  
Stephen Sifers


Tags: cloud

confluence-cloud
Notifications for new incoming link
Asked by vincelamm:

Is there a way in Confluence to to notify users watching a page about a newly set incoming link to that page?


Answers:
author: Fadoua
body: [@vincelamm](/t5/user/viewprofilepage/user-id/2413030)

If they are watching the page any changes made to it should trigger notifications. Did you check with them?

Best,


Tags: confluence-server

server
Confluence docker failing when --net=host
Asked by B G:

Hi Atlassian,

I am just setting up Confluence on my Synology DS916+ on docker. In the beggining, I just could not get it running for the life of me. I tried to install it through the synology docker UI, but it just would not start.

I then tried from SSH:

sudo docker run -v /volume1/docker/confluence:var/atlassian/application-data/confluence --name="confluence" -d --net=host atlassian/confluence-server

This however did not work either, same thing as trying from the UI.

I then tried without using host network, and it worked, I think. Using this in SSH:

sudo docker run -v /volume1/docker/confluence:var/atlassian/application-data/confluence --name="confluence" -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server

So my question is, why does it not work with --net=host? Am I doing something wrong probably?

I must admit, I would like some feedback on when to use --net=host, as that is what I have always been doing with all my other containers, so I am unsure whether I should go through my other containers and change something.


Answers:
author: Edwin Kyalangalilwa
body: Hi [@B G](/t5/user/viewprofilepage/user-id/2412769),

--net host is used when you'd like a number of containers inside the same network. So in your example, Confluence is utilizing the host network instead of Docker's network.
> So my question is, why does it not work with --net=host? Am I doing something wrong probably?

It's because the port isn't specified. You'll find that Confluence is running but the port isn't opened and forwarded on your host computer. Running both should fix your issue

```
--net host -p 8090:8090
```

This is a lot of times used when a container interacts with an application that's in the host network. Or if the Docker network doesn't have access to the internet and you'd like to start a container in a different network or without a network at all

```
--net none
```


Tags: confluence-server

docker

server

synology
How to stop mail nortification function
Asked by Kazuhisa Harabe:

Dear community member,

<br />

Is it possible to stop all e-mail nortification function?  
I always use check box on/off when I update the page, but I reluctant to do this.  

Best Regards,  
Harabe


Answers:
author: Nic Brough -Adaptavist-
body: Yes, tick the "minor change I don't want to notify people about" box at the bottom of the edit page.


Tags: cloud

confluence-cloud
The "Next" button is greyed out in step "Set up your database" when MySQL is selected
Asked by Boaz Konig:

There is absolutely no indication or error output anywhere to indicate why this button is greyed out.

I have started the installation using the bin installer: atlassian-confluence-6.12.2-x64.bin

According to your docs, this installer also installs the required JRE (but I have also tried to install Oracle JRE java version "1.8.0_191" with same results)

Operating system is headless Ubuntu server 18.10

I have installed MySQL Ver 14.14 Distrib 5.7.24, and configured it as per <https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html>

One Issue here which may be the source of greyed out "Next":

Your manual says to execute this command in mysql:

    GRANT ALL PRIVILEGES ON <database-name>.* TO '<confluenceuser>'@'localhost' IDENTIFIED BY '<password>';

....but nowhere did your installer gave me the password it created for the confluence user it created. So how must I know what it is?, and if I change it, how will Confluence know what it is?

Anyways, I have also installed this JDBC driver "mysql-connector-java-5.1.47-bin.jar" by copying it to "/opt/atlassian/confluence/WEB-INF/lib/" and making it executable: (NOTE that I had to create the directories /WEB-INF/lib/ as they did not exist)

sudo chown confluence:confluence mysql-connector-java-5.1.47-bin.jar  
sudo chmod 755 mysql-connector-java-5.1.47-bin.jar

I have also tried making confluence a sudo user:

sudo usermod -a -G sudo confluence

I did restart the confluence server after putting the driver file there.

It is also VERY unclear from this web page:

<https://confluence.atlassian.com/doc/configuring-a-datasource-connection-937166084.html>

if the steps on this web page is ONLY for a JNDI connection or if the steps for Tomcat etc should also be done for a JDBC connection.

So how do I get passed this issue?

How do I get what is bugging Confluence to keep that "Next" butt grey?


Answers:
author: Johan Soetens _Dumblefy_
body: Hey,

it's not very detailed in the documentation but you create the confluence database and username yourself. The statement is actually creating a user with a password of your choice.


Tags: confluence-server

server
How do you fully control picture input size of picture and frame?
Asked by vera:

How do you fully control picture input size of picture and frame?


Answers:
author: Nic Brough -Adaptavist-
body: For input, you can't do a lot - you are allowing your users to attach files, and that's about it. You can limit the size of attachments, but that's not a huge amount to do with picture size.

In the display-picture macros, you can frame images at a certain size though.
JIRA,Informatica and splunk tools
Asked by kavya sahu:

I have 3 years of experience in development.I recently changed my company. The new company gave training on JIRA ,Informatica and [splunk tools](https://mindmajix.com/splunk-tool "splunk tools"). Will these tools are help me to make my carrier growth better in development ?


Answers:
author: Nic Brough -Adaptavist-
body: Yes, they can, if you work with organisations that use them.


Tags: cloud

confluence-cloud
Best way to restrict a space to a few users
Asked by Kathy Kurth:

We're running Confluence Server 6.5  
I'm one of the Confluence admins

We have a group (Basic Access) that grants access to Confluence. Most everyone in the company is in that group and it gives them the basic user access to Confluence (adding/editing pages, attachments, blogs, and comments). Now, I need to restrict access for a single space to just a few users.

The way I see it, there are two ways of doing this.

Method 1:

1. Go to Space Tools \> Permissions.
2. On the Permissions tab, remove the permissions for the Basic Access group.
3. Add the people who should have access in the Individual Users section. Give them the permissions they need.

Method 2:

1. Go the the home page for the space and open the restrictions dialog box (click the red lock icon).
2. Click the drop-down and select "Viewing and editing restricted." This removes the access for "Everyone" except for me.
3. Add each of the users who need access to this space, choosing "Can view and edit" for each of them.
4. Apply the changes.

Method 1 is granting (and removing) specific permissions. Method 2 is granting (and removing) access to the space with or without edit authority. What I need to know is what am I missing? Are there other differences between the two methods? Is one preferable over the other? Any insights into this would be appreciated.

Thanks!

Kathy


Answers:
author: Kathy Kurth
body: Hi [@Kathy Kurth](/t5/user/viewprofilepage/user-id/1206793),

Not sure how many individual Users we are referring to here. With a small or big user base, it is recommended best practise to use groups over individual Users.

Weighing just the methods you detailed, first may be a little more cumbersome as we take each user and associate permissions to them, compared to the second approach.

Also, please understand that Space level permissions are enforced at a higher level and when we are considering the second approach, we are not really doing this at a space level but at a page level in which case the restrictions are inline with the Parent-child hierarchy of pages.

Have you thought about creating a new group that has all the Users having access to the space (which means this new group excludes Users restricted from accessing this space you are referring to) and using this group to have 'Can view and edit' when you take the second approach?

Thanks  
Kalyani

comments: author: Kathy Kurth
body: This is a special project that should only last around 6 months. The team has 7 people on it out of a total user base that's approaching 700.

IT likes groups that are more long-term. They prefer not to create them for little one-off projects.

You've given me a lot to think about. Thank you for all the info.

Kathy


Tags: confluence-server

server
How do you edit the TOC?
Asked by Tyler Barwick:

I inserted a TOC. Now there's little section called Table of Contents. I click edit and I don't know where to go. I looked it up in the Wiki and I'm totally confused. We just implemented it at my work and are forced to use it. Very little instructions. I have no clue what i'm doing


Answers:
author: Kathy Kurth
body: When you are editing the page, there should be a little box labeled "Table of Contents." Select it and click Edit. That opens a dialog box where you can set all the options you want for your TOC. For descriptions of those options, refer to the help for your version of Confluence.

Note that a TOC is a mini-TOC just for the page it's added to. It will pull in the heading levels you indicate in the options.

If you want a TOC that shows a parent page and its child pages, a better solution would be to use the Children Display macro.

comments: author: omelvenymichael
body: Hi Kathy, how do I add a section to an existing TOC?


author: Kathy Kurth
body: If you use the macro to set up your page-level mini-TOC, it will automatically update itself based upon the headings that you've used on the page. In other words, you cannot just change the look of the text in the paragraph you're using as a heading, you must use one of the heading styles that are provided in the editor. You can tweak the format of the heading afterwards.

So, to answer your question... to add a section to the TOC, just create a new section on the page with a new paragraph that uses one of the heading styles.
Total disruption in work due to licensing
Asked by Rod Macpherson:

Who does this? Edited a page and unable to save changes due to a licensing dialog that pops up. That is the true cost of licensed software and the #1 reason to use something else. Turns out nobody can save edits now. Sensible behavior would be to**a)** bill for overage, **b)** allow edits but send a notification to customer about overage.  

Are they worried we will "steal" usage if somebody saves an edit after license count is exceeded? I would be more worried about existing customers sharing this experience with other customers.


Answers:
author: Nic Brough -Adaptavist-
body: You should be monitoring your user levels in order to meet your side of the contract you signed up for.

Your administrators **have** been mailed about the number of users and the billing **does** go up automatically (unless you've asked for it not to, or you've gone over the highest possible number)

You need to talk to your administrators/site owners, as they've let you down.


Tags: cloud

confluence-cloud
Where is my Confluence Backup file?
Asked by Russell_Dhooge:

I have a back-up running and it's taking a while. If I close the back-up window now, while it's still processing, how can I find and then download the file?


Answers:
author: Alexey Matveev
body: Hello,

If you go back to the Backup Manager, the file should be there.

comments: author: Russell_Dhooge
body: Thank you!


author: Alexey Matveev
body: You are most welcome!


Tags: backup

cloud

confluence-cloud