youngmon/atlassian-qna huggingface dataset:
How do a I get a list of all attachment versions using the Confluence Rest API?
Asked by rlewis8:

Hi,

I'm trying to figure out how to get a list of all the versions of an attachment using the rest api. In particular, the version number, date and time of each version. I've tried variations on the rest api url, but haven't had much luck. I'm probably making a simple mistake.

Things I've tried:

rest/api/content/\<Attachment ID\>/history

rest/api/content/\<Page ID with attachments\>/descendant?expand=attachment

rest/api/content/\<Page ID with attachments\>/child/attachment?expand=container,operations,children,restrictions,history,version,descendants,space

Thank you,

R


Answers:
author: AzZu
body: All attachments is also a representative of the "content" like a page.

So, endpoint [GET /wiki/rest/api/content/{id}/version](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-versions/#api-wiki-rest-api-content-id-version-get) is also available for attachments.

For attachment with id **att1769484** you can request

```
curl --request GET \
 --url 'https://your-domain.atlassian.net/wiki/rest/api/content/att1769484/version' \
 --user 'email@example.com:<api_token>' \ --header 'Accept: application/json'
```


author: max_patera
body: I was able to do it using the solution described here: <https://confluence.atlassian.com/confkb/how-to-retrieve-all-previous-versions-of-content-using-the-rest-api-1044789048.html>

The URL to use is: /rest/experimental/content/{id}/**version/**


author: francisco.elrio
body: thats not working, also i need to list old versions to download and migrate to other platform. I tried all i saw


author: Stephen Sifers
body: Hello R,

From reviewing your notes and the endpoints you've attempted, you should be able to get what you need from the last endpoint you listed. This endpoint should be able to provide what you're looking for with the expands:

[GET /rest/api/content/{id}/child/attachment](https://docs.atlassian.com/ConfluenceServer/rest/7.0.1/#api/content/%7Bid%7D/child/attachment)

```
Example of what to use: http://example.com/confluence/rest/api/content/1234/child/attachment?filename=myfile.txt&expand=version
```

This should give your information in a format which will include version and when (this is the date).

Please let us know if this example is helpful in getting your attachment information.

Regards,  
Stephen Sifers

comments: author: H?ctor Garc?a
body: but if the document has n versions for example 9 versions .. how can I list when each version was last updated.....or created....  
I found   
[https://xxxxxxxxx.atlassian.net/wiki/rest/api/content/xxxxxxxxxx/child/attachment?expand=history.lastUpdated,history.previousVersion\&version=1](https://xxxxxxxxx.atlassian.net/wiki/rest/api/content/xxxxxxxxxx/child/attachment?expand=history.lastUpdated,history.previousVersion&version=1)

but just list the previous version of the current one


author: rlewis8
body: Is this possible?


Tags: atl-adm

confluence-server

rest-api
MySQL to MySQL migration went wrong
Asked by Oktopay:

Dear sirs,

after migrating our Confluence installation to a fresh new VPS (only dumped and restored the MySQL database) i get a spring error with the following cause:

```
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
```

```

Caused by: java.lang.IllegalStateException: Spring Application context has not been set
```

I already have found the following page:  
<https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html>

but followed its suggestions with no luck.  

Brgrds\<  
Nick


Answers:
author: Shannon S
body: Hello Nick,

Thank you for contacting us regarding this. That is the correct article, as the error tends to be caused by a configuration issue.

My recommendation would be to re-do the migration using the recommended migration method so we can be sure that there's not a configuration error causing the message.

See [Migrating to Another Database](https://confluence.atlassian.com/doc/migrating-to-another-database-148867.html) for instructions on how to do that.

In short, you want to set up a fresh Confluence installation and migrate using your Confluence XML backup.

Let me know if you have any trouble with that.

Regards,

Shannon
How to optimize querry BODYCONTENT table for only record CONTENT type which can have a filename ?
Asked by sc:

Dear all,

We are using Confluence Data center and SQL server on azure.  
We need to update manualy a bulk of information from BODYCONTENT table due to a setting mistake and for that we need to optimized return field criteria.

For that is tehre a way to filter the BODYCONTENT data only for CONTENT type which are able to have attachement ?

In other words, what are the content type in confluence which can have filename ?

thnaks for help


Answers:
author: Shannon S
body: Hello [@sc](/t5/user/viewprofilepage/user-id/3284481),

Happy to help with this.

BODYCONTENT is pages only; if you need a list of attachments, then you can use these queries:

* [How do I list all attachments in Confluence?](https://confluence.atlassian.com/confkb/how-do-i-list-all-attachments-in-confluence-with-their-location-and-file-sizes-346325893.html)

Could you have a look and see if that could help you with the data you need? If not, can you tell us what you're trying to do exactly? What do you need to correct?

Regards,

Shannon

comments: author: sc
body: thnaks


Tags: data-center
what should I try first, cloud or server? (confluence)
Asked by hafsa hsina:

Hello,

As you sent me the latest version based on the server, I would like to know also what version is less complicated (for the installation steps) to work with as a first trial (cloud or server)

Would it be possible to have the cloud version as a first trial, and then go for the server?

Thank you for your answer.


Answers:
author: DPKJ
body: [@hafsa hsina](/t5/user/viewprofilepage/user-id/3540456)cloud is very easy to get started, no installation process, just registration.

But, if you want to use Server version in future, I don't think evaluating cloud is right choice,

* as they both are different products,
* have different ui
* have different feature set
* plugin are very much different.
Can not update application navigator links and app name
Asked by Vusal Aliyev:

Hi, can not edit application navigator links. deleted application links, updated in db but can not solve. Confluence name show blank

![2019-09-09_154400.png](/t5/image/serverpage/image-id/65544i33C7FC6C0389BD3A/image-size/large?v=v2&px=999 "2019-09-09_154400.png")


Answers:
author: Nic Brough -Adaptavist-
body: It's because you "updated in db" - never use SQL to touch an Atlassian database unless you are specifically told to by support to fix a bug (and always have it off line)

You might be able to rescue this is you shut down Confluence completely, put back the data that was in the table before and restart it, and I'd then recommend going back to admin and removing the links you'd created and re-build them in the UI.

What are the symptoms of "can not update application links"? When you go into the admin screen to amend them, what do you see? Does the commit just not change anything, do you get an error, there's no way to get to it, the button for commit does nothing? etc


Tags: confluence-server

server
Unable to save changes to Space permission
Asked by Jason_Maidment:

Hi there,

I am trying to amend the permissions on a particular Space in Confluence, but for some reason my changes are not being saved.

I have added a Licensed User (who is already an active user in our system) as both an individual, and also as part of a new group I created specifically.

But when I click Save All, the screen is returned back the way it was, with my new Space admin removed. I am overall admin, so I'm not sure why this is happening. I see no error messages, or anything else to suggest a problem.

Am I missing something?

Thanks very much,

J


Answers:
author: Jason_Maidment
body: As soon as I posted, I found the answer - it was because my new group didn't have access to Confluence!

As soon as I added that product access, I could add my group to the Space permissions screen and amend appropriately.

Doesn't explain why I couldn't add the person individually (or maybe it does...) but I'm sorted.

Hope that helps someone else!


Tags: cloud

confluence-cloud
when use @ mention someone in confluence conment, the symbol become another symbol~,
Asked by Anna Zhu:

hello guys, could u please help me?

when I use @ mention someone in confluence conment, the symbol become another symbol\~, and the mentioned user can't receive any notification,thanks![????_20190909175013.png](/t5/image/serverpage/image-id/65531iD966E9E0838865FC/image-size/large?v=v2&px=999 "????_20190909175013.png")


Answers:
author: Ang?lica Luz
body: Hi Anna,

Welcome to Atlassian Community!  
Thank you for the screenshot.  
For a better understanding of the issue, I would like to know more details about your environment.

Is this issue happening when mentioning any user or specific ones?  
What is the Confluence version you are using?  
What is the database are you using?

Looking forward to your reply.

Regards,  
Ang?lica


Tags: confluence-server
Jira Macro not converting URL
Asked by Jakub_Barta:

Hi,

I am creating a page with URL to Jira issue and it is not changing URL to Jira issue button as in this video: [https://www.youtube.com/watch?time_continue=121\&v=XKV-WA5RpD0](https://www.youtube.com/watch?time_continue=121&v=XKV-WA5RpD0)

I am copying table from Excel where are the URLs which are not converted afterwards. Only when I manually copy and paste the link, it's changed to the macro button.

Is there a way to "re-apply" this macro to URLs on a page?

Thanks.

Jakub


Answers:
author: Fabian Lim
body: Hi Jakub,

I think that by copying the table is not mapping it correctly. The workaround that you mention (copy and paste url) is the only way to get it to work.

Regards


Tags: jira
?????????? ?????????? ? ????????? ???????? ? Conflueince
Asked by ??????:

????? ??????? ????? ????????? ??????????? ? ???, ??? ?????? ??? ?????????????? ?????????

![??????.PNG](/t5/image/serverpage/image-id/65522iD4A2C1A187A47C40/image-size/large?v=v2&px=999 "??????.PNG")


Answers:
author: Alexander Bondarev
body: ?????? ????.

??? [???](https://confluence.atlassian.com/confkb/how-to-hide-content-author-name-created-by-in-a-page-701600769.html) ????? ????? ??? ??? ???????.

? ?????? ?????? :

How to Hide author name for 'Created by' {#toc-hId--1409911307}
---------------------------------------------------------------

1. Go to **\> General Configuration \> Stylesheet**(under "Look and Feel" section)
2. Click edit
3. Add the following code:

       #com-atlassian-confluence .page-metadata .author {    display:none;  }

4. Save
can i copy past plan
Asked by ROBERT CAUVIN:

How do i copy my plans from the past . I can hit copy but the past on 2019-20 wont accept.HELP ASAP


Answers:
author: Jack Brickey
body: [@ROBERT CAUVIN](/t5/user/viewprofilepage/user-id/3551666) , this post may not be relevant anymore for you. However I'm trying to work on answering all posts when I came across your's. Unfortunately I can't decipher your question here could you please share more details on what you were attempting to do and if you found a solution please share that as well. Thanks!
how to delete reviewer's tasks when the reviewers got unassigned
Asked by Karteek:

By using comala workflow, we are creating tasks for reviewers when they got assigned to the approval. In case, the user got unassigned, we need to delete that specific reviewer's tasks


Answers:
author: James Conway
body: Hi Karteek,

If our technical documentation at <https://wiki.comalatech.com/display/CWL/Macros> does not provide the detail you require, can you log a ticket with our support team at <https://comalatech.jira.com/servicedesk/customer/portals>

Thanks in advance

James


Tags: confluence-server

server
Can not connect to Confluence H2 Database
Asked by Katayama:

Please find attached screen shot.

This error has occured then we can not use confluence.

I assume that DB server (H2DB) is not operated but I dont know how to restart this data base system.

Could you show me instruction.

![error shot.PNG](/t5/image/serverpage/image-id/65501i3F5E5C52AAA3F956/image-size/large?v=v2&px=999 "error shot.PNG")


Answers:
author: Nic Brough -Adaptavist-
body: H2 is not a service the way that other databases are, there's nothing really to start or connect to. H2 is loaded as part of the main application.

The error message you are seeing is quite a generic one that tells you Confluence cannot connect to the database. It could be other things though, and there's no real way to tell what the problem is without reading the logs - they should contain an error telling you why it can't connect in more detail.

If you are using the H2 database and you get this message, it is quite likely that the H2 database file is corrupt.
Open new windows into recording area
Asked by Mau Amolat:

What does it really mean?  

I selected my chrome application to record and yet when I open my application which is "notepad" on windows, it still shows on the result of the record. Does this kind of feature work for the [https://www.freescreenrecording.com](https://www.freescreenrecording.com/) tool? Thanks!


Answers:
author: Nic Brough -Adaptavist-
body: You'll need to explain what application this is, it's not something I recognise as an Atlassian product, so it is probably an app for one of them. There are thousands of apps in the marketplace, we can't guess which one it is.


author: Mau Amolat
body: It is related to an application that I guess they have developed or owned. I Have clicked on the submit a bug from support page related to the application and I was redirected to this forums


author: Deepanshu Natani
body: Is this related to Atlassian products or any addon available on Atlassian marketplace?
Help with creating 2 column page
Asked by Gerard Johnson:

Need to setup a text image page and on the right side a blog comments section is that possible?


Answers:
author: DPKJ
body: [@Gerard Johnson](/t5/user/viewprofilepage/user-id/3551417)Confluence provide columns and related customization with content only.

So it is not possible to have comment block somewhere else other than bottom of the page.

comments: author: Gerard Johnson
body: Thanks!


Tags: confluence-server

server
Using products together
Asked by Trip Bauer:

I have a need spanning multiple areas and users, from dev projects to marketing and content development as well as support. Is anyone using Trello (marketing team uses), Confluence (content team asked for), Jira support (IT requested) and Jira Software together? Any benefit to bringing all my needs and applications to one platform rather than multiple different companies?


Answers:
author: James Bullock
body: Kudos,:*you are the collab support product suite use case.* And paying attention to what's common and what's distinct is *Exactly The Thing*(tm). Think overhead reduction, traceability enhancement, and metaphor.

* **Less Overhead; More Flexibilit**y: Why run several DBMS, identity services, app servers, container engines, etc. Even if you grab a la carte from different sources, now you have more dependency management. Common functions that are the same, just do once.
* **Less Friction; Better Traceability:** Can just use the other thing,without another round of setup, and easier traceability. Plus, t**hese** user issues (faillures) trace to**that** design defect (fault), which traces to **this** correction (chante set), is easier to do if the tools talkto each other.
* **Users and Use:** Move between collab metaphors freely. High-presision workflow isn't a knowledge base, isn't a virtual cube farm, isn't.... Slack may be a good virtual town hall, but it's a miserable knowledge base: wrong metaphor.Metaphor abuse is the hidden collab system failure mode. One Tool to Rule Them All -- not so much.

I have driven collab n tool chain integration(s) a kajillion times.

* One example: "Hey, routing new ops failures (regressions) to the nearest change is a good hack at fixing them faster. Since we own the repository n build, n we're next to the ticket system (that also has defect (fault) tracking), and email ... how about we plug these together .... maybe start with production deployment crash logs as failures routed in aggregate (candidate faults) to whoever last touched the thing thats crashing?"
* Another examle: I ponied up about 1/2 an Engineering FTE to manually maintain failure (customer support) to fault (defect) traceability. It's huge leverage, but I'd much rather have the tech do that for us.

Approaching it this way works.


Tags: cloud

confluence-cloud

jira

trello
Backordered
Asked by avkumar:

What could be possible reason for my order is getting back ordered apart from inventory short and awaiting payment info ?When i am trying to troubleshoot the order error is coming .When i am searching the order payment status is authorized .I am calling supply event for creating proper amount of inventory before order creation


Answers:
author: Nic Brough -Adaptavist-
body: Are you asking about an order for Atlassian software? Or about using Atlassian software as an ordering system?
What are the steps to execute the vulnerabilty in Confluence outlined in CVE-2019-3394?
Asked by P:

Atlassian released the following advisory last month:

[CVE-2019-3394](https://confluence.atlassian.com/doc/confluence-security-advisory-2019-08-28-976161720.html)

Under the "Acknowledgement" section it says user "Magic Ice Cream Shop" discovered this vulnerability. There is no information on how Magic Ice Cream Shop did it (i.e. how a user with "Add Page" space permission can view files in \<install-directory\>/confluence/WEB-INF).

Would appreciate if Atlassian can release steps to reproduce this vulnerability so that we can make a determination as to whether an upgrade to fixed version is necessary.


Answers:
author: Fazila Ashraf
body: [@P](/t5/user/viewprofilepage/user-id/660629) , i would not want Atlassian give out the recipe to hack the application while the vulnerability is still a problem.

It is not better to apply the workaround or fix by just understanding that somewhere someone could hack your system?

comments: author: P
body: I think if you are a paying customer (which I am) then Atlassian should inform us at least privately (i.e. does not have to be through this forum).

Knowing how the attack works and trying it on my system is far less work than the upgrading to the nearest fixed version.

If Atlassian prefers, I can launch an actual support ticket. But either way, it is really important for me to know how this vulnerability can be exploited.


author: Fazila Ashraf
body: Still, as a customer of atlassian, if i got the recipe from atlassian, i could happily exploit the other customers instances. Why would atlassian or any company for that matter do such a thing with their product customers?!

A support ticket or even if i am ready to pay extra money to a company to know how to hack their product, they would (and should) never do that..


author: P
body: Yes I understand, but this can be taken care of easily by simply signing an agreement identifying myself to Atlassian as a paying customer who has no malicious intent and will not pass this information on to anyone. Kind of like how paying customers have agreed to not pass Atlassian Confluence source code to others.


Tags: confluence-server

security

server
When I restart "atlassian/confluence-server" docker container I get to initial setup page.
Asked by Konstantin Efimov:

1. I create a new volume for the confluence server to externalize the CONFLUENCE_HOME data

\>\>\> docker volume create confluence

2. Started the confluece by

\>\>\>`docker run -v confluence:/var/atlassian/application-data/confluence --name="confluence1" -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server `

3. I have made initial setup, connect confluence to external postgress and we were completely happy before, we tried to restart container (with the same volume and database).

`3. Then I stop container by (container stop) and start it by `

`>>>docker container stop confluence1`

`>>>docker container start confluence1`

4. And now after restart I opened defaut confluence URL, and it offer me to do initial setup again (enter licence and etc)

Please, help


Answers:
author: Dave Chevell
body: For reference, this was a bug that surfaced after we rewrote the bootstrapping process for our Confluence image. We identified the issue fairly quickly and resolved it.

comments: author: Asif AlWaqfi
body: <https://community.atlassian.com/t5/Confluence-questions/Docker-Confluence-Goes-back-to-intial-setup-after-exiting-Docker/qaq-p/1348663#M173127>


author: Stephen Sifers
body: Hello Konstantin and welcome to the Community!

We appreciate you sharing in detail the steps you have taken to create Confluence within docker and what you did to have Confluence re-present the setup. It sounds as though your Docker service is not able to access (read/write/create) the confluence.cfg.xml file which stores your database configuration and records if your instance has been already created/configured.

Within the docker documentation, the following is noted:
> CONFLUENCE_HOME
>
> The confluence home directory. This may be on an mounted volume; if so it should be writable by the user confluence. See note below about UID mappings.

Source documentation: <https://hub.docker.com/r/atlassian/confluence-server/>

Please verify your permissions are configured properly and the user has sufficient permissions to Confluence_home.

Regards,  
Stephen Sifers


Tags: confluence-server

docker

server
I am unable to edit
Asked by Deepali Garg:

When I click on edit, I get message 'We're updating your templates,' and everything is greyed out. It has been like that for a long time. How much time does it take to update templates?


Answers:
author: Nic Brough -Adaptavist-
body: You will need to ask your administrators about this, there is an update that has stalled and they'll need to restart confluence to get it rolled back or completed.
Como subir un video
Asked by evelyn silvio:

Estoy intentando subir un video de youtube y cuando ejecuto la accion me da error


Answers:
author: Rafael Pinto Sperafico
body: Hi [@evelyn silvio](/t5/user/viewprofilepage/user-id/3550683) ,

"*...y cuando ejecuto la accion me da error*". What is the error you are experiencing?

If you are running *Confluence Server* , please notice a *Security Advisory* was released this year [Confluence Security Advisory - 2019-03-20](https://confluence.atlassian.com/doc/confluence-security-advisory-2019-03-20-966660264.html "Confluence Security Advisory - 2019-03-20") and it is important that you upgrade Confluence to a version where this issue is no longer a threat. You can review all *Security Advisory* released on [Confluence Security Overview and Advisories](https://confluence.atlassian.com/doc/confluence-security-overview-and-advisories-134526.html "Confluence Security Overview and Advisories").

Since we do not have much information about the error you are experiencing and in which application, here is a bug from Atlassian issue tracker:

* <https://jira.atlassian.com/browse/CONFSERVER-54899> - **Widget macro won't render YouTube's tiny link**)

So we can help provide you with a better assistance, could you please inform if you are running *Confluence Server* or *Confluence Cloud.*If Confluence Server, what is the version you are running? Last but not least, what is the YouTube video url you are using?

Kind regards,  
Rafael