youngmon/atlassian-qna huggingface dataset:
Not sure how to reach my company template
Asked by s?ren christensen:

Looks a bit confusing, but perhaps it is just a matter of trying more....


Answers:
author: Shannon S
body: Hello S?ren,

Sorry to hear you're having trouble using your company template.

When [creating content](https://confluence.atlassian.com/confcloud/create-edit-and-publish-724764831.html) on Confluence, you can click the **+** icon in the sidebar, and it will take you to a menu of available templates. If you remember the name of the template, you should be able to scroll down and select it. Be aware that some templates are created as Space Templates, and are only available for the given space. So you may need to change the selected space before you can select that template. See [Blueprints and User Created Templates](https://confluence.atlassian.com/confcloud/blueprints-and-user-created-templates-724764985.html) for more information on templates.

If you are still not able to find the required template, then you will want to get in touch with your Confluence administrator. They will be able to take a look and let you know where you can find the required template. If your administrator is then unable to locate the template, they are welcome to [contact the Atlassian Support team](https://support.atlassian.com/contact) and we can help them find the missing template.

I hope this helps, but let me know if you have any trouble!

Regards,

Shannon

comments: author: s?ren christensen
body: ok thnks


Tags: cloud
Pagetree + Toc
Asked by Rino.Bresolin:

Is there a function that brings together Pagetree + Toc?

I would like to create in a page the summary of the sub pages (pagetree) including the titles they contain (Toc)


Answers:
author: Victor Mutambuki
body: Rino,

Take a look at the [Page Tree Macro](https://confluence.atlassian.com/doc/page-tree-macro-163414255.html).

Victor

comments: author: Giuseppe Ursino
body: The Page Tree Macro show only the list of children pages. I think that Rino would also the table of contents (TOC) of every children page.


author: Rino.Bresolin
body: It's just like Giuseppe writes. I would like to have the table of contents (Titele1, Title2, etc) together at list of children pages.


author: Rino.Bresolin
body: Suppose i want to write a book: I'd like to have a toc al the start of the book. The book is a saga composed of many chapter. Every chapter is a confluence page. In a confluence page I have many sections....


Tags: cloud
Scriptrunner macro to produce table from External mysql database
Asked by Moritz Wagner:

Hello,

I'm just new to scriptrunner and trying to produge a macro that can output a table with data gathered by various MySQL queries. However I didn't get the output logic of custom scriptrunner macros yet. So displaying simple text is just putting a plain text into the code console, but as soon as I add my Mysql qiery it outputs the result object. Further more when trying to print the result object nothing changes. What am I missing here?

So this outputs the result object:

```
import com.onresolve.scriptrunner.db.DatabaseUtil
'Hello <b>world</b>!'
def authors = DatabaseUtil.withSql('Jira') { 
sql -> sql.rows('select * from jiraissue WHERE ID < 10500')
}
```

and this results in outputting "null":

```
import com.onresolve.scriptrunner.db.DatabaseUtil

def authors = DatabaseUtil.withSql('Jira') { 
sql -> sql.rows('select * from jiraissue WHERE ID < 10500')
}
print('Hello <b>world</b>!')
```

Would be very nice, if somebody could give me a hint here, on how to output my result to form a table on the confluence page.

Thanks very much,

Moritz


Answers:
author: Moritz Wagner
body: Okay I now understood, that the page output equals the macro script return value/output

So to produce a table one can simply use the following:

```
def xhtmlContent = ComponentLocator.getComponent(XhtmlContent)
def writer = new StringWriter()
def builder = new MarkupBuilder(writer)
def entity = context.getEntity()

def issues= DatabaseUtil.withSql('Jira') { 
  sql -> sql.rows('select * from jiraissue LIMIT 1000')
}
def output = "<table><tbody><tr><th>ID</th><th>Summary</th><th>Author</th></tr>"
def counter = 0

for(iss in issues){
  output = output + "<tr><td>"+iss.ID+"</td><td>"+xhtmlContent.convertWikiToView(iss.Description,context,new ArrayList<>())+"</td><td>"+iss.creator+"</td></tr>"

  counter=counter+1
}

xhtmlContent.convertStorageToView(output + "</tbody></table>Counted: "+counter, context)
```

Maybe this simple example helps other newbies getting a jumpstart.

Now I just have to learn how to invoke jiras wiki parser for the jira wiki content instead of confluence's but maybe I'll add that later.

Thanks and have a great day,

Moritz


author: Jessie Wang_ScriptRunner_The Adaptavist Group
body: Hi there, ScriptRunner now has a video up that shows you how to do this.

It will talk you through how to establish a database connection then how to display the results of a SQL query on a Confluence page via a custom macro. <https://www.youtube.com/watch?v=5UkGsOtkoTg>

The script for the custom macro can be found here: <https://library.adaptavist.com/entity/display-sql-results-from-an-external-database-macro>


author: Alexander Eck [Tempo]
body: Just from curiosity. Where do you display the information?

Thanks

comments: author: Moritz Wagner
body: I attached this code to a custom macro, so that I can display it on any Confluence page right at the position I add the custom Macro.


Tags: adaptavist

database

mysql

scriptrunner
How to add confluence space in quick links
Asked by K Vivek Rao:

I have created one space in confluence and i want to add that space link in quick links some one kindly help me on this.


Answers:
author: Brant Schroeder
body: I believe you are trying to configure shortcut links. This will help you: <https://confluence.atlassian.com/doc/configuring-shortcut-links-135903.html>


Tags: confluence-server

server
Unable to reset password
Asked by pcc_callcenter:

I click 'Can't access your account?' for reset password and enter e-mail which registry by Admin JIRA completely in reset password page. When I click 'Send' the reset page is redirect to Office365 and I can't login. What should I do?


Answers:
author: Sajit Nair _Trundl_
body: hi [@pcc_callcenter](/t5/user/viewprofilepage/user-id/3163379) -

It must be trying to send email via your outlook account.   
Can you try using an incognito mode ?  

Regards-

SN


Tags: cloud

confluence-cloud

password

reset
Can't add pages
Asked by Daniel Reyzman:

I have created a confluence space, but I am unable to add pages. The + symbol to add a page is simply not there. I have created the space myself and have admin rights, yet don't see it. Why?


Answers:
author: Ludovic_Petrenko
body: I have the same issue, I use the cloud version with the free plan.

I am the administrator of the site, and I am in every permission groups.

I tried to add a page to an existing space and it didn't work, I deleted it and recreated it and it still didn't work.

It used to work by the past and I don't believe there was any permission modification in between.

The "add" button is not here, I tried on Chrome and Firefox so it's probably not a browser issue.

I see a few error messages in the browser console, but none seem pretty relevant to that issue, even tho I might be wrong.

comments: author: mhl
body: I don't see an "add" button or any pages at all on my first space. I created another space, and it has some default pages where I can add sub-pages with no problem. Then I realized that I cannot just copy the roadmap I created with the Roadmap Planner Macro from the first space to my second space, so I'm looking for ways to create a new page on my first space. But there are no pages where I can add a sub-page to...


author: Johnrey Girasol
body: Any update on this? Pretty much exactly happening to me now.


author: Ollie Guan
body: Hello [@Daniel Reyzman](/t5/user/viewprofilepage/user-id/3569317) ,

In the space permission scheme, space management and page creation are two different options. Have you added the permission to create pages for yourself?

<https://confluence.atlassian.com/confcloud/assign-space-permissions-724764762.html>

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

comments: author: Daniel Reyzman
body: I have checked the settings and it does show that I have the permissions turned on


author: Ollie Guan
body: Sorry for late.

Could you upload a screenshot of your confluence?


author: Johnrey Girasol
body: Any update on this? Pretty much exactly happening to me now.


author: Shelly.Willoughby
body: I had the same problem so I came here to find resolution. Since there was none, I went back and realized that I could hit the "Create" button in the top menu of my space to create the page. It was available in the side navigation once I published it.

![01-21-2021 9-31-25 AM.gif](https://community.atlassian.com/t5/image/serverpage/image-id/126690i20CE7B1A694E9AFB/image-dimensions/643x153?v=v2 "01-21-2021 9-31-25 AM.gif")


Tags: atl-orange

cloud
Where can if find the replacement of the old Notifications - ScriptRunner" app?
Asked by Florian Wehner:

Hey! I am looking for the replacement of the [Notifications - ScriptRunner Confluence](https://marketplace.atlassian.com/apps/1218822/notifications-scriptrunner-confluence?hosting=server&tab=overview) app. Adaptavist says it is now included in script runner. I cannot find any included scripts that would fit this functionality. Any idea how to get this feature back?

I am currently preparing the migration from Confluence Cloud to Server (currently running 7.3.1) and this is one of our must have features.


Answers:
author: Katy Kelly
body: Hi Florian,

We are currently in progress on incorporating the Notifications add-on into the core ScriptRunner for Confluence product. When complete, it means you will no longer need a separate add-on for these features.

This means that the Notification add-on is still available to install alongside ScriptRunner, however, it is not currently compatible with the latest version of Confluence, which is why you cannot see it through the UPM.

You can download the latest version of Notifications directly [here](https://marketplace.atlassian.com/apps/1218822/notifications-scriptrunner-confluence?hosting=server&tab=versions).

Kind regards,

Katy

Adaptavist Product Support

comments: author: Florian Wehner
body: Thank you. I gave it a quick try even though incompatible and it seems to work in 7.3.1. any hint where we might see problems?


Tags: adaptavist

confluence-server

scriptrunner

server
Copied article does not save
Asked by Leo Tohill:

I have an existing page/article titled "hot dog". I choose "copy" from the ellipses menu. A new page titled "copy of hot dog" appears. I then click Close.

The new page is not findable. It's not under "Activity" or "Your work". It's gone.

It doesn't matter if I edit it before closing it. It's gone. I lost a good bit of work due to this problem

The help article [https://confluence.atlassian.com/doc/copy-a-page-139013.html](https://confluence.atlassian.com/doc/copy-a-page-139013.html?) describes the Copy feature, but does not correspond to my experience. I do not see a dialogue that asks for the space of the copy.

Unhappy.


Answers:
author: marc -Collabello--Phase Locked-
body: [@Leo Tohill](/t5/user/viewprofilepage/user-id/2459227)After you press on the three dots, choose copy. Then click "publish" (not "close"). Thereafter you can move the published copy wherever you want.

comments: author: Leo Tohill
body: Of course, NOW I know that. But it is clearly a defect that a copied article is not saved as a draft. It's a new article, like any other new article, the behavior should be the same.


Tags: cloud
Copy and Paste stopped working
Asked by Janine_Memon:

I was in the middle of migrating a document from a different platform over to confluence and suddenly I'm no longer able to copy and paste! I've tried both Safari and Chrome. It was working fine and now it just stopped.

Can someone help me please?


Answers:
author: Dario B
body: Hello [@Janine_Memon](/t5/user/viewprofilepage/user-id/3741665) ,

Welcome to the Atlassian Community!

If I understand correctly, you are not able to copy-paste anymore. However, this is actually an OS functionality and not something specific to Confluence.

Now, I am not sure if this is still an issue for you since this question is from Monday, but, in case it is:

1. Have you trying restarting your pc? Did this solve the issue?
2. Are you able to copy-paste in any other software or web page? Does it work?
3. Have you tried using an incognito/private browser window? Any difference?

Please let us know.

Cheers,  
Dario

comments: author: Janine_Memon
body: Thank you for the reply. I restarted my Mac and it seems to have fixed the issue although I am still having issues with the file I was trying to copy to.

I was able to copy-paste in other software including google docs. Could still not copy \*to\* this Confluence page. I will try incognito next if I have an issue although I didn't try that this time.


author: Dario B
body: Hi [@Janine_Memon](/t5/user/viewprofilepage/user-id/3741665) ,

Just to make sure I understand correctly:

* Restarting the computer resolved the cut\&paste issue
* You now have some different issue

If my understanding is correct and you still need help, please provide more details on the new issue you are facing. Otherwise, if there is nothing else to be done here, please accept my answer so this thread will be marked as resolved.

Cheers,  
Dario


Tags: confluence-cloud
Unable to fetch value of input to AJS.$ from dialog
Asked by Raja:

\<section role="dialog" id="add-conn-dialog" class="aui-layer aui-dialog2 aui-dialog2-large" aria-hidden="true" style="width: 650px;"\>  
\<header class="aui-dialog2-header"\>  
\<h2 class="aui-dialog2-header-main"\>XXXXXXXXXXXXXXXXXX\</h2\>

\<a class="aui-dialog2-header-close"\>  
\<span class="aui-icon aui-icon-small aui-iconfont-close-dialog"\>Close\</span\>  
\</a\>  
\</header\>  
\<form id="valid-submit-form" class="aui"\>  
\<div class="field-group"\>  
\<label for="customerDescription"\>Customer Description\</label\>  
\<input class="text" type="text" id="customerDescription" data-aui-field data-aui-validate-required="required" name="customerDescription" title="Customer Description"\>  
\</div\>

\<div class="field-group"\>  
\<label for="xxxxxxxxxx"\>xxxxxxxx\</label\>  
\<input class="text" type="text" id="xxxxxxxx" data-aui-field data-aui-validate-required="required" name="xxxxxx" title="Server Info"\>  
\</div\>

\<div class="field-group"\>  
\<label for="userName"\>User Name\</label\>  
\<input class="text" type="text" id="userName" data-aui-field data-aui-validate-required="required" name="userName" title="User Name"\>  
\</div\>

\<div class="field-group"\>  
\<label for="xxxxxxxx"\>xxxxxx\</label\>  
\<input class="text" type="xxxxxx" id="xxxxxx" data-aui-field data-aui-validate-required="required" name="xxxxxx" title="xxxxxx"\>  
\</div\>

\<div class="field-group"\>  
\<label for="jira-projects-id"\>Jira Project Key\</label\>  
\<input class="text" type="text" id="jira-projects-id" data-aui-field data-aui-validate-required="required" name="jira-projects" title="xxxxxx"\>  
\</div\>

\<footer class="aui-dialog2-footer"\>  
\<div class="aui-dialog2-footer-actions"\>  
\<button id="dialog-submit-button" class="aui-button aui-button-primary"\>Add\</button\>  
\<button id="dialog-close-button" class="aui-button aui-button-link"\>No\</button\>  
\</div\>  
\<div class="aui-dialog2-footer-hint"\>\</div\>  
\</footer\>  
\</form\>  
\</section\>


Answers:
author: Shannon S
body: Hello Raja,

Sorry to hear that you've been having issues with this.

Can you help me to understand what it is you're trying to do? What is the script you've sent us? If you are trying to create an add-on or develop for Atlassian Products, it's best to seek help on our Developer Community, which you can find from on our [Developer Resources page](http://developer.atlassian.com/resources).

The Atlassian Community here is mostly for end-users and trouble with basic usage of our Atlassian Products. For any development questions, the Developer Community is a much better resource.

Let me know if you have any questions about that.

Shannon


Tags: jira

jira-server
Access denied
Asked by Loretta:

Hi, I am trying to give access to a team member for Confluence. I can see that he has access to both jira and confluence, but when he attempts, he receives an access denied error. What am I missing?


Answers:
author: Nicolas Werle _Decadis AG_
body: Hi [@Loretta](/t5/user/viewprofilepage/user-id/3766914)

can you please describe your issue more precisely? Is he not able to login in Confluence or is he trying to access a Space / Page? In the last case please check the space permissions and page restrictions?   
Maybe you can also share a Screenshot with us?   
Best regards

Nicolas


Tags: cloud
Broken images after cloud migration
Asked by Seer Snively:

I see that all my images are broken after cloud migration. When I search for this problem, all the answers are 'contact support', so I'm doing that.


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Seer Snively](/t5/user/viewprofilepage/user-id/1009975)

Support isn't the community. Instead you have to go here <https://support.atlassian.com/contact/> (you must be logged in) and raise a ticket.


Tags: cloud

confluence-cloud
After changing base url am not able to access jira
Asked by Maheshreddy:

After jira set up i changed my based url to our server ip in general configurations, now am not able to access.

Am not a technical person to modify the db config files. can you guide me with simple steps.


Answers:
author: Nicolas Werle _Decadis AG_
body: Hi [@Maheshreddy](/t5/user/viewprofilepage/user-id/911624)

what did exactly change in the base url?

Best,

Nicolas

comments: author: Maheshreddy
body: Hi,

Replaced localhost:8080 to my server ip(http://IPaddress:8080) in general configuration


Tags: confluence-server

server
How to get changes in page history via REST API
Asked by Jack_Moore:

Hi,

I'm currently monitoring Confluence activity via the rest API. I am able to collect dates, users, and page ids of all activity with a specific date range. In addition to this, I need to pull the changes made to a page related to that activity.

Current I'm able to pull both the HTML of the new version as a result of the change and the HTML of the previous version via the below API call.

```
rest/api/content/search?expand=body.view,history.previousVersion.content.body.view&start=0&limit=25&cql=<dateRangeCQL>
```

Using this information, I could design a Python script using difflib that could decipher the differences in the HTML, but this is too computationally expensive to run on many large confluence pages.

On the Confluence web application, there's a page to view the difference between two versions via this link: pages/diffpagesbyversion.action. This page highlights the additions and reductions in the page.

Given that this information is available via the web application, I was wondering if there was an API call to pull just the difference between two versions?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Jack_Moore](/t5/user/viewprofilepage/user-id/3813144) ,

unfortunately there's not a specific REST API to retrieve that information. You can retrieve specific content version and then compare json (<https://community.atlassian.com/t5/Confluence-questions/Confluence-API-get-page-content-from-historical-versions/qaq-p/1398857>)

Fabio

comments: author: john wick
body: nvm


Tags: api

confluence-server

content

history

rest

rest-api

server

version
Problemas para importar bkp confluence
Asked by Luiz Rosa:

Boa tarde,

N?o consigo importar bkp do confluence. Da um erro na um importa??o e n?o mostra o relat?rio com o erro.


Answers:
author: Jack Brickey
body: Hi [@Luiz Rosa](/t5/user/viewprofilepage/user-id/3813100) , Voc? ainda est? tendo um problema com a importa??o? Em caso afirmativo, voc? pode fornecer mais detalhes sobre exatamente o que est? tentando fazer e o que est? acontecendo?


Tags: cloud
How to export html from pages included in another space and images go well?
Asked by Sandra Hern?ndez:

```
Please I want to know: How can I make the images of a page included in another space come out correctly when I export them to html?Let me explain, I have two spaces, in the second I use the include macro to include a page from the first space. When I export the second space to html, the images are not displayed on the included page, because it is looking for the images in the attachment folder of the first space, not in the second space.
```


Answers:
author: Diego
body: Hello [@Sandra Hern?ndez](/t5/user/viewprofilepage/user-id/1448433) ! As I understand, Sandra, you need to have images from another page to be displayed within the Include macro when you export the page that contains said macro to HTML.

Currently, there is a bug report open that points directly into this behavior. You can check it here, Sandra:
> * ++**[\[Confluence Server\] Space Export to HTML does not come with images in Include Page Macro pointed to a different Space](https://jira.atlassian.com/browse/CONFSERVER-59093)**++

++*Since there is no workaround for this situation, the best course of action would be to vote and watch the report linked above.*++Voting for it helps to increase the issue visibility and watching it will keep you up to date with everything.

Let us hear from you!

comments: author: Sandra Hern?ndez
body: Thanks [@Diego](/t5/user/viewprofilepage/user-id/1188952) , for the answer, I have a question the link you sent me does not lead me to the report of the bug .. I will look for it, to follow your recommendation. Thanks again


author: Diego
body: Hello again! Thanks for letting me know about the problem with our link. I have fixed it now.

You can reach the bug by clicking here as well:
> * ++**[\[Confluence Server\] Space Export to HTML does not come with images in Include Page Macro pointed to a different Space](https://jira.atlassian.com/browse/CONFSERVER-59093)**++

Thanks for sharing here with the community!


author: Sandra Hern?ndez
body: Thanks very much [@Diego](/t5/user/viewprofilepage/user-id/1188952)

I wish you a great day


Tags: confluence-server

server
I got server by mistake
Asked by Neil McFarland:

I dont want our own server - please can I change to cloud?


Answers:
author: JimmyVanAU
body: Hi Neil,

Simply sign up for a cloud instance - [https://www.atlassian.com/try/cloud/signup?bundle=confluence\&edition=standard](https://www.atlassian.com/try/cloud/signup?bundle=confluence&edition=standard) - and take the appropriate steps to decommission the server instance.

If you're after a refund/transfer or credit for your purchase, you'll need to raise this with Atlassian directly :)
Themes not available
Asked by Tylor:

Hello,

In Settings / Themes, the only available theme is the default theme.  
They "Change theme" button is grayed out and if I import a theme from the marketplace the them does not appear in section for me to change.

How does changing a theme work in Confluence Cloud?

Thanks!


Answers:
author: Arthur Mack
body: [@Tylor](/t5/user/viewprofilepage/user-id/3812805) Its been shutoff for a long time now.


Tags: confluence-cloud