youngmon/atlassian-qna huggingface dataset:
Confluence API Get content template
Asked by Grzegorz Ostrowski:

I am trying to create page from template using powershell in yaml pipeline.

This is my code:  
$urlGetTemplate = "https://???.atlassian.net/wiki/rest/api/template/33980675"  
Write-Host "URL: $urlGetTemplate"  
$username = "?????????"  
$password = "?????????"  
$base64AuthInfo = \[Convert\]::ToBase64String(\[Text.Encoding\]::ASCII.GetBytes(("{0}:{1}" -f $username,$password)))  
$headers = @{  
'Authorization' = 'Basic ' + $base64AuthInfo  
'X-Atlassian-Token' = 'no-check'  
'Connection' = 'keep-alive'  
}  
Write-Host "base64AuthInfo:" $base64AuthInfo  
\[string\]$templateObject = Invoke-RestMethod -Method Get -Uri $urlGetTemplate -ContentType "application/json" -Headers $headers  
I dont get any error, but I get this empty template:  
{  
templateId=33980675;  
originalTemplate=;  
referencingBlueprint=com.atlassian.confluence.plugins.confluence-business-blueprints:file-list-blueprint@DOK;  
name=File list;  
description=Upload, preview and share files with your team.;  
space=;  
labels=System.Object\[\];  
templateType=page;  
editorVersion=v2;  
body=;  
_links=  
}  
I checked the same Request using postman and SoapUI and I get json with full template data. Can anybody tell me why Powershell Invoke-RestMethod gives me empty json without error?


Answers:
author: Pramodh M
body: Yeah [@Grzegorz Ostrowski](/t5/user/viewprofilepage/user-id/31347)

I'm afraid this is not yet supported for Cloud

Here's the reference for the feature request

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

Let me know if you have any queries

Thanks,  
Pramodh

comments: author: Grzegorz Ostrowski
body: Thanks for reply.

So it is not possible to get project template using powershell?

I dont wont to create page from template in one API method. I want only to get project template using API method GET /wiki/rest/api/template/{contentTemplateId}

I am able to get full json template using SopaUI or postman, why powershell returns me nearly empty json with 200 response. I use powershell in jira and confluence API to add Attachments and Pages with success, but why I cant get template through API?


author: Pramodh M
body: Hi [@Grzegorz Ostrowski](/t5/user/viewprofilepage/user-id/31347)

Try this API

<https://developer.atlassian.com/cloud/confluence/rest/api-group-template/#api-wiki-rest-api-template-blueprint-get>

GET /wiki/rest/api/template/blueprint

With the above API you should be able to get all the templates

*** ** * ** ***

GET /wiki/rest/api/template/{contentTemplateId} - this one is for templates which you have built.


author: Grzegorz Ostrowski
body: I am sorry for your trouble.

It was my simple mistake with powershell object.

But thanks for your reply


author: Pramodh M
body: Can you please accept the answer as accepted :-)


author: Jitesh Sevani
body: [@Grzegorz Ostrowski](/t5/user/viewprofilepage/user-id/31347) What was the mistake you made? Can you clarify?


Tags: api

cloud

confluence-cloud

powershell
Auto generate a blog post
Asked by Fadi Ghanim:

Hi,

I wanted to get some assistance to see if it is possible to auto-generate a blog post daily copying the same format from the previous blog post. This automation would help save me time, so i would appreciate your assistance.

Powered by Atlassian Confluence 7.4.8


Answers:
author: Pramodh M
body: Hi [@Fadi Ghanim](/t5/user/viewprofilepage/user-id/4727486)

Welcome to Confluence!!

Confluence does not support blog templates!!

Use the guide here to build a re-usable template for Pages, once you create the page then it can be converted to a blog, this is a two-step process.

<https://confluence.atlassian.com/doc/create-a-template-296093779.html>

Here's a reference

<https://community.atlassian.com/t5/Confluence-questions/Blog-post-template-for-Confluence-Cloud/qaq-p/1052705>

<https://community.atlassian.com/t5/Confluence-questions/How-do-I-create-a-blog-post-template/qaq-p/1070829>

Thanks,  
Pramodh


author: Fabian Lim
body: Hi [@Fadi Ghanim](/t5/user/viewprofilepage/user-id/4727486)

Welcome to the community

You can create a template and re-use it for your spaces.

Instructions: <https://support.atlassian.com/confluence-cloud/docs/create-a-global-template/>

Regards
Log4j vulnerability
Asked by Sandeep Vellore:

Hi,

We were asked to remove log4j-core.jar and other log4jXXX.jar related files from Confluence ,JIRA \& GIT servers.

Kindly confirm if there is any impact to the application if they ask us to remove these files due to log4j vulnerability.

Let us know if you need the path where these files are available


Answers:
author: Pramodh M
body: Hi [@Sandeep Vellore](/t5/user/viewprofilepage/user-id/4393871)

Don't remove the jar files, the issue has already been fixed. You just need to upgrade the servers to a fixed version or the latest version if it's possible for you

Please find the reference here

<https://confluence.atlassian.com/security/multiple-products-security-advisory-log4j-vulnerable-to-remote-code-execution-cve-2021-44228-1103069934.html>

Thanks,  
Pramodh

comments: author: Guru Darbar
body: Would it break the application if you replaced the offending .jar files with the updated ones from Apache?

[https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.17.1/log4j-core-2.171.jar](https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.17.1/log4j-core-2.17.1.jar)

and

<https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api/2.17.1/log4j-api-2.17.1.jar>

If that works, then the applications would pass a CVE audit.


author: Kishan Sharma
body: Hi [@Sandeep Vellore](/t5/user/viewprofilepage/user-id/4393871)

Atlassian Security team investigated the impact of the Log4j remote code execution vulnerability (CVE-2021-44228) and have determined that no Atlassian on-premises products are vulnerable to CVE-2021-44228.

So you don't need to remove the log4j.jar files. You can check if you are vulnerable by inspecting the Log4j configuration file. If you find a line containing the `org.apache.log4j.net.JMSAppender`, you may be vulnerable. If you do not find a line containing the `org.apache.log4j.net.JMSAppender`, you do not have this specific vulnerable configuration. I would suggest you to go through [FAQ](https://confluence.atlassian.com/kb/faq-for-cve-2021-44228-1103069406.html) as well for more details.


Tags: confluence-server

cve-2021-44228

server
Confluence account <Adding Users>
Asked by justin mitchell:

I have large group of developers and internal stakeholders on Jira account.

Can I sign up for Confluence and only transition or add PM/BA/Admin roles to access confluence?   
Or will their content not be available for rest of the team?

Thank you!


Answers:
author: Mikael Sandberg
body: Hi [@justin mitchell](/t5/user/viewprofilepage/user-id/4727250),

Welcome to Atlassian Community!

Yes, you can have lesser number of users on Confluence compared to Jira if you like. If you want everyone to be able to view the content in Confluence you would have to open it up for anonymous users to use and view Confluence content.

comments: author: justin mitchell
body: Much Thanks!


Tags: cloud

confluence-cloud
Do query to SQL Server
Asked by CLAUDIA VALDERRAMA VILLAR:

Hi All:

I?m creating a se of pages to document the data model from SQL Server database.

I want just to run 8 or 9 parametrized queries to an aplication Database Server, and show the result tables in confluence page.

What are the best way and connector or plug in to do that?

Thanks for your time

CRV


Answers:
author: Sven Schatter _K15t_
body: Hi [@CLAUDIA VALDERRAMA VILLAR](/t5/user/viewprofilepage/user-id/4727216),

One app made specifically for this purpose which I can recommend is [PocketQuery for Confluence](https://marketplace.atlassian.com/apps/1211199/pocketquery-sql-rest-for-confluence?tab=overview&hosting=server) by Lively Apps. It can connect to any database that supports JDBC and display the result of queries in a table, charts, or anything you can come up with yourself by using custom templates.

If you have any questions about the app I'm sure [@Georg Schmidl ?](/t5/user/viewprofilepage/user-id/4528235) from Lively Apps will be happy to help - or you can contact the [Lively Apps support](https://go.livelyapps.com/support).

Cheers,  
Sven


Tags: confluence-server

ms-sql

server
pixel dimensions for header images on pages?
Asked by Laura Vinchesi:

What is guidance for posting header images without distortion on pages?


Answers:
author: Pramodh M
body: Hi [@Laura Vinchesi](/t5/user/viewprofilepage/user-id/4727223)

Welcome to Confluence!!

The header image is fixed in size, so it's not going to disrupt your page view.

Thanks,  
Pramodh

comments: author: Laura Vinchesi
body: Pramodh, what is the fixed pixel dimension? I'm having a hard time uploading images that don't get stretched


Tags: cloud

confluence-cloud
Cloud migration error Permission type not allowed: USECONFLUENCE
Asked by Infinity Tech:

I am getting an error while trying to use the cloud migration wizard. I have also tried to manually export and import spaces and get the same error.


Answers:
author: Pramodh M
body: Well, One line statement is not enough for us to support, provide us the error details with some screenshots!!

You could try KB Articles for troubleshooting!!

Here's the Guide

<https://support.atlassian.com/migration/docs/use-the-confluence-cloud-migration-assistant-to-migrate>


Tags: cloud

confluence-cloud
emojis of title&page doesn't show up within macro (pagetree, children display) ?
Asked by Martin Hecker:

Hi

1. add page-A to a page (=*root*)
2. add emoji to title\&page
3. move back to *root*
4. add macro *page tree* or *children display* to *root*
   1. edit *macro:* root to root
5. publish
6. within page tree on *root* the **emoji** doesn't show up. Only the title but NOT the emoji

Please help or add this feature to the resp. macro


Answers:
author: s_delugan
body: Having the same issue where many emojis and page titles will appear in the child page macro, but some emojis will not appear with their titles.

Is there some restriction on emojis preventing some from appearing? I presume that the emojis would not be allowed in Confluence in the first place if there was a restriction.

Atlassian, please fix this.


author: Holger Krieg
body: Atlassian should fix this issue, but actually we are waiting for above 2 years.


author: Pramodh M
body: Hi [@Martin Hecker](/t5/user/viewprofilepage/user-id/3529793)

For now, this is the way how it works, the emoji display is limited when you navigate to the page.

When you refer to the page elsewhere, only the page title will show up, not along with emoji.

Thanks,  
Pramodh

comments: author: Sascha Schantz
body: Hello,  

The emoji will be displayed on other pages when using the link tool and selecting "Display Inline"

![Screenshot 2022-04-25 092440.png](https://community.atlassian.com/t5/image/serverpage/image-id/194443i39F739CE560C1189/image-size/large?v=v2&px=999 "Screenshot 2022-04-25 092440.png")


author: Kristin Lyons
body: This might be a limitation of the macro - I just tested using the recently updated macro and it shows just the name of the page and not the emoji in the page title.


Tags: cloud

confluence-cloud
Is it possible to disable page export and search confluence subpages in e. g. Google Chrome?
Asked by Jonathan Scheil:

For my project I need to create a public accessible confluence space in which subpages are searchable (not only one landingpage) from e.g. google chrome and the page export (word/pdf) must be disabled.

Is this currently possible?


Answers:
author: Pramodh M
body: Hi [@Jonathan Scheil](/t5/user/viewprofilepage/user-id/4726711)

Welcome to Confluence!!

Page Export Restriction is a feature request yet

Reference here

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

Confluence objects are definitely searchable via the search bar which is provided by Atlassian

Chrome search is not a way to search the data in confluence pages!! But to answer your query, No it's not possible!!

Thanks,  
Pramodh

comments: author: Jonathan Scheil
body: Thank you for the fast answer.


Tags: cloud

confluence-cloud
The Atlassian Companion App
Asked by Rolf Abildgaard-Roope:

Hello

I can see when following below guide on how to edit an attachement, that The Atlassian companion app will be removed by the end of March 2022

Anybody knowns if the Office connect will be introduced in Confluence Cloud or what to do at that time?

Asking as we don't want to start using the companion app now and loose the possibility to edit attachments in a year.

[Edit an attached file \| Confluence Cloud \| Atlassian Support](https://support.atlassian.com/confluence-cloud/docs/edit-an-attached-file/#Editfiles-attachmentspage)


Answers:
author: Pramodh M
body: Hi [@Rolf Abildgaard-Roope](/t5/user/viewprofilepage/user-id/4586442)

Welcome to Confluence!!

Cloud may provide a way to edit the files in the web browser itself when Companion App support ends

Reference here

<https://community.atlassian.com/t5/Confluence-articles/Removing-the-Companion-app-from-Confluence-Cloud/ba-p/1884657>

Thanks,  
Pramodh

comments: author: Rolf Abildgaard-Roope
body: Hi Pramodh

Yours received with much thanks. Unfraternally Google Drive isn't an option as we're not allowed to use the same within our company.

Seams like I need to look for a app.

Br,

Roro


Tags: cloud

confluence-cloud
Confluence cloud trial domain name
Asked by rsw_ag:

Hello everyone,

I am currently in the process of elaborating a migration of our confluence server to the confluence cloud.

While activating the trial I noticed that I already have to choose a domain name. Therefore, my question:

Since I'm only able to change the domain name via contacting the atlassian Support, should I use a throwaway domain name for my trial or am I able to convert it to my 'real' atlassain domain name afterwards?


Answers:
author: Pramodh M
body: Hi [@rsw_ag](/t5/user/viewprofilepage/user-id/4726634)

Welcome to the community ?

You can convert it to real (prod) atlassian domain name

Create another instance for trial for testing and keep the prod as active when you migrate prod data from server

Let me know if you have any queries

Thanks,

Pramodh


author: Lars Maehlmann
body: Hi [@rsw_ag](/t5/user/viewprofilepage/user-id/4726634)

I believe you have the option to change the URL three times by yourself since yesterday. They just released the feature but it worked very well for my own private instance.

Please go on <https://admin.atlassian.com>

There you will find your domain.

1. Switch to Products

2. Product URLs

and there it is possible to change the URL. [Here](https://view.e.atlassian.com/?qs=0a66f85c9c2ac06dc8a6c618cb8ae63f091bd4e3e0da6b96be240552b132773450709c332d84b4274c4747839b901961ebbf76ec149a6eec3d0d456824b6da82a6154ed238a8509a58e18c9d4489c2e34c70c1d103d37798405413064a7aa3bb) is the post.

I hope this helps.

Cheers,

Lars


Tags: confluence-server

migration-customer-care

server

trial
How can I add the analytics measurement id for my page configured at atlassian.net?
Asked by Klaida Sulko:

I want to measure the traffic in mypage.atlassian.net. How can I put the measurement Id in this website? Could you please help me? :)


Answers:
author: G subramanyam
body: Hi [@Klaida Sulko](/t5/user/viewprofilepage/user-id/4708653) welcome to the Atlassian community.

Here's the [steps](https://support.atlassian.com/confluence-cloud/docs/view-insights-on-your-site/) to view insights for your site.

comments: author: Klaida Sulko
body: Thank you [@G subramanyam](/t5/user/viewprofilepage/user-id/3929184) So if i want to see users and other data in mypage.atlassian.net I have to open analytics section inside that space. I don't have to add other measurement ID or to add a property in my analytics for that. Am I right?


Tags: cloud

confluence-cloud
Does the name change of the area have any impact?
Asked by Carolin:

I would like to change the name of a space in Confluence. Does this have an impact? So that links no longer work, is no longer displayed as a favorite or observations have disappeared?


Answers:
author: Nic Brough -Adaptavist-
body: It will only break things outside confluence that are using the name in a search, and most people would not have any need to be writing external searches that do that. Links, locations, access, all the internal functions, all totally unaffected.

Now, if you were to change the space's key, that is a different story...

comments: author: Pramodh M
body: Space key is not editable [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) from UI


author: Nic Brough -Adaptavist-
body: I know, but it's remarkably easy to change during migrations or with apps.


author: Laura Holton _ACE Rotterdam_
body: Hi [@Carolin](/t5/user/viewprofilepage/user-id/4726298) ?

Welcome to the Community! Changing the Space Name won't break anything as it is not used in any links, macros, etc., changing the Space Key would have an impact but luckily this cannot be easily done.

I hope this helps but if you have any other questions just ask away ?

All the best,

Laura


author: Pramodh M
body: Hi [@Carolin](/t5/user/viewprofilepage/user-id/4726298)

Basically No Impact on Space (But Space Home Page Name will not change here, if you need to change it edit on Home Page)

Here are the complete details on changing Space Name

<https://community.atlassian.com/t5/Confluence-questions/Rename-Name-of-the-space-and-also-the-space-Home-page/qaq-p/1401801>

Thanks,  
Pramodh


author: Rilwan Ahmed
body: No impact as only name will be changed and not key. Page urls will show page ID instead of names sometime and its OK


Tags: cloud

confluence-cloud
Unable to access Atlassian Marketplace server
Asked by Nanting Liu:

My confluence cannot access the Atlassian Marketplace server, is this atlassian's own problem or mine, the firewall configuration is normal.


Answers:
author: Pramodh M
body: Hi [@Nanting Liu](/t5/user/viewprofilepage/user-id/4473318)

There is an Active incident with Marketplace

<https://developer.status.atlassian.com/>

Try again once the incident is resolvd!!

Thanks,  
Pramodh


author: Pramodh M
body: Hi [@Nanting Liu](/t5/user/viewprofilepage/user-id/4473318)

The server should be reachable to marketplace.atlassian.com over port 443 (Outbound)

Let me know if you are able to get a response when you enter the command

curl <https://marketplace.atlassian.com>


author: Nanting Liu
body: ![image (2).png](https://community.atlassian.com/t5/image/serverpage/image-id/179641iE26B00F4231DF5B6/image-size/large?v=v2&px=999 "image (2).png")


Tags: confluence-server

server
Page Layout: How to reduce the space between columns in a Two-Column Section
Asked by Aaron Stella:

Hi there,

I'm trying to reduce the space between columns in Two-Column Section page layout. Please see the image below (area in referenced is circled).

I just want to reduce that space. I've tried the other page layout options and no matter how I size my table column in the right section it requires a little scrolling to the right to see the full table.

I've searched on how to do this. I've tried adjusting the column width with using your macros. Nothing seems to work.

Would really appreciate you assistance in this matter. Thanks so much in advance. Looking forward to your response. - Aaron

![Screen Shot 2022-01-25 at 1.03.51 AM.png](/t5/image/serverpage/image-id/179639i4B70D09B3B18C73F/image-size/large?v=v2&px=999 "Screen Shot 2022-01-25 at 1.03.51 AM.png")


Answers:
author: Pramodh M
body: Hi [@Aaron Stella](/t5/user/viewprofilepage/user-id/4725946)

Welcome to Confluence!!

Use Columns Macro instead of Page Layouts macro

Please refer to this documentation on how to make the page responsive

<https://confluence.atlassian.com/doc/page-layouts-columns-and-sections-275188613.html>

Thanks,  
Pramodh


author: Bill Bailey
body: Does your table have fixed widths set? And have you tried the layout option that has a narrow left column and wide right one?

comments: author: Aaron Stella
body: I did. It did not work, but thanks for the response! I got an answer from a community leader below. Thanks so much for your input though!


author: Maltavius
body: Define the width of the left and right column to be 50% each.

comments: author: Aaron Stella
body: Perfect!


Tags: confluence-server

server
Confluence as CMS
Asked by keerthi:

currently we have a requirement to develop a CMS website, currently they manages their contents in confluence , so the requirement is to develop CMS using Confluence , is this feasible , also if possible do you think Confluence is better than Sharepoint, please advise.


Answers:
author: Bill Bailey
body: Hello [@keerthi](/t5/user/viewprofilepage/user-id/4725911) , the answer sort of depends on what you requirements are. Confluence, CMSes and SharePoint server different purposes.

If you want to have a help system with bunches of articles like Wikipedia, then Confluence will work. If you want to develop a website with custom menus, custom layouts, etc., you will need a CMS.

I have used Confluence, WordPress (which I hate), Drupal (which I love), and SharePoint (which I loath). So I am well aware of their relative strengths and weaknesses.

In fact we develop content for our website in Confluence, but then use Drupal to build the actual website as you have much more control over menuing, page display, custom functions, etc.


author: Pramodh M
body: Hi [@keerthi](/t5/user/viewprofilepage/user-id/4725911)

Welcome to the Community!!

Here are some articles you can get started with to better plan for your requirement

<https://community.atlassian.com/t5/Confluence-questions/Confluence-as-Content-Management-System-Any-addons/qaq-p/894525>

Thanks,  
Pramodh
Confluence 6.10 to 7.15
Asked by zalim786:

Hello guys,

we want to upgrade our confluence Data Center (Server) from 6.10 to 7.15.

what is the best method to do it? I cant find any proper documentation related to that issue.

System Information:  

Version 6.10

Build: 7702

Regards


Answers:
author: Pramodh M
body: Hi [@zalim786](/t5/user/viewprofilepage/user-id/3799494)

Here's the Approach.

The upgrade is one hop upgrade

Take a look at DB and supported versions when you move to an upgraded version whether it's supported.

Once you have planned on the DB part.

It's just having the instance checked on App compatibility and then upgrading the instance.

Here's the reference

<https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

Thanks,  
Pramodh

comments: author: zalim786
body: thats another problem, i dont see how to look at if its supported ot not.  

I dont have **Plan your upgrade**.

Regards


author: Pramodh M
body: This is proper documentation. Read it

<https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

Here are the Supported platforms doc --\> <https://confluence.atlassian.com/doc/supported-platforms-207488198.html>

Let me know where you are exactly stuck!!


author: zalim786
body: So healthcheck is ok but i am stuck here.

we dont have that in our confluence

Go to \> Manage apps and scroll down to the Confluence Update Check to check the compatibility of your Marketplace apps.

Choose the version you plan to upgrade to then hit Check.

There are things mentioned in that documentation that our confluence dont have.  

We dont have plan update or confluence update check.


author: Pramodh M
body: You are using 6.10 of Confluence right?

Here's the doc for that

<https://confluence.atlassian.com/conf610/upgrading-confluence-952623403.html>


author: Nanting Liu
body: Hi [@Ibtisam_Farrukh](https://community.atlassian.com/t5/user/viewprofilepage/user-id/3799494)

Upgrading became easy for me by importing that backup directory backup, so I upgraded from 6.15 to 7.15


author: Nanting Liu
body: <https://confluence.atlassian.com/doc/upgrading-confluence-4578.html>

Hi [@Ibtisam_Farrukh](https://community.atlassian.com/t5/user/viewprofilepage/user-id/3799494) For me this method works


Tags: confluence-server

upgrade