youngmon/atlassian-qna huggingface dataset:
Confluence attachment version numbers displayed in attachments?
Asked by Andy Folland:

Hello folks,  

I suspect I know the answer to this already, but just thought I'd ask anyway...

Has anyone ever managed to do something clever with Confluence's attachment version numbers where they're *somehow* displayed in or on the attachment?  

Use case being:  
User prints off an attachment, and we know which version they've used because there's a nifty field in the footer or something that displays the Confluence attachment version number.


Answers:
author: Dominic Lagger
body: Hi [@Andy Folland](/t5/user/viewprofilepage/user-id/1973098)

I don't think this is possible.

The attachment is only attached to confluence. The attachment isn't changed by confluence as it uploads. Perhaps there is nice version helper app on the [marketplace](https://marketplace.atlassian.com). I couldn't find any with a quick search.

What kind of files / attachments are these? Pictures, PDF, Office documents?

If you found a solution, let me know!

Regards, Dominic

comments: author: Andy Folland
body: Hi Dominic,  

I thought as much.  
I once tried to achieve something similar in SharePoint (i.e. adding a field to a footer in Word that displayed the SharePoint version number - quite handy, you'd have thought, but not an option).  

<br />

**\>\> What kind of files / attachments are these? Pictures, PDF, Office documents?**   
PDFs and office docs.  
I was thinking perhaps some kind of an overlay that would work on both PDFs and office doc attachments that contained a simple Confluence version number field.  
Oh well.  

Anyway - thanks for replying.  
Back to the drawing board then.  

Cheers,  

<br />

Andy


Tags: confluence-server

server
Is it possible to select favorite page templates for easier maneuver
Asked by Milica:

Hello,

Since I plan on using "meeting notes" template; please do let me know, can I star or exclude the template that I plan on using frequently?

Thank you,


Answers:
author: Dominic Lagger
body: Hi [@Milica](/t5/user/viewprofilepage/user-id/3915139)

If you are a space administrator, you can promote your templates

* [Promote Templates in the Create dialog](https://confluence.atlassian.com/doc/page-templates-296093785.html#PageTemplates-PromotetemplatesintheCreatedialog)

**To promote a template or blueprint:**

1. Go to**Space Tools** \> **Content Tools**
2. Choose **Promote** next to the templates or blueprints you want to appear in the Create dialog. You can only promote templates created in this space.

Hope this is what you needed. Another way to favor templates, I'm not aware of.

Regards, Dominic

comments: author: Milica
body: Thank you Dominic!

Worked perfectly.


Tags: cloud
Export Title Page, Footer, Header content all mysteriously missing
Asked by Alicia Newell:

After the last update to Confluence Cloud the content that is usually in my Export Title Page, header and footer is all gone. I thought maybe someone deleted it, but I am the only one with access to the space and I didn't delete it. Is it possible that the update wiped it out?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Alicia Newell](/t5/user/viewprofilepage/user-id/3915137)

No, I don't think this is possible. You could try to raise a request to Atlassian, if you are indeed on a paid plan.


Tags: cloud
Unable to get expected results with search api
Asked by Madanmohan:

Hi,

I am using 'confluence/rest/searchv3/1.0/search?queryString=FileName'.   
\[Referred: *<https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-get-the-id-of-an-attachment/qaq-p/518429>* \].  

its yeilded results in json format as expected in most of cases; but in some rare cases where exact filename is not found it gave results of closest matches which I dont want.   
Is there any option to avoid that; like search for exact match or any options \& also to check for filename in a particular page.

*-Madan*


Answers:
author: Madanmohan
body: Search doesn't provide expected results all the time.  
Instead its better to search attachment details using page level api calls to get require details.  

e.g. *curl -u user:pass -X GET "+URL+/confluence/rest/api/content?title=PageTitle\&spaceKey=SPACE\&expand=history"*


Tags: confluence-server

rest-api

search

server
Is "recommendations" based on past views is possible in Confluence?
Asked by Aditya Mandal:

Is "recommendations" based on past views is possible in Confluence? Similar to the lines of Netflix.


Answers:
author: Shannon S
body: Hi Aditya,

Thank you for contacting us. The [Recommended Updates](https://support.atlassian.com/confluence-cloud/docs/configure-the-recommended-updates-email-notification/) email is where I would start. This is based on the spaces the user has access to, so the content in the email will be specific to them.

Otherwise, you can try using labels with the [Related Labels macro](https://support.atlassian.com/confluence-cloud/docs/insert-the-related-labels-macro/) which will show pages that are related to the one your user is looking at. Be aware that you'll need to add the labels so Confluence knows which pages are related.

I hope that helps, but let me know if you have any questions about that.

Shannon


author: Aditya Mandal
body: Can anyone through some light on this?


Tags: cloud

confluence-cloud
Space Key remove
Asked by joris_monten_cegeka_com:

Hi,

with the setup of our space the spacekey was created as 'TEST'.  
Now we want to change this towards another name, something that's better for our customers.

Is there an way to change this key?

Thanks!

Joris


Answers:
author: Ollie Guan
body: Hello [@joris_monten_cegeka_com](/t5/user/viewprofilepage/user-id/3653928) ,

There are several ways to achieve this goal, please refer to the following post.

<https://community.atlassian.com/t5/Confluence-questions/How-do-I-change-a-space-key/qaq-p/592276>


Tags: confluence-server

key

server
Not able to add Corp AD groups
Asked by Roja Gurram:

Hi All,

We are not able add/Create a Corp group like CORP\\. Though am a Confluence Admin and not able to create a group with CORP\\TRIVIAL GROUP like that. Who will do this either Confluence Admin or AD Owners ?


Answers:
author: repi
body: How do you log on to your confluence?  
using sso and registered AD users?  
Or do users log in via the internal Confluence Directory?


Tags: confluence-server

server
Create page and child pages via template
Asked by joris_monten_cegeka_com:

Hi,

For our new team-site I was wondering if it's possible to create an page and 3 child-pages at once via the template.

What we want is the following:

- Meeting 11/05/2020  
- Meeting agenda 11/05/2020  
- Meeting notes 11/05/2020  
- Meeting documents 11/05/2020

I want to do this via the Create\>template button but can't find out how to be done.

Additionally (if possible it would be great) if the datum is entered once it would also be entered in the childpages (title).

Many thanks!


Answers:
author: EPS Software Engineering AG
body: Hi [@joris_monten_cegeka_com](/t5/user/viewprofilepage/user-id/3653928)

Our Page Tree Creator (PTC) can fulfill your requirements. You can create the page and child-pages by clicking a button. Even the date can be entered automatically by a default placeholder (tag).

You can find the [Page Tree Creator App](https://marketplace.atlassian.com/apps/1214062/page-tree-creator-blueprint-template?hosting=server&tab=overview) on the marketplace.

Regards,  
Stephan (PM at EPS Software Engineering AG, the vendor of the Page Tree Creator)


author: Najjar _Innovura_
body: Hi [@joris_monten_cegeka_com](/t5/user/viewprofilepage/user-id/3653928)

If you are interested in creating those pages from Jira, you could try our new app that allows you to create pages from templates through Jira Workflow post-function and store the Confluence page in a Jira customfield to apply more actions like:

Workflow postfuntions

* Create child pages
* Update page permissions
* Update page content
* Update page title

Workflow conditions

* Check if page was modified after a certain status transition
* Check if page still has a placeholder

And so much more.

I believe it would streamline alot of repeated effort on your team

[Jira Confluence Workflow Extensions (JCWE)](https://marketplace.atlassian.com/apps/1221971/jira-confluence-workflow-extensions-jcwe)


Tags: child-page

confluence-server

server

template
Why is Cloud Confluence not prompting to copy child pages?
Asked by Ashwin Kumar H M:

We are using Cloud Confluence. In my Space we are coming up with Web page with at least 4 level deep. And there are many pages, Doing this manually is not feasible. When I copy it just copies the current page and not prompting me to copy all the pages. What am I missing here?

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


Answers:
author: Nic Brough -Adaptavist-
body: Because "copy page" does what it says - it copies the current page. Child pages are not part of the current page.

comments: author: Ashwin Kumar H M
body: As I mentioned in the ticket these pages are 4 stage deep and there are many child pages. Many years back I remember seeing a prompt for including child pages. Isn't that available anymore?

How can I include Child pages while copying?


author: Nic Brough -Adaptavist-
body: There has never been an option for copying child pages. You may be thinking of delete, move, or functions provided by an app.

If you want to copy a page and its children, you'll need an app to do it.


author: Ashwin Kumar H M
body: Talking about this -

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


Tags: cloud

confluence-cloud
Cannot enable the Office Connector in Confluence
Asked by Brett Baz:

I am betting this is going to be really simple, but the Office Connector in Confluence is disabled and I cannot find where to enable it. It doesn't exist under 'Manage Apps' nor under any of the products listed but yet under System Information it is listed as Disabled, so it know's where it is.  

Office Connector plugin 5.2.1 Atlassian Disabled


Answers:
author: Jack Brickey
body: Hi [@Brett Baz](/t5/user/viewprofilepage/user-id/3468966) , did you get this issue resolved? If not this article might help - [configuring-the-office-connector](https://confluence.atlassian.com/doc/configuring-the-office-connector-170492758.html)


Tags: confluence-server

server
Table Transformer: Year gets thousands separator, 2,020.00 instead of just 2020
Asked by Torkil Sinkaberg Johnsen:

In the table transformer macro, I have an SQL that looks something like this:

```
SELECT
YEAR(CAST(Month AS date)) AS 'Year'
, OtherNumber
(...)
```

I want "OtherNumber" to have thousands separator and two decimals, but I want year to just look like "2020" instead of "2,020.00", without decimals or thousands separator.

I have tried casting to string:

```
CAST(YEAR(CAST(Month AS date)) AS string) AS 'Year'
```

But that just gave me "NaN" as values.

I have also tried to set date format to "yy" in the table transformer macro, but that does nothing either.

Any tips?


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hi [@Torkil Sinkaberg Johnsen](/t5/user/viewprofilepage/user-id/3820304),

I tried and this query works for me

```
CAST(YEAR(CAST(Month AS date)) AS string) AS 'Year'
```

You can try this:

```
YEAR(CAST(Month AS date))::string AS 'Year'
```

or

```
YEAR(CAST(Month AS date)) + " " AS 'Year'
```

comments: author: Torkil Sinkaberg Johnsen
body: No go with any of these. Even tried

```
YEAR(CAST(Month AS date)) + "a" AS 'Year'
```

Ends up with saying "NaNa" ...

Must be an old version I am running. Very frustrating.

Thanks for your help!


author: Andrey Khaneev _StiltSoft_
body: Try to update the Table Filter and Charts app then. If this doesn't help, please open a [support ticket](https://stiltsoft.customercase.com/forums/support-requests/ideas/create?category=Table%20Filter%20and%20Charts%20for%20Confluence).


Tags: confluence-server

server
Not able to find vertical scroller in confluence in my MacBook
Asked by NaveenKumar.Arja:

I saw I am able to view and operate vertical scroller in chrome and in windows machine whereas not finding the same in MacBook. Are there any settings to be done? or have to live with this issue in Mac? :(

Note: I have tried clearing cache too, but tough luck.

Any thoughts?


Answers:
author: Grigory Salnikov
body: Hello [@NaveenKumar.Arja](/t5/user/viewprofilepage/user-id/3913866) and welcome to our Community!

Does this issue persist through different browsers?

comments: author: NaveenKumar.Arja
body: I am facing this issue both in safari and Chrome in my MacBook


author: Grigory Salnikov
body: Thank you for the reply.

It may be a long shot but, please, try to change the system configuration as described here:

<https://heresthethingblog.com/2015/03/10/mac-tip-macs-scroll-bars/>

![Screenshot 2020-05-11 at 09.11.19.png](https://community.atlassian.com/t5/image/serverpage/image-id/94219i469CB5C72335DD9B/image-size/large?v=v2&px=999 "Screenshot 2020-05-11 at 09.11.19.png")


author: NaveenKumar.Arja
body: Awesome, it's working now.

Many thanks for your quick revert. Much appreciated!


author: Grigory Salnikov
body: You are always welcome, [@NaveenKumar.Arja](/t5/user/viewprofilepage/user-id/3913866) !

Have a nice day :)


Tags: cloud
How to change editer?
Asked by yuki morikami:

I'd like to change editer on confluence page, could you help me please?


Answers:
author: Grigory Salnikov
body: Hi [@yuki morikami](/t5/user/viewprofilepage/user-id/3913811) and welcome to our Community!

Could you please be more specific, you want to change the editor in which way?

Thank you in advance.
Some Confluence plugins failed to start after upgrading from 7.3.2 to 7.3.5
Asked by booth-bro:

Following plugins failed to start after upgrading from 7.3.2 to 7.3.5  
They were grayed out. When I manually enabled them. I got error messages:

"An unexpected error occurred. Refer to the logs for more information."  
- Office Connector plugin 11.0.7  
- Document Conversion Library, 2.1.5  
- Confluence-files, 3.0.6  
- Confluence view file macro, 4.1.1  
- Confluence File Notification, 3.1.0  
- Confluence Document Conversion Library, 5.0.6  

I tried removing plugin cache directories as below. But it didn't help  
# cd /var/atlassian/application-data/confluence/  
# rm -fr plugins-cache/  
# rm -fr plugins-osgi-cache/  
# rm -fr plugins-temp/  
# rm -fr bundled-plugins/  

As the result, the attached files in the Confluence are not visible.


Answers:
author: booth-bro
body: Just want to update this issue. Today I deleted the plugin cache directories described in my original post, and then restarted the Confluence server. The issue was resolved by itself. I don't what makes it to work this time.

Now the all plugins mentioned in my original post are enabled, and the attachment files are accessible.


author: Ismael Jimoh
body: Hi [@booth-bro](/t5/user/viewprofilepage/user-id/2535148)

Looking at the problem reported, it may be similar to this <https://confluence.atlassian.com/confkb/unable-to-start-confluence-or-some-plugins-are-disabled-upon-startup-234652870.html>

Can you follow the steps they suggested and let us know if it helps?

Thanks.

comments: author: booth-bro
body: Hi, Ismael_Jimoh

Thanks for the quick reply!

The issue you were referencing to seems to be related to Microsoft SQL Server. It recommended two actions:  
1. set the CATALINA_OPTS="-Datlassian.plugins.enable.wait=300" in the setenv.sh file  
2. make sure the transaction isolation level is set to "Read Committed with Row Versioning"

We use PostgreSQL 9.6 for our Confluence server. But I follow the steps anyway. Here is what I found out:  
1. the CATALINA_OPTS in the setenv.sh file is already set to the suggested value. Following is the line I copied from the file:  
CATALINA_OPTS="-Datlassian.plugins.enable.wait=300 ${CATALINA_OPTS}"

2. I logged into my PostgreSQL database and ran the following command. I found out that the default transaction isolation level is "**read committed**".

confluence=# SHOW default_transaction_isolation;  
read committed  

PostgreSQL has the four transaction isolation levels shown below. The "read committed" level is the closest to MS SQL's "Read Committed with Row Versioning"  
- Read uncommitted  
- Read committed  
- Repeatable read  
- Serializable

Any further suggestions? Thanks!
ERROR: duplicate key value violates unique constraint "unq_lwr_username"
Asked by FreeSoftwareServers:

I can't import my confluence xml export due the the following errors:

```
postgres_confluence | 2020-05-11 03:46:57.299 UTC [318] ERROR: duplicate key value violates unique constraint "unq_lwr_username"
postgres_confluence | 2020-05-11 03:46:57.299 UTC [318] DETAIL: Key (lower_username)=() already exists.
postgres_confluence | 2020-05-11 03:46:57.299 UTC [318] STATEMENT: insert into user_mapping (username, lower_username, user_key) values ($1, $2, $3)
postgres_confluence | 2020-05-11 03:46:57.300 UTC [318] ERROR: current transaction is aborted, commands ignored until end of transaction block
postgres_confluence | 2020-05-11 03:46:57.300 UTC [318] STATEMENT: select 1
```

I have tried updating to v7 release and I still get the error. I found a bug report with a workaround, but I can't find any of the classes in my entities.xml. The bug-reporter is using cloud verison where I use the server version, perhaps that is why?\> Can anybody help me workaround this issue, I have been struggling for days to fix it to no avail.

<https://jira.atlassian.com/browse/CONFCLOUD-58486>

"Workaround" says to find

```
<object class="HibernateMembership" package="com.atlassian.crowd.embedded.hibernate2">
```

But of course, that doesn't exist in my export, but I get the same error.


Answers:
author: FreeSoftwareServers
body: I was able to get past this by basically deleting all users, clearing almost everything from \`user_mapping\` manually via sql and using the "recovery_admin" user to export/import and create a new user. Simple right?

Ran into this issue, but same resolution (I think?)

<https://community.atlassian.com/t5/Confluence-questions/ERROR-null-value-in-column-quot-user-id-quot-violates-not-null/qaq-p/1375611>


author: Ismael Jimoh
body: Hi [@FreeSoftwareServers](/t5/user/viewprofilepage/user-id/557523)

It seems you have a user with the same lower user name as one that currently exists in your backup file.

This means you may need to first verify this conflict and resolve it before proceeding any further.

1. Check for users with a similar username or the username is similar when you switch to lower case version of the username.
2. Either rename these users if you consider them as separate users or fix the username to be the exact same (possible one has block or mixed case while the other has all lowercase).
3. once fixed, generate a new confluence back up and attempt reimport.

Let us know how this goes.

comments: author: FreeSoftwareServers
body: Sorry, not that simple as I have done lots of troubleshooting. I have only two users and I am importing into a brand new setup with only one user which is a different username. This is related to the XML export bug I linked which said I had to move the declarations around in entities.xml somehow, but I can't figure out how.


author: FreeSoftwareServers
body: Literally 100% new Database + Confluence setup w/ Empty site and username of "admin" just to get "into" confluence, then I go into "restore" and select my XML backup and get the error above.


Tags: confluence-server

server
How do I automatically update images on a confluence page?
Asked by Jeff Abbott:

I use Excel to periodically generate a set of pivot charts from various relational databases. I am able to write a .png file to disk each time each chart is updated, and have control over the file names that are created.  

How can I update a confluence page/dashboard so that the new images are loaded automatically (the latest images are always displayed)?


Answers:
author: Nic Brough -Adaptavist-
body: You'll need to use the REST API to attach new versions of the files when updated, then use a simple "display image" macro to display "latest". Your users will still need to refresh the page.

comments: author: Jeff Abbott
body: Thanks, I'll look in to this approach.


author: Jeff Abbott
body: Ok, I have the images loading via REST, but I can't update them. My curl command line options are:  
-o nul -w "%{http_code}" -u \[username\]:\[pwd\] -X POST -H "X-Atlassian-Token: nocheck" -F "file=@\[path\]" -F "minorEdit=true" -F "comment=Added by VBA macro through REST API."

I understand I need to handle the revisions, but I don't know how to do that.


author: Jeff Abbott
body: I answered my own question:

```
curl -D- -k -u $user:$pwd -p -H "X-Atlassian-Token: nocheck" -X POST \ -F file=@filename https://confluence.domain.tld/confluence/rest/api/content/$page_id/child/attachment/$attach_id/data
```


author: jcasarrubias
body: Hello [@Jeff Abbott](/t5/user/viewprofilepage/user-id/3825822)

Sorry for asking, how do you write a .png file to disk each time each Excel chart is updated ?

Regards,

JLuis


author: Anton
body: Hi Jeff,

Thanks for your question and answer. Very helpful indeed.

I use the same curl to update images on my Confluence pages. Ever since the new Confluence editor I get the error "Fail to load" on the images. Is there something different I need to do with my curl command? If I update the images manually I have no problems.

Thanks in advance!


Tags: confluence-server

server
Installation Failed When Connecting Database and Can't Continue
Asked by Justice Obiaya:

Hello,

I installed Jira Software and everything works fine. However, when I tried to install Confluence it froze when connecting to the DB. I tried to log back in and now I get an error during the setup process. Can someone help? See below link to my installation setup page and screencap.

<http://task.atlfs.org:8090/setup/setuppaths.action>

Sorry if this is a simple question but pretty new to server management.

![Annotation 2020-05-09 231901.png](/t5/image/serverpage/image-id/94159i4C5296AA259B9F1F/image-size/large?v=v2&px=999 "Annotation 2020-05-09 231901.png").


Answers:
author: Moses Thomas
body: [@Justice Obiaya](/t5/user/viewprofilepage/user-id/3912359) Try resolution mentioned in the KB article here.

[Confluence does not start due to Spring Application context has not been set](https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html?_ga=2.119997709.400803069.1584982373-375446060.1582737712)

Please give feed back.

Kind regards,

Mo.


author: Nic Brough -Adaptavist-
body: You'll need to read more of the log file to find out what the root of the error is.
login issue
Asked by Abdelrahman_Kazamel:

Dears,

I try to login to my account and I get this message

[https://id.atlassian.com/login/select-account?application=confluence\&continue=https%3A//singularity.jira.com/wiki/x/OQBuD\&login_hint=not%3Aakazamel%40smartnetserv.com](https://id.atlassian.com/login/select-account?application=confluence&continue=https%3A//singularity.jira.com/wiki/x/OQBuD&login_hint=not%3Aakazamel%40smartnetserv.com)

##### " Try a different account " {#toc-hId-1846457207}

![Screenshot (5).png](/t5/image/serverpage/image-id/94147iCBD783DC28DF6A9E/image-size/large?v=v2&px=999 "Screenshot (5).png")


Answers:
author: Nic Brough -Adaptavist-
body: Have you read the main sentence in the error message? That tells you exactly what is wrong.

comments: author: Abdelrahman_Kazamel
body: thanks for your response

the main sentence in the captured error message "akazamel@smartnetserv.com doesn't have access to Confluence on singularity.jira.com."

where could I get access then

please advice if you can help


author: Nic Brough -Adaptavist-
body: You will need to talk to the owners/admins of that system.

We can't help you with that - we're a community of Atlassian software users who have less knowledge about that instance than you do.


Tags: cloud

confluence-cloud