youngmon/atlassian-qna huggingface dataset:
Excerpt in Expand?
Asked by Adam Bogdan:

Hello,

Is there a way to include the Excerpt macro within the Expand macro in the cloud version of Confluence?

Unfortunately, dragging and dropping, or copying/pasting does not work.

Thanks.


Answers:
author: Shannon S
body: Hello Adam,

Welcome to Atlassian Community. It's nice to have you.

I've had similar issues with the Expand macro, and I raised a feature request for the new editor below for this function

* [CONFCLOUD-66888](https://jira.atlassian.com/browse/CONFCLOUD-66888) *Ability to nest inside Expand macros*

Vote on the request and you will automatically be added to the list of watchers.

Let me know if you have any questions about that.

Regards,

Shannon

comments: author: Brock Jolet
body: The linked issue is for including Expand macros inside tables and has been implemented.  
I'm trying to use an Excerpt macro within an Expand macro or vice versa.

Is there an issue I can upvote for this functionality?


author: Diego Ghirardi
body: this feature will definitely be good to have...


author: IDOE
body: Another way to do this is like so:

Create a Page

/expand

put /include page inside the expand.![Screenshot 2022-12-02 125643.png](https://community.atlassian.com/t5/image/serverpage/image-id/228726iA6CB29730E07478B/image-size/large?v=v2&px=999 "Screenshot 2022-12-02 125643.png")


author: Andrew Schreffler
body: I just discovered a workaround for this. It would look like:

On the main page:  
/excerpt (hidden: this can be anywhere on the page)

/expand

/excerpt include (tied to the above excerpt inside the above expand if needed)

If excerpt needed on another page:

/expand

/excerpt include (tied to the above excerpt inside the above expand if needed)

comments: author: Andy Mckinnon
body: nice ? - thank you for the suggestion


author: marton_lipcsik
body: I do have the same feature request. Creating solid, transparent content (user guide for example) definitely needs this nested include function.

Here you can vote for the function: <https://jira.atlassian.com/browse/CONFCLOUD-68951>


Tags: cloud

confluence-cloud
Confluence Rest API Error
Asked by Harvey Bennett:

Is my URL not structured properly?

http://localhost:8090/confluence/rest/api/content?title=Pagetitle\&spaceKey=MBS\&expand=body.storage

Does anyone have any suggestions on why this URL is not working? I created a page earlier using JSON, REST, \& PHP with no problem but now that when I'm trying to retrieve ANY pages contents I'm just receiving a not found error. I am currently just trying to test this in browser with the same success level as my CURL request I built out using PHP.


Answers:
author: Thomas Deiler
body: Dear [@Harvey Bennett](/t5/user/viewprofilepage/user-id/1427008) ,

I assume, that you access your Confluence normally with this URL from any browser:

```
http://localhost:8090/confluence
```

Then the correct REST API for getting content would be:

```
http://localhost:8090/confluence/rest/api/content?title=Pagetitle&spaceKey=MBS&expand=body.storage
```

If your Confluence is located at

```
http://localhost:8090/
```

The REST API call would look like

```
http://localhost:8090/rest/api/content?title=Pagetitle&spaceKey=MBS&expand=body.storage
```

If all of this doesn't help, try this to check if the REST API works at all:

```
http://localhost:8090/rest/api/user/current
```

This should return information about your own login. And please post the returned error message, if this issue is not solved.

So long

Thomas

comments: author: Harvey Bennett
body: [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715) All of these URL's are returning what I show in the image below. I am not getting an error. The page loads just the content on the page says the page is not found. The same information is returned with my cURL call in code. Is there something that I have to enable to make rest calls? The account that I'm using to access this information is a system admin. I just installed Confluence yesterday to do some testing on my own. Confluence version is 6.8 and it run on MySQL![missinginformation.png](https://community.atlassian.com/t5/image/serverpage/image-id/62024i598A049079F776EB/image-size/large?v=v2&px=999 "missinginformation.png")


author: Thomas Deiler
body: Dear [@Harvey Bennett](/t5/user/viewprofilepage/user-id/1427008) ,

possibly the REST API is disabled. Have a look at this [page](https://confluence.atlassian.com/doc/enabling-the-remote-api-150460.html) to double check.

So long

Thomas


author: Thomas Deiler
body: Dear [@Harvey Bennett](/t5/user/viewprofilepage/user-id/1427008) ,

I checked it on my own and found out, that the endpoint description of Atlassian of the REST API was incorrect - I looked at an outdated page :(. [The current API](https://docs.atlassian.com/ConfluenceServer/rest/latest/).

The upper URLs were fixed by me.

So long

Thomas


author: Harvey Bennett
body: [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715) I didn't realize the API was disabled by default after it is installed. I should have checked before asking! Thanks for the insight :)


Tags: confluence-server

server
How to get Blog Page ID?
Asked by Jeremy Price:

I know how to get a Page ID from any page in confluence by going to the page information or even seeing it in the URL when editing a page.

However I can't seem to find a way to find the blog ID for a specific blog that I am on?

Is there away to find this through the API?


Answers:
author: Shannon S
body: Hello Jeremy,

Thank you for contacting us! I see that you raised this question in support and my colleague has assisted you.

Your question here was tagged as Confluence Cloud, but you had asked in the Server collection, so these instructions below are for Server. If you still needed this for Cloud, and this information doesn't help you, please let me know.

For the rest of the Community, here was the reply that helped Jeremy:
> Using our [Confluence REST API examples](https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/), I was able to find it with the following command:
>
> ```
> curl -u admin:admin -X GET "http://localhost:8090/rest/api/content/search?cql=type=blogpost" 
> ```
>
> **You may need to re-adjust it according to your Base URL.**
>
> ```
> I got the following result from the command line:
>
> {"results":[{"id":"#######","type":"blogpost","status":"current","title":"Blopost Pagina","restrictions":{},"_links":{"webui":"/display/TEST/2019/08/02/Blopost+Pagina","tinyui":"/x/A4AX","self":"http://gviana:8090/rest/api/content/1540099"},"_expandable":{"container":"","metadata":"","extensions":"","operations":"","children":"","history":"/rest/api/content/1540099/history","ancestors":"","body":"","version":"","descendants":"","space":"/rest/api/space/TEST"}}],"start":0,"limit":25,"size":1,"_links":{"self":"http://gviana:8090/rest/api/content/search?cql=type=blogpost","base":"http://gviana:8090","context":""}}
>
> ```
>
> It returned the \*#######\* id, which is the PageID of the blogpost. If you have more than one blogpost, it will bring more than one result.
>
> You can also try to cURL only the name of the blogpost:
>
> ```
> curl -u admin:admin -X GET "http://localhost:8090/rest/api/content?title=Another%20blog&type=blogpost" 
> ```
>
> **You can see that I used only the "title" and the "type" filter.**

Best regards,

Shannon


Tags: confluence-cloud
How can I set different default avatars in Jira/Confluence?
Asked by Steve Gallant:

At our org, we have numerous clients. These clients have multiple projects/spaces with us and I'd like to replace the default icons with our company icon and our client icons. Is there a way to do this?

I saw this older post but it's from quite a while ago, so I'm hoping things have changed (the URL in the post doesn't work).

<https://community.atlassian.com/t5/Jira-questions/Custom-default-project-avatar/qaq-p/146380>

Appreciate the help!


Answers:
author: Steve Gallant
body: Hi [@Steve Gallant](/t5/user/viewprofilepage/user-id/2120240) ,

For JIRA I think so this is not possible. But for confluence may be possible. Here is a Documentation page. Only Confluence Administrator can change the default space logo.  

<https://confluence.atlassian.com/confcloud/changing-the-site-logo-724765495.html>  

Regards,  
Kishore Kumar Gangavath.

comments: author: Steve Gallant
body: Thanks for the reply.

I find it odd that this isn't default functionality as I'm sure we're not the only org with numerous repeat clients. This seems to be functionality that would be useful when setting up projects.


Tags: cloud

confluence-cloud

jira

jira-cloud
External Links Launch in New Tab - Confluence Cloud
Asked by Scott McClelland:

I see an app to have my external links launch in a new browser tab, but I don't see that it is available for Confluence Cloud. Is there another way to do this?


Answers:
author: Shannon S
body: Hello Scott,

Welcome to Atlassian Community. It's nice to meet you.

At this moment, there's no workaround to have links open in a new tab or window other than CMD/CTRL clicking the links. There's been a feature request created for this below:

* [CONFCLOUD-34088](https://jira.atlassian.com/browse/CONFCLOUD-34088) *Provide the ability to create a link in Confluence that will open in a new tab*

Please vote on the request and you will automatically be added to the list of watchers and receive updates on this request.

If the app you are referring to on Server is from [Atlassian Marketplace](http://marketplace.atlassian.com), I have tagged that topic on this question so our Marketplace vendors can see it. They will let you know about any add-ons that would provide that capability for Cloud.

Let me know if you have any questions.

Regards,

Shannon


Tags: atlassian-marketplace

cloud

confluence-cloud
Time out after changing the base URL
Asked by Primavista:

Hi,

I followed this instructions [Configuring the server Base URL](https://confluence.atlassian.com/doc/configuring-the-server-base-url-148592.html) to change tha base URL of confluence in my server.

Now I have a timeout when I go to confluence.mydomaine.com:28090 but if I type the IP address of my server I can get in but a warning pops up warning me about an URL mismatch.

Have anyone had this problem?


Answers:
author: Shannon S
body: Hello there,

Happy to help! Can you just confirm with me that you deed indeed change your default port from 8090 to 28090? Are you using a firewall or proxy? If so, when you bypass the proxy does it work?

Please share with us the exact error message or display in the UI that you see when the URL times out, and check your server.xml and ensure that ProxyName and ProxyPort have the correct values. Check that you didn't edit the https value over the http and leave it commented out.

If you use a reverse proxy, be sure that ProxyName and ProxyPort are not configured in server.xml.

Regards,

Shannon


Tags: confluence-server

server
Links in the "new editing experience" are a major step back
Asked by Scott Beeson:

Below are two screenshots. In the example, I wanted to link to a space directly which happens to have the same name as a page.

First, the old editor and linking. It was easy, I typed \[ and got a useful dialog. even if there was ambiguity, I could hover over the link and see the URL in my browser status bar.

![2019-07-30 09_50_44-Edit - Available Streams - Confluence.png](/t5/image/serverpage/image-id/61859iEC38F8C8FB478383/image-size/large?v=v2&px=999 "2019-07-30 09_50_44-Edit - Available Streams - Confluence.png")

Second, the new experience. I don't even know what to say. On top of what you see below, I cannot hover and see the URL in the status bar. I mean, just, wtf?

![2019-07-30 09_51_00-Edit - Documentation - Information Technology - Confluence.png](/t5/image/serverpage/image-id/61861iFC453C27F8441445/image-size/large?v=v2&px=999 "2019-07-30 09_51_00-Edit - Documentation - Information Technology - Confluence.png")\\

And why did we change the shortcut? So now the system is fragmented. I can still type // to get a date or @ to tag someone, but now I have to use CTRL+K to link?

In summary, old: good, new: bad.


Answers:
author: Ray Myers
body: The new editing experience is so broken that it's a good reason to try to find a new wiki provider.


author: Scott Beeson
body: ?\\_(?)_/?
edit event in my calendar does not work
Asked by Noelia Navarro:

When trying to edit an event in the calendar, I change the event but every time I saved it, it does not refresh to the calendar, not even the event itself, I have access to edit events


Answers:
author: Max Foerster - K15t
body: Hi Noelia,

where exactly are you trying to edit the event? In Confluence using your browser?

Best, Max

comments: author: Noelia Navarro
body: yes correct


author: Noelia Navarro
body: ![pppppp.png](https://community.atlassian.com/t5/image/serverpage/image-id/61884i759ADD94867DC82A/image-dimensions/328x211?v=v2 "pppppp.png")


author: Noelia Navarro
body: I tried to change the settings and then accept changes and after that nothing seems to change


author: Noelia Navarro
body: When I tried to add new invites none of them is added to the meeting invite.


author: Max Foerster - K15t
body: Are you an administrator of the instance and maybe have access to log files? I guess there will be errors in the log files. Also, your Confluence and app version are important to know.

Looking at the logs can be easily solved from within the Confluence administration with our free app called [Last Log for Confluence](https://marketplace.atlassian.com/apps/1216685/last-log-for-confluence?hosting=datacenter&tab=overview) if you don't have access to the file system. The only hint I've so far is this article: [Team Calendars for Confluence cannot be edited by a user who have permission](https://confluence.atlassian.com/confkb/team-calendars-for-confluence-cannot-be-edited-by-a-user-who-have-permission-437915315.html) (sic) - unfortunately not very helpful.

You can find other known issues here: [Team Calendars for Confluence Troubleshooting](https://confluence.atlassian.com/confkb/team-calendars-for-confluence-troubleshooting-249858385.html)


author: Max Foerster - K15t
body: That sounds similar to this issue here, which should have been fixed. [CONFSERVER-55000 Unable to change participants from who field in Team Calendars](https://jira.atlassian.com/browse/CONFSERVER-55000)


author: Noelia Navarro
body: Yes, it is the same issue, but no answer has been provided to the issue.


author: Max Foerster - K15t
body: Hi Noelia,

so that is unsatisfying but I strongly suggest opening a support ticket with Atlassian and providing a support.zip and even reference the ticket mentioned above so they have a closer look at it.

Best, Max


Tags: team-calendars-for-confluence
Is it possible to generate a private database key for my instance in confluence?
Asked by Daniel Medina:

Is it possible to generate a private database key for my instance in confluence?


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

If you're wanting to gain access to the database for any cloud product the short answer is, you won't be able to directly access the database. There is a bit more to the long answer which includes information around data security and compliance. Further information about this may be found at the following articles:

* [Data storage FAQ](https://confluence.atlassian.com/cloud/data-storage-faq-873871367.html)
* [Compliance at Atlassian](https://www.atlassian.com/trust/compliance)

Alternative methods to gain access to your data would be to use the REST API endpoints. Additional information on the REST API may be found at [Confluence Cloud REST API](https://developer.atlassian.com/cloud/confluence/rest/).

I hope this information proves helpful and you're able to access the data you need.

Regards,  
Stephen Sifers


Tags: cloud

confluence-cloud
Can Resolving Inline Comments be Disabled and Comments Locked?
Asked by John Corwith:

Because Confluence doesn't enable locking sections of text, we want to use the inline comments to make a permenant record of comments on sections. It seems we can disable deleting the comments, but they can still be Resolved and then have to be restored. Is there a way to configure the inline comments to disable the Resolve function? Also we want to lock the comments in view only mode once a document is finalized. Is there a way to do this?


Answers:
author: Shannon S
body: Hello John,

Thank you for contacting us about this. There's not a way to do this right now, but there's a feature request below to be able to disable comments:

* [CONFSERVER-54514](https://jira.atlassian.com/browse/CONFSERVER-54514) *Give Confluence admins the ability to 'lock down' a blog post or disable comments and likes*

There may be an add-on that could help you to control this, so you may want to have a look on Marketplace:

* [Atlassian Marketplace \> Comments Add-ons](https://marketplace.atlassian.com/search?product=confluence&query=comments)

Let me know if you have any questions about that.

Regards,

Shannon


Tags: atl-adm

atlassian-marketplace

confluence-server

server
How to set a link to the actual official version
Asked by PeterGraebner:

We use confluence holding different versions of our specification.

When links in the documents are set, they point to the version which was the actual one when it was set, but it dosn't point to the newest official version.

How can we solve this issue?


Answers:
author: Shannon S
body: Hello Peter,

Welcome to Atlassian Community. It's nice to meet you.

It's not clear on what you are trying to do here. How are you managing these versions exactly in Confluence? Are you using a 3rd party add-on?

If you can show us a bit more about how you are doing this then we will be able to advise you on a solution.

Regards,

Shannon


Tags: confluence-server

server
Format not supported error while updating confluence page through REST API
Asked by Murali:

Getting format not supported error while updating existing confluence page and creating new page. Any suggestions please? Thanks.

url -u user:pwd -X PUT -H 'Content-Type:application/json' -d '{"id":"1234","type":"page","title":"title1","space":{"key":"\~ABCDE"},"body":{"storage":{"value":"\<p\>This is the updated text for the new page\</p\>","representation":"storage"}},"version":{"number":2}}' <https://confluence.ab.xxxxxx.com/confluence/rest/api/content/1234>

\<!DOCTYPE html\>\<html\>\<head\>\<title\>Apache Tomcat/8.0.52 - Error report\</title\>\<style type="text/css"\>H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fon  
t-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#52  
5D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P  
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: n  
one;}\</style\> \</head\>\<body\>\<h1\>HTTP Status 415 - Unsupported Media Type\</h1\>\<div class="line"\>\</div\>\<p\>\<b\>type\</b\> Status report\</p\>\<p\>\<b\>message\</b\> \<u\>Unsupported Media Type\</u\>\<  
/p\>\<p\>\<b\>description\</b\> \<u\>The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.\</u\>\</p\>\<hr c  
lass="line"\>\<h3\>Apache Tomcat/8.0.52\</h3\>\</body\>\</html\>


Answers:
author: Fabian Lim
body: Hi Murali,

The 415 error code is an indication that your REST call is using the incorrect 'Content-type' header for the file you are trying to upload to Jira. This is explained in more detail in a related Fisheye KB [REST API: "Error 415 Unsupported Media Type"](https://confluence.atlassian.com/fishkb/rest-api-error-415-unsupported-media-type-313468261.html). I realize that KB is geared for a different product than your Jira Cloud, but the concept is the same here in terms of file attachments via REST.

Instead of using the header of
> 'Content-Type': 'application/octet-stream'

I think instead this should be something like
> 'Content-Type': 'application/pdf'

for this particular pdf file.

I hope this helps.


Tags: confluence-server

server
How do you keep all headings when importing from word to Confluence?
Asked by Brian Sheridan:

When I import a word document the Heading 1 style does not display. All other headings do seem to display.


Answers:
author: Bill Bailey
body: The Word document needs to be formatted using the default format names, for example Heading 1, Heading 2, etc. And make sure your headings are formatted using these styles and not formatted to look like a heading.

comments: author: Brian Sheridan
body: Do you meant that they need to have the default name and default style for Heading 1, Heading 2 etc?


author: Bill Bailey
body: Just the default name. I see a lot of Word docs where the user just manually formatted everything, so it may look like a heading but really isn't.

There are times when I need to re-level the headings, for example, if the doc has a chapter title, then H1, H2, etc. I then go back and reformat so that the hierarchy starts with H1.
Updating template instances
Asked by Preeti G. Karkera:

How to create a template that can be reapplied to instances of the template used across spaces. For example, we create a template and our users used the template in their own spaces, then we modify that template. How can we ensure that the new template's change would apply to my users template instance?


Answers:
author: Nic Brough -Adaptavist-
body: There are two layers of templates in Confluence - space templates and global templates.

Space templates are local to the space they are in, and are independent of other templates. But global templates can be used in any space and because they are single shared things, you change them and every space uses the new version from the second you commit the change.

comments: author: Preeti G. Karkera
body: Thank you for your quick response.


author: tpherr
body: Would this update existing docs that used the template?


author: Nic Brough -Adaptavist-
body: No, a template is a template, literally. When you use a template, you get what it is at that point in time.


author: EPS Software Engineering AG
body: Hi [@Preeti G. Karkera](/t5/user/viewprofilepage/user-id/3436524)

Maybe our Page Tree Creator could be a solution for your requirement.

With the Page Tree Creator you can create categories of templates. You can now assign these categories to the individual spaces. This means that you don't have to copy individual templates into the individual spaces and don't have to do the update afterwards.

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

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