youngmon/atlassian-qna huggingface dataset:
Links to attachments on a page changing to link of the page itself
Asked by Mike Buchanan:

I am running Confluence Server 6.6.1. We upgraded to this version a few months ago and occasionally, a user is reporting a page where the links to PDF attachments no longer work. The links are still there but they are just linking to the page the person is on, not the attachment. The attachments are still available and can be re-linked in the page but it is annoying to have to do this. We have not been able to replicate the problem. When I look at the page history on a page like this, there is no version of the page that has the links working correctly. It feels like this is related to our upgrade but I've only seen it on 3 or 4 pages. Has anyone else experienced this behavior?

Thanks,

Mike


Answers:
author: Shannon S
body: Hi Mike,

It sounds like you might have run into this bug:

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

> This issue was fixed in 6.6.3 AND 6.7.2. If you are on 6.6.3 or later (excluding 6.7.0 and 6.7.1) and are experiencing new issues, then please raise a [support case](https://support.atlassian.com/).

I would recommend upgrading to 6.6.3 or later (excluding 6.7.0 and 6.7.1 as above) and if you continue to have the issue, you can reach out to support.

Regards,

Shannon
Is it possible to add labels in template to How-to and Troubleshooting templates?
Asked by Sharon Helms:

Hi,

I'm hoping to confirm whether something I'm seeing in Confluence Cloud is true for others, and if it is a change from past behavior.

I'm our site's Confluence admin, and I'm pretty sure that in the past, when Space admins modified the out-of-the-box Atlassian How-to and Troubleshooting article templates at the space level, they had the ability to add additional labels.

Right now, I'm not seeing the option to add labels to these two templates, either at the Space level or at the Global level.

Are others able to add labels to these templates? I've attached a couple of photos, one showing the option to define a label on a new template, the other showing an attempt to modify the How-to article template, with no label option.

Thank you!

Sharon

![labelmod.jpeg](/t5/image/serverpage/image-id/36799iBEB7D7DED3979618/image-size/large?v=v2&px=999 "labelmod.jpeg")![nolabel.jpeg](/t5/image/serverpage/image-id/36800i60DB807877AF2414/image-size/large?v=v2&px=999 "nolabel.jpeg")


Answers:
author: Davin Studer
body: I am seeing the same behavior. Alas I don't see a way around it.

comments: author: Sharon Helms
body: Thanks, Davin!


author: yaniv_shoshani
body: Hi Sharon,

It just moved to another location on the upper right corner of the Edit screen - see below:

![lablesadd.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/112576i94C87E7B02CD022A/image-size/large?v=v2&px=999 "lablesadd.JPG")


Tags: cloud

confluence-cloud

label
I want to give a page name Overview to the page tree.It is not actually a page to be linked with. ?
Asked by Meenakshi R:

I have a space assuming Networking. I have created five pages for the Networking. As I create these pages, I see these pages listed as pages under the Networking Space in the Page tree. However, I would like to add Overview page to the Navigation. The overview is not actually a page. I don't want links to it as it is not a page. I just want to add the title Overview to my page tree in the Networking Space. Under the Overview, I would like to arrange those five pages.

When I do it, it is showing Overview as a separate page and links are activated like any other regular page. I am trying to just add the title page Overview.


Answers:
author: Davin Studer
body: That is not how Confluence works. All the items in the nav tree are pages and thus have links. There is no way to have a section in the nav tree that is simply a organizational unit without being a page.

comments: author: Meenakshi R
body: Davin,

Thank you so much for responding. I would like to share a link here. Please view it. In this page, you can see the tree on the left pane, where Overview is not linked to any page. Clicking on Overview, child page is accessible. I am trying to replicate the exact same pattern here. If you could see to it and figure out, it would be helpful for me in my project.
Page tree name
Asked by Dave Phillips:

Can you rename "Page tree" to something else above the links to the pages?


Answers:
author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Dave Phillips](/t5/user/viewprofilepage/user-id/1496699),

Yes you can! But, you need Admin privileges to do so.

I found this work around and this should help you. Say for example you wish to rename it to 'Dave's Page' -

1. Go to Confluence Administration \> Look and Feel \> Stylesheet.
2. Insert the following:

```
/* Hide the sidebar default "PAGE TREE" heading label and display an alternate one. */ 
.page-tree .label { font-size: 0; } 
.page-tree .label:before { content: "Dave's Page"; font-size: 12px; } 
```

Thanks

Sireesha

comments: author: Dave Phillips
body: Thank you Sireesha, I will give that try. Will this impact all spaces or just the one I make the update to?


author: Sireesha Dugginapeddi [Appfire]
body: Yes [@Dave Phillips](/t5/user/viewprofilepage/user-id/1496699)! This should impact all the spaces, unless any space owner overwrites the stylesheet for their own space. Which also means, even if you are not an Admin, you can modify the 'Page Tree' label for your own space, by navigating to Space Tools \> Look and Feel \> Stylesheet and inserting the code mentioned earlier.

I just verified this and it works! :)

Thanks!


author: Dave Phillips
body: Hi [@Sireesha Dugginapeddi \[Appfire\]](/t5/user/viewprofilepage/user-id/1260000) I only want this to impact one space we have and not all of them. How do I specify just for one space?


author: Sireesha Dugginapeddi [Appfire]
body: [@Dave Phillips](/t5/user/viewprofilepage/user-id/1496699),

You can insert the same CSS I shared earlier in the stylesheet of this specific space you want the impact in. Go to Space Tools \> Look and Feel \> Stylesheet and insert the same piece of CSS.

Thanks!


author: Dave Phillips
body: Perfect. I'll give it a try when I can get assistance from our Sys Admin. Thank you so much for your help [@Sireesha Dugginapeddi \[Appfire\]](/t5/user/viewprofilepage/user-id/1260000)


author: Davin Studer
body: Another option to do this would be the [InProduct translation for Confluence](https://marketplace.atlassian.com/apps/1211972/inproduct-translation-for-confluence?hosting=server&tab=overview) add-on. You can change the text with that as well.
File Attachment availability on other pages.
Asked by cwilford:

A file can be added on a page and then linked to it, however this file is not available to link on any other pages even if the pages are children to the initial page. The file therefore has to be uploaded again if you wish to link to it.

Is there a way around this limitation?


Answers:
author: Sireesha Dugginapeddi [Appfire]
body: Hi [@cwilford](/t5/user/viewprofilepage/user-id/2240235),

Confluence allows you to copy files/images from other pages to the page you are currently working on.

In your case, if the file you intend to add in a child page is available in the parent page:

1. Click 'Insert Files and Images' from the Editor window.
2. Select the third tab 'Search on other pages'.
3. Type in the file name you intend to add from any other page. And select either 'All Spaces' or 'the space you are currently working in' (in your case, parent page and current space) .
4. Click 'Search'.

You should be able to view the file and insert it in your current page.

Hope this helps!

Thanks

Sireesha

comments: author: Davin Studer
body: Small point of clarification when you do that it does not actually **copy** the attachment to your page. It is still only linking to the original.


Tags: cloud

confluence-cloud
Can we put some (not all) sales tunnels in one Navigation Tunnel?
Asked by synov_systems:

Can you (Atlassian Community) move links to sales tunnels that we must to put on Navigation Tunnel?


Answers:
author: Nic Brough -Adaptavist-
body: You'll need to explain what you mean by "sales tunnels" and "navigation tunnel". These are not phrases that apply to Confluence or Lithium generally, so we don't know what you are talking about.
Gallery Macro doesn't exclude images in Attachment Preview
Asked by Yanick Belart:

Hi everybody

We created an image gallery, filtered by label, on a Confluence Page. Now, when a user clicks on an image, the Image Attachment Preview opens. The problem is, that we get all images in the image attachment preview. That is a wrong behavior in my opinion. ![2018-11-05 14_37_34-Galerie zeigt _exkludierte_ Bilder.png](/t5/image/serverpage/image-id/36758i43FD6D87C5ABC64D/image-dimensions/603x392?v=v2 "2018-11-05 14_37_34-Galerie zeigt _exkludierte_ Bilder.png")What do you think?

Bests,  
Yanick


Answers:
author: Fabienne Gerhard
body: Hi [@Yanick Belart](/t5/user/viewprofilepage/user-id/690351) - a pretty interesting question - never thought of this before.

In my opinion gallery is something different than preview of attachments. Gallery macro only shows pics sorted by *in your case* label **as site content**. Preview will show you all attachments...

I was not able to find a smart workaround for that!

comments: author: Yanick Belart
body: Hi [@Fabienne Gerhard](/t5/user/viewprofilepage/user-id/971720) Thank you very much. Yes, absolutely. But it doesn't make any sense from a user prescriptive.

Bests,  
Yanick


author: Fabienne Gerhard
body: Hi [@Yanick Belart](/t5/user/viewprofilepage/user-id/690351) - I'm totally with you - what may help could be a showing the pics really big so that there is no need to click on it.... not the best idea maybe!

Some sort of Image Slider function would be great for the gallery


Tags: confluence-server

server
knowledge database
Asked by Vinicius Paes de Amorim:

How to insert images in in an article in knowledge database?


Answers:
author: Nic Brough -Adaptavist-
body: That looks like you don't have "attach file" permission in the space.


author: Vinicius Paes de Amorim
body: When creating a article, How to insert images?

![artigo.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/36757iA1CF863F595D39FE/image-size/large?v=v2&px=999 "artigo.jpg")


author: Nic Brough -Adaptavist-
body: Same way you insert images in any Confluence page - drag the files into the page, or paste them, use a macro, and/or click attach in the page options.


Tags: attachment
Format Export PDF
Asked by Thomas R?sler:

Hello together,

i try to style my PDF Export with the page number in the footer:

I create a new element in the footer PDF Layout:

*\<span id="pageNum"/\>*

and a new Element in the PDF Stylesheet:

*#pageNum:before
{
content: counter(page);
}*

*When i open PDF i can't see any information in the footer. Also other html fields in the header or footer of the PDF Layout are not visible.*


Answers:
author: Thomas R?sler
body: Hi Thomas,

thanks a lot, in the meantime i got it to work. My error was, that i have tried to define the above settings in the global settings. That does not work, the correct way is to define it over the area settings.

<br />

<br />

comments: author: Thomas Schlegel
body: You're welcome, [@Thomas R?sler](/t5/user/viewprofilepage/user-id/2236992) - great, that you found the problem


author: Thomas Schlegel
body: Hi [@Thomas R?sler](/t5/user/viewprofilepage/user-id/2236992), I have just tested these settings in my cloud environment. Everything's fine with the page numbering.

I think, the error must be somewhere else. Just to make sure, we have the same settings, here is the PDF layout of the space:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/36785i1CD449E1E35A2E9A/image-size/large?v=v2&px=999 "image.png")and the PDF Stylesheet:

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


author: RaeRo
body: This did not work for me. I defined it at the global level, but it propagates to the Space settings and looks identical to the build above, yet my PDFs still do not show a page number. Any suggestions?

![conf_space2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/46523i031BD98C1A4652B4/image-size/large?v=v2&px=999 "conf_space2.PNG")![conf_space.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/46524i1247CEF86E8B17C7/image-size/large?v=v2&px=999 "conf_space.PNG")


Tags: cloud

confluence-cloud
attach file in confluence
Asked by Vidya Shevale:

Hello team

I am using PHP Curl to attach a file. But I am getting error Unsupported Media Type

my code is below

$file_name_with_full_path = '/home/neosoft/Desktop/VS doc/download.jpeg';

$request_url = 'http://localhost:8090/rest/api/content/7406786/child/attachment';  

if (function_exists('curl_file_create')) {  
$cFile = curl_file_create($file_name_with_full_path);  
} else { //  
$cFile = '@' . realpath($file_name_with_full_path);  
}

$post = array('id'=\>'7406786','comment' =\> 'abc','file_contents'=\>$cFile);

$ch = curl_init();  
//curl_setopt($ch, CURLOPT_FILE, $ch);  
curl_setopt($ch, CURLOPT_URL, $request_url);  
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
curl_setopt($ch, CURLOPT_POST, 1);  
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);  
curl_setopt($ch, CURLOPT_USERPWD, "\*\*\*\*" . ":" . "\*\*\*\*");  
curl_setopt($ch, CURLOPT_HEADER, true);  
$headers = array();  
$headers\[\] = "Accept: application/json";  
$headers\[\] = "Content-Type: application/json";  
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$r = curl_exec($ch);  
$info = curl_getinfo($ch);  
print_r( $info );  
curl_close ($ch);  

<br />


Answers:
author: Stephen Sifers
body: Hello Vidya,

Looks you have almost everything you need to get your attachment uploaded. It looks like the issue might be related to your headers:

```
$headers = array();
$headers[] = "Accept: application/json";
$headers[] = "Content-Type: application/json";
```

Should Be:

```
$headers = array();
$headers[] = "X-Atlassian-Token: nocheck";
$headers[] = "Content-Type: multipart/form-data";
```

Please give that a try, if it doesn't work please paste the response so we can take a look.

We look forward to your response.

Regards,  
Stephen Sifers

comments: author: Vidya Shevale
body: Hello Stephen ,

Thanks for your answer. You are right , I corrected the headers as you said and it's worked .

I added below code

$headers = array();  
$headers\[\] = "X-Atlassian-Token: no-check";

thank you so much


Tags: atl-adm
Meeting notes
Asked by Cherry:

Is it possible to give a drop-down option to pick a meeting linking to my calendar in outlook and automatically include all information such as time when, date and attendees when creating a meeting note (similar to what we have in microsoft one note). Previous days meeting can also be selected?


Answers:
author: Stephen Sifers
body: Hello Karanpreet and welcome the the Community,

Having an easy way to quick create a meeting notes page base off your calendar in Outlook does sound ideal. As it stands though I am not finding anything that will allow you to create a meeting note page from Outlook. There is a feature request that we would suggest you vote and watch, which will allow you to create a page within confluence from an email. This will be a workaround to your idea of a simple drop down and click. And email to Confluence would allow you to invite Confluence to the meeting and then from your email it will create a meeting notes page. This is not something developed yet as the feature requests are still gathering interest.

For Confluence server the feature request is: [CONFSERVER-1726](https://jira.atlassian.com/browse/CONFSERVER-1726?_ga=2.131372367.1314879616.1542026482-1804605431.1539888043)

For Confluence cloud the feature request is: [CONFCLOUD-1726](https://jira.atlassian.com/browse/CONFCLOUD-1726?_ga=2.98865246.1314879616.1542026482-1804605431.1539888043)

This is a great idea and thank you for sharing it with us.

Regards,  
Stephen Sifers


Tags: atl-adm

atlassian-marketplace
How to: Confluence Page only accessable trough link
Asked by Celik Vedat:

Hi [@AlL](/t5/user/viewprofilepage/user-id/856820),

is it possible to restrict a page in Confluence so it is only viewable when accessing the page trough a link on an other page?

Many thanks in advance,

BR


Answers:
author: Nic Brough -Adaptavist-
body: No. A page is either visible to a user or it is not. The route by which they see it is irrelevant.


Tags: restriction
Is it possible to affix one colomn in confluence cloud?
Asked by Laura Peters:

Hi there!

I have created a few pages with two columns:

1. content table

2. The content itself.

Now if I scroll down on a page, I would like the left column to be displayed to be able to browse easily through the content. Is there a way to affix the left column while scrolling down?   
Thanks in advance!


Answers:
author: Laura Peters
body: Hi [@Laura Peters](/t5/user/viewprofilepage/user-id/1912335),

David Studer a[nswered a similar question](https://community.atlassian.com/t5/Confluence-questions/Table-of-content-moving-with-as-you-scroll-down-the-page/qaq-p/28439). You may want to look into it.

Hope this helps

comments: author: Laura Peters
body: Thank you for your response : ) I will look into it.


Tags: column

confluence-cloud
On-premise REST API for Confluence
Asked by Pranab Bhatta:

Hi All,

I have installed the on-premise setup for Confluence (6.10.1). I am not sure if REST API is enabled by default or I have to enable.

1) If I have to enable it, can anybody let me know how to do this?

2) If enabled by default, what would be the request URL.?

3) Is the API documentation for on-cloud and on-premise would be same?

Awaiting response.

Thanks,

Pranab


Answers:
author: Alexey Matveev
body: Hello,

1. Rest Api is enabled

2. URIs for the Confluence REST API resource have the following structure:

With context: <http://host:port/context/rest/api/resource-name>

Or without context: <http://host:port/rest/api/resource-name>

Example with context: <http://example.com:8080/confluence/rest/api/space/ds>

Example without context: <http://confluence.myhost.com:8095/rest/api/space/ds>

3. You can find rest api reference for on prem here:

<https://docs.atlassian.com/ConfluenceServer/rest/6.12.1/>


author: Gunnarsson Johan _2_
body: Important to note for on-premise installations is that authentication should be with the Bearer:-protocol, as explained in the docs here: <https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html>.


Tags: confluence-server

rest-api

server
How do I grant application access in Confluence server
Asked by Norhanizawati Zainol Zainoon:

hi everyone,

how to add confluence type application link in jira? im admin for both. i tried to add many type of public key and shared secret but still it could not work. im not able to add confluence as consumer as well. its only problem in Jira. not confluence.

thansks

Hani


Answers:
author: Nic Brough -Adaptavist-
body: Go to Admin -\> Application links and add a new application.

I'm afraid we can't tell you any more than that, because "it could not work" tells us nothing about the errors or unwanted behaviour is.

comments: author: Norhanizawati Zainol Zainoon
body: hi nic, i tried. i can add other generic type except for confluence type. i can add confluence using generic application. but later i cant use it in report linked page.

when using generic application type. i can user basic access. and oauth. but if using confluence type. i keep on getting invalid public key when try to next. the error only invalid public key no matter whatever key i put in.

thanks for ur reply. :)


author: Nic Brough -Adaptavist-
body: The mention of public key makes me suspect you have Confluence running over SSL (this is a good thing to do, but makes it a little more complex to set up). If that is the case, you will need to put the key in Jira's keystore.


author: Norhanizawati Zainol Zainoon
body: oowh! i'll try that. thanks nic! i really was out of idea before this. thanks again!


Tags: application-link

cloud

jira

jira-cloud
How to filter decision register based upon creation date of decision
Asked by Navin Kaushik:

Over the period of time, decision register contains many entries, is it possible to filter based upon creation date of decision ? As of now I don't see creation date field in the filter.


Answers:
author: Stephen Sifers
body: Hello Navin,

Using the Decision Register can be excellent for documenting everything you need around a decision. However, if you did not enter a creation date within the Page Properties macro then you will not be able to search on creation date within the Page Properties Report macro. If each decision has it own page you can search based off page creation using CQL outside of the Page Properties report. If one page has all decision registers then this will not be an option.

Example CQL for created:

```
created >= now("-4w")
```

Documentation on [CQL field Reference](https://developer.atlassian.com/server/confluence/cql-field-reference/#created).

I hope this clarifies how to search on creation date.

Regards,  
Stephen Sifers


Tags: confluence-server

server
confluence login
Asked by Basha:

Hi,

I have imported data to my new server, and i am unable to login in to it.

Please suggest.

Thanks

Ameer


Answers:
author: Yogesh Mude
body: Hi [@Basha](/t5/user/viewprofilepage/user-id/2122525)

You need to log in with your Confluence Internal directory user at the first time then you can sync up the LDAP/AD.

Or else please have a look at the below KB.

<https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html?_ga=2.146485681.421559132.1528085977-338212943.1524643824>


author: Basha
body: Thanks All, KB article really did work.


author: Tobias Anstett _K15t_
body: Hi Ameer,

A documentation of the different kind of user directories (explaining the terms) can be found at <https://confluence.atlassian.com/doc/configuring-user-directories-229838212.html>

Depending on the directories and their order used before there might be problems...

The best is to check the order of the directories (as it will take the first directory the user is found in) and check in which one your user exists.

a) Internal directory ... it must work -- otherwise you need to raise a support ticket at Atlassian.

b) Other directory ... it should work if your new server can access the directory -- usually firewall rules or missing certificates in your trust store (handshake exceptions in the log?) will indicate this. After being able to connect it should work after restart.

c) If none of above applies, the article linked by [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678) is a good resource.

Best, Tobias
Can I set it up so user can see videos and PDF's etc but cannot download them
Asked by Linda Eldredge:

I wish to use Confluence as a tool to sell some products to user and they can access and view videos and PDF's etc when logged into Confluence, but can I restrict them from downloading the videos and PDF docs etc so they cant forward them onto other people who haven't paid for the products etc


Answers:
author: Ollie Guan
body: Hi [@Linda Eldredge](/t5/user/viewprofilepage/user-id/2233815),

As far as I know, this is not possible. When the page displays the PDF to the user, it should have been allowed to download.

There have been similar discussions in the community, you can refer to the following link

<https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-that-end-user-can-view-confluence-knowledge-but/qaq-p/36289>

comments: author: Linda Eldredge
body: Thanks Ollie will review the discussions

Cheers


Tags: confluence-cloud