youngmon/atlassian-qna huggingface dataset:
why log scanner ( Atlassian Support Tools ) not working
Asked by David Shapiro:

wget <https://confluence.atlassian.com/download/attachments/179443532/confluence_regex_v2.xml> on the server works fine, so it appears the server has access to the internet and the file.

This seems to indicate proxyhost jvm options are not needed, but all fixes seem to presume that wget fails, so there are no other suggestions.

There does not appears to be any errors to give me a hint on what the issue is in the atlassian-confluence.log.


Answers:
author: David Shapiro
body: Note that this is Confluence 6.2.2.


Tags: atlassian-support
Install Confluence in VDS (CentOS 7)
Asked by ??????? ?????????:

An error occurs during installation (Connection Timed Out Description: Connection Timed Out)

The error occurs during the database installation phase

![error.png](/t5/image/serverpage/image-id/33124i2C5476E0FE3D9931/image-dimensions/876x307?v=v2 "error.png")


Answers:
author: Nic Brough -Adaptavist-
body: It can take a few minutes to set stuff up in full. I'd recommend simply going to the base url again - it will pick up where it left off (or let you in if you were at the end of the install)


Tags: confluence-server

server
When you rename a space, does that break anything?
Asked by Chela Wallace:

We want to rename a space that has hundreds of sub-pages; if we rename the space, when folks go to a sub-page, will they get the "This page has moved" page?


Answers:
author: Tobias Anstett _K15t_
body: Hi Chela,

You have to differentiate between renaming the SpaceKey and the SpaceName.

In Confluence UI you should only be able to rename the SpaceName. This won't break anything as it is not used in any links, macros, etc.

However renaming the SpaceKey would potentially break a lot within that space, in other spaces pointing to this space, etc. (however this requires some workaround and can't be done in the UI).

Best, Tobias

comments: author: Bill Bailey
body: Which is why the SpaceKey cannot be changed ;-)


author: Chela Wallace
body: Yep, I was referring to just changing the space name, not the key, so I think we're good! Thanks for all the replies.


author: Nic Brough -Adaptavist-
body: It depend on how they get to the page. If they use a url that has the old key in it, then yes, they'll get the page moved thing and a redirect. If they use the short url or one with the page key in it, then they won't. Internal links in confluence will take them directly to the page as well.


author: Victor Mutambuki
body: Chela,

You can rename a space but cannot change the space ID.

Victor

comments: author: Chela Wallace
body: Thanks! Will renaming it trigger the "This page has moved" message when navigating to one of the renamed space's child pages?


author: Victor Mutambuki
body: Chela,

Renaming a space doesn't move anything.

Pages will just have the new space key in the URL for the pages.

Victor


author: Brett Hall
body: [@Victor Mutambuki](/t5/user/viewprofilepage/user-id/1796931) The Space Key cannot be changed, the Space name can be changed and doesn't change URLs as I understand it. Just want to clarify for future readers.


Tags: cloud

confluence-cloud
Inviting user to atlassian
Asked by Vignesh Natarajan:

Hi,

I want to invite people to atlassian via script. Could you provide me the Rest APi for inviting user to atlassian.


Answers:
author: AhmadDanial
body: Hello, Vignesh.

Officially, this is being tracked under [CRA-563: User CRUD APIs](https://jira.atlassian.com/browse/CRA-563) for REST API. If you are looking for alternative to it, you can consider using XMP-RPC and SOAP explained in the [User Management](https://developer.atlassian.com/server/confluence/remote-confluence-methods/#RemoteConfluenceMethods-UserManagement) documentation:

* void addUser(String token, User user, String password) - add a new user with the given password
* void addUser(String token, User user, String password, boolean notifyUser) - add a new user with the given password, and optionally send the user a welcome email (since 4.3)

Take note that even though it has been officially deprecated since Confluence 5.5, it will not be removed entirely until the corresponding features are available in the REST API. Give it a try and share the results here.

Additionally, you can also refer to the the article [here](https://community.atlassian.com/t5/Confluence-questions/When-will-Confluence-REST-API-allow-user-creation/qaq-p/594698) for additional reference. Thanks.
Confluence Look and Feel automation
Asked by Suyash Jain _Appfire_:

Hi,

I am working on an automation script which creates a clone instance of Confluence. Now I would like to keep the Look and Feel for this cloned instance differ from the actual one, using some automation way like. SQL or API or CLI.

Can someone suggest?

Thanks

Suyash


Answers:
author: Tobias Anstett _K15t_
body: Hi Suyash,

I am not aware that any theme manager resources are made available via REST.

Have you thought about coming up with an app which checks for the BaseUrl and based on that sets the theme using the regular SDK and the ThemeManager?

Best, Tobias

comments: author: Suyash Jain _Appfire_
body: Hi Tobias,

I am using Confluence default theme only.

So far, I have managed to update the look and feel by updating value of KEY "atlassian.confluence.colour.scheme" and value of KEY "atlassian.confluence.settings" for site title/base URL in **BANDANA**table.

This workaround is tricky as the value of keys must be converted in proper format otherwise the Confluence instance does not come up.

Thanks

Suyash


author: Anand Kumar Varma Potturi
body: [@Suyash Jain _Appfire_](/t5/user/viewprofilepage/user-id/1057097) Were you able to figure out how to change the color scheme through automation? Thanks in Advance.


Tags: confluence-server

look-and-feel

server
How can i get the page version using a specific page id?
Asked by Asam Malik:

I am using a bash script to update a specific confluence page. In order to actually make the update, I need to retrieve the current page version. I have tried to do this using this command:

curl -X GET "https://\<site\>/rest/api/content/pageID?=version"

But this doesn't return the version only, it returns a lot of other stuff that is not useful to me? What is the easiest way to retrieve a version of the page? I am new to using confluence so if I am making a newbie mistake, please let me know.


Answers:
author: Shawn C
body: Hi Asam,

The Confluence API can provide the full JSON of the page you're viewing and cannot pull just the value corresponding to the Number of Versions on the page.

If you're looking at updating a page in Confluence, you might want to query the endpoint:

```
/rest/api/content/pageID?expand=body.storage,version
```

This would provide you with the necessary Body Content (storage) of the page and the version number (to be incremented) to be used in the Data Payload when using PUT to [update the page](https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/).

Regards,  
Shawn

comments: author: HONG LY
body: Thanks!


Tags: atl-adm

rest-api
How to link Knowledge base articles related to a specific Customer within the "Customer" Space page?
Asked by Rick Soper:

Support,

I have created a "Knowledge Base" Space and have added a few articles. I have added a "wsp" label to specific articles.

I have created a "Customer" Space where I have added a page per Customer that contains their contact information. I have added a "wsp" label to a specific customer page.

**Question:**

How do I provide a link (leveraging the "wsp" label) between the Customer's page and the Knowledge Base articles that relate to the customer?

1) It would be great if the Knowledge Base article's titles appeared as a clickable list at the bottom of the Customer's page.

2) It would be great if the Customer's name appeared as a clickable link at the bottom of the Knowledge Base pages related to the customer.

Thank you in advance for your assistance with this,

Rick


Answers:
author: Shannon S
body: Hi Rick,

You can use the [Content by Label](https://confluence.atlassian.com/doc/content-by-label-macro-145566.html) macro on the bottom of each page, specifying the proper label. This will then show all pages that contain that label.

Have a read through that article and let me know if you have any questions.

Regards,

Shannon

comments: author: Rick Soper
body: Shannon,  

Thank you. This is a great option and gets me very close.  
The only remaining issue is: The page I put the control on is included in its own list.   
How can I filter out the "Current page" from the Label Macro list?  

Thank you,  
Rick


author: Shannon S
body: Hi Rick,

There's a feature request for that below:

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

You can vote on it and comment with your usage case and findings for better clarity on the issue.

Stephen Deutsch has come up with a workaround [in the following thread](https://community.atlassian.com/t5/Confluence-questions/How-do-exclude-the-current-page-from-the-display-when-using-the/qaq-p/416425).
> ...I did make a workaround until it can be implemented. I included a workaround in the ticket which I will duplicate here. If you include this in your Custom HTML (make sure you copy everything):
>
> ```
> <script> $(function() { $('.content-by-label > li > div > a').filter(function() { return $(this).attr('href') === contextPath + '/pages/viewpage.action?pageId=' + AJS.params.pageId || $(this).attr('href') === contextPath + '/display/' + AJS.params.spaceKey + '/' + AJS.params.pageTitle.split(' ').join('+') }).parent().parent().hide().parent().next().filter('div').hide(); }); </script>
> ```
>
> Then it will hide the current page from the results of the Content by Label macro. It's not perfect, but it should help.

This will likely just work for Confluence Server, since custom HTML isn't permitted in Cloud.

Let me know if you have any questions.

Regards,

Shannon
Hi all, I am Rashmi and seeking for an answer to a question on embedding excels to confluence
Asked by Rashmi Wickramasinghe:

I am in need of embedding an excel sheet which will be updated real time. This is solely to reduce my effort of always updating the tables. Is this possible with confluence?

Really appreciate if you could shed some light on this regard

Thanks


Answers:
author: Burak Kocak
body: Hi [@Rashmi Wickramasinghe](/t5/user/viewprofilepage/user-id/2022832), create a confluence page and save it, than add excel file as an attachment and edit your page and add excel macro from + sign on the left side of the editor bar.

Save your page, you can show your excel on the confluence page and if you edit for the edit in office link. When you save the excel it's automatically update the attachment.

comments: author: Rashmi Wickramasinghe
body: Hi [@Burak Kocak](/t5/user/viewprofilepage/user-id/1289653) .. Thanks for the answer. I did try out this method. But unfortunately the 'File Name' Does not display the name of the attachment which should have been taken automatically. :(


Tags: ms-excel
How to use the Attlassian companion in JIRA?
Asked by Benjamin Rosen:

Hi,

I've been using the Atlassian companion in Confluence to edit files without having to download/reupload. I can't seem to find a way to do it with JIRA attachments. I know there's a paid macro for this but I would like to try and avoid that. Is there a native / free way to accomplish this? Thanks!


Answers:
author: AhmadDanial
body: Hi, Benjamin.

While the functionality of Atlassian Companion is only available for Confluence as of now as mentioned in the [Edit Files](https://confluence.atlassian.com/doc/edit-files-170494553.html#EditFiles-AtlassianCompanionapp), there is no plans set in stone to bring the similar functionality to JIRA as of now. Nevertheless, I went ahead and created the following Suggestion:

* [JRASERVER-67990: Atlassian Companion for JIRA](https://jira.atlassian.com/browse/JRASERVER-67990)

I encourage you to visit the suggestion page linked above and click the *Vote* and *Watch* links near the top right to show support for the feature. By doing this, it will ensure you are proactively informed of progress and updates going forward.

Feel free to share your thoughts / feedback too by leaving a comment on the ticket as this helps the team prioritize \& understand the use case of the feature request.

Meanwhile, do you mind sharing the paid add-on that you are referring to so other users can check it out and see if it fits the business requirement that they have?

comments: author: Benjamin Rosen
body: Thank you so much, will do! This is the paid add-on: GoEdit - Direct Attachment Edit for Jira \| Atlassian Marketplace. Appreciate your help.


author: AhmadDanial
body: Hello, Benjamin.

You are most welcome and thanks for sharing the add-on too. For future reference of users who may be interested to check on the add-on mentioned by [@Benjamin Rosen](/t5/user/viewprofilepage/user-id/1962104), here is the link:

* [GoEdit - Direct Attachment Edit for Jira](https://marketplace.atlassian.com/apps/1214263/goedit-direct-attachment-edit-for-jira?hosting=server&tab=overview)


Tags: companion-app

jira

jira-server
User Macro for counting Child Pages with Label
Asked by Brian Taylor:

I have a macro that use to work that owed allow to select a page and a label and return the number of child pages under that page. but getting the following

Under Active Project Status Reports there are $pageCount pages with the label status-report

Instead of the number being returned I get the variable $pageCount

not sure why the this happening - any help appreciated

```
## @param ParentPage:title=Page|type=confluence-content|required=true|desc=Select a page for which to count the children 
## @param Label:title=label|type=string|required=true|desc=Specify a label to count #set($pageCount = 0) 
#set ( $colonIndex = $paramParentPage.indexOf(":") ) 
#if ( $colonIndex == -1 ) 
 #set ( $parentSpaceKey = $space.key ) 
 #set ( $parentPageName = $paramParentPage ) 
#else 
 #set ( $parentSpaceKey = $paramParentPage.substring(0, $colonIndex) ) 
 #set ( $parentPageNameIndex = $colonIndex + 1 ) 
 #set ( $parentPageName = $paramParentPage.substring($parentPageNameIndex) ) 
#end 
#set ( $parentPage = $pageManager.getPage($parentSpaceKey, $parentPageName) ) 
#foreach( $child in $parentPage.descendents ) 
 #foreach( $childlabel in $child.labels ) 
 #if($childlabel.name == $paramLabel ) 
 #set($pageCount = $pageCount +1) 
 #end 
 #end 
#end 
<p>Under $parentPageName there are $pageCount pages with the label $paramLabel</p>
```


Answers:
author: Bill Bailey
body: If I understand your comment, you are only seeing the variable name being displayed. That would suggest that the following statement is never found to be true:

```
 #if($childlabel.name == $paramLabel ) 
```

I would suggest using a different method to get a list of child pages, so instead of:

```
#foreach( $child in $parentPage.descendents )
```

I would try:

```
#foreach( $child in $parentPage.getChildren() )
```


Tags: atl-adm
Confiforms Issue: Currency default not correct
Asked by Tim Oldendorf:

I have a confiform that has a currency filed. It seems like it is defaulting currency symbol to ? instead of $.

I have the default set to $ in the form field definition. All it does is places the $ in front of ?

Is there another place I should look to see if the default is configured correctly? I think this started after recently updating the plugin.

![image.png](/t5/image/serverpage/image-id/33098iE9F84E4E0D942936/image-size/large?v=v2&px=999 "image.png")![image.png](/t5/image/serverpage/image-id/33099iCCEA9BDAE802F487/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Tim Oldendorf
body: Alex with Vertuna was able to help me with this one. Issue resolved.

comments: author: Maxim Grouchevoi
body: Hi, Tim.

Would you please share the solution. We have a similar issue. Thx.


author: Tim Oldendorf
body: If I remember correctly, all I had to do was set the formatting pattern.

I just inserted this ###,###.### in the field it displayed the correct currency.

You can learn more about the formatting here: <https://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html>

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


Tags: confiforms

confluence-server

server
How could I create a new page every time a developer pushes something into GitLab.
Asked by Fotios Kornarakis:

I would like to create a new page every time someone pushes something into gitlab. Have tried WebHooks. Have tried some apis using curls but doesn't work. Anyone has any idea about it?


Answers:
author: Shawn C
body: Hi Fotios,

There's no native functionality within Confluence that would allow us to create a page when an action occurs in a separate system. You'll want something that will listen to events from GitLab (like webhooks) that will then trigger the [Confluence API](https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/)to create a page for you.

Tools like [Zapier](https://zapier.com/) or [IFTTT](https://ifttt.com/) could be used as both your Webhook Listener and API Trigger.

Cheers,  
Shawn


Tags: atl-adm

cloud

confluence-cloud

git

gitlab
tab view
Asked by Sasha Rasmussen:

I am trying to figure out how I can make a tab view on a page in my space, can anyone help me?

On youtube I can find a macro that says "sibling tab", but I cant seem to find it in my version.


Answers:
author: Brant Schroeder
body: Sasha,

Have a look in the marketplace for Navitabs and Composition, both of those add-ons that allow you to make tabs. They both have a cost associated with them but it is the only way I know of to make tabs in Confluence.


author: Nic Brough -Adaptavist-
body: The "sibling tab" is something added by the admins of the system the video was taken from. Without knowing how it looks, I can't tell you which add-on they used to provide it.


Tags: tab
2FA available for jira, confluence and bitbucker cloud users?
Asked by maystormgames:

I read a lot, but still couldn't get a clear answer if two-factor-authentication is available out-of-the-box in jira, confluence and bitbucket cloud.

I read about "atlassian access", I know i can setup up 2FA on my atlassian-account, I know there are plugins for server-products... but no details on cloud apps.

We (3 users) want to migrate from our jira, confluece and bitbucket server apps to cloud, and we would like to enable 2FA for our jira users... (currently our confluence and bitbucket server apps are setup to use jira users)

Is this possible to manage users that way in the cloud and simply enable 2FA somewhere for those users? Or did I misanderstand how users are managed there?

thx!


Answers:
author: Alastair Wilkes
body: Hi Thomas,

Two step verification is available for free for all users, out of the box. As you mentioned, users can set up two step verification on their Atlassian account (which they use to log in to Jira, Confluence, and Bitbucket). You don't need to do anything to enable two step verification for your users; your users just need to enable it on their individual Atlassian accounts.

If you wish to *require* two step verification for your users, you'll need to purchase Atlassian Access, as Micky mentioned.

Alastair

comments: author: miikhy
body: Thanks for that addition which makes a huge difference, good to know!

Cheers


author: miikhy
body: Hi Thomas,

Atlassian Access is a pre-bundled package of services for Cloud products. It comes with a cost and everything is explained here: <https://www.atlassian.com/enterprise/cloud/access>

Atlassian Access includes 2FA for all products. As of now I did not see any alternative on Atlassian Marketplace.

I hope it helps and clarify!

Cheers

comments: author: maystormgames
body: Thx for the fast reply!

So if I would just take jira cloud "as-is" (10$ for up to 10 users), add my users, there would be no 2FA available for those users?

Unfortunately for atlassian access we would need to pay for at least 10 users...


author: miikhy
body: That's true, or at least we have the same understanding.

If you don't move to Cloud though, there are addons allowing you to enable 2FA.

Hope you'll find your way!

Cheers


author: maystormgames
body: Thx, that made it clear!

Btw: Do you know if I can add atlassian access later, or do I have to setup it up at the same time when i setup jira cloud?


author: miikhy
body: Good news: you have a month free to try it out!

Also, you can activate Atlassian Access anytime, even after initial setup!

Cheers


author: maystormgames
body: Great! Your info helped a lot!


Tags: authentication

bitbucket-cloud

confluence-cloud

jira-cloud
How to version confluence templates?
Asked by Bruce Becker:

Hello!

I am developing a template in confluence which others are expected to use to generate pages. It is a work in progress at the moment, while I collect feedback. It is difficult to do this without knowing which version of the template they were using, but I can't find how to tag versions of a template in Confluence.

Does such functionality exist?


Answers:
author: Ada Chen
body: Hi [@Bruce Becker](/t5/user/viewprofilepage/user-id/2010992) - You could include different labels in your templates (eg. "V1", "V2", "V3", etc.), so when people create pages off of the templates they'll be labeled with the version/naming convention you want.

There are more details on how to do that here: <https://confluence.atlassian.com/doc/create-a-template-296093779.html> (scroll down to "Labels" about halfway down the page).

comments: author: Bruce Becker
body: much obliged, [@Ada Chen](/t5/user/viewprofilepage/user-id/1182244)

The idea of using labels makes sense to me, although I find it a bit fragile. Another problem is that Confluence doesn't permit semantic versioning in labels, because\`.\` is not permitted in the label name. Can you comment on whether semantic versioning in labels would be possible?

Thanks!

Bruce


author: Ada Chen
body: [@Bruce Becker](/t5/user/viewprofilepage/user-id/2010992) - Fair point, as far as I know it is not possible due to the \`.\` limitation you mentioned. And for what it's worth, we use \`-\` internally.

I tried searching for a feature request related to this but didn't find any - if you feel strongly about it, I'd suggest submitting this as a feature request via jira.atlassian.com.


author: EPS Software Engineering AG
body: Hi Bruce,

Our App Page Tree Creator (PTC) could be a solution for your requirement. The PTC Template is based on a normal Confluence Page (can be more than one page, so a page tree). The Confluence version can be add to the page during the creation process. You also can combine the PTC with Comala Workflows.

You can find the PTC on the Marketplace.

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


Tags: confluence-server

server

template

version
Can i set restriction for task creation base don description field value?
Asked by Savita Datawade:

Sometime my team is ended up creating JIRA issue with no description and it's repeating most of the time. So i am exploring if i can restrict issue creation if no details added to description field.

Please let me know if it's something available in JIRA or gonna be available in upcoming versions.


Answers:
author: Savita Datawade
body: Hi [@Savita Datawade](/t5/user/viewprofilepage/user-id/1802306),

Yes, you can restrict the users from creating the ticket. Make the field required in the field configuration of the project.

Follow the steps that are given in this [document](https://confluence.atlassian.com/adminjiracloud/changing-a-field-configuration-844500798.html) (How to make a field required or optional)

Thanks,

Sravya

comments: author: Savita Datawade
body: Hi [Sravya Chintalapudi](https://community.atlassian.com/t5/user/viewprofilepage/user-id/859937),

Thanks for the quick help! It resolved my problem:):)

Regards

Savita Dattawade


Tags: cloud

confluence-cloud

jira