youngmon/atlassian-qna huggingface dataset:
HTML Macro without JS and CSS capability
Asked by Tarun Sapra:

Hello All,

I would like to disable the HTML macro dues to the fact that malicious JS can be inserted in the macro and other reasons. At the same time, I want to retain the ability to render HTML tables into proper output. i.e basically I want the functionality of HTML macro minus the JS/CSS capability. Thus, is there a way to disable entering JS/CSS in existing HTML macro or available plugin which can do the same. I am on confluence 6.3.x server version.

Thanks.


Answers:
author: Tarun Sapra
body: Just realized that major HTML tags are supported in the wiki markup which is easily supported by confluence - [https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html](https://confluence.atlassian.com/doc/confluence-wiki-markup-251003035.html?)

comments: author: Davin Studer
body: You can also do quite a bit with the [source editor](https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor/server/overview).
Finding Pages with broken macros with CQL? or anything else?
Asked by Michael:

Hi there,

i have a Template where softwareapplications are added, which have a {excerpt-include:\|nopanel=true} field. so basically its an excerpt-include without a destination.

the reason for that is, that the user can directly leftclick and choose the page (which should be included) without typing {excerpt-include} and go through the dialogue.

Now to my question:

if the user forgets to choose the destination and saves the page, it says "Page not found" (or "Seite nicht gefunden" in german).

My plan was to "detect" such pages (to correct the mistakes) with CQL using something like macroName:excerpt-include\* AND "Page not found", but this doesnt work. Somehow i think, CQL can not find the error-output of this macro.

Does anybody have an idea for finding such errormessages from build-in confluence macros?


Answers:
author: Michael
body: Im adding more Details:

1 Edit a Page

2 Insert {excerpt-include:pagenamewhichdoenstexist\|nopanel=true}

3 Save Page and get the error: .... No Link could be created for ....

So long story short. i wanna find such macro errors to fix them. First i thought, the searchbox, but when i enter "no link could be created" it shows no pages.

So, how do i find misconfigured macros to fix them?
Long page load time due to macro usage
Asked by Dar Kronenblum:

Hi,

We are using script macros to display data from other pages based on CQL results.

due to this macro usage the pages takes a while to load - I wonder if there is a way to reduce this long loading time?

Is there is a way to make the macro run in a different thread or take the data from the cache?

thanks

Dar


Answers:
author: Florian Maupas
body: You can use Future Macro provided by : [https://bobswift.atlassian.net/wiki/spaces/CACHE/pages/42631201/Future+Macro.](https://bobswift.atlassian.net/wiki/spaces/CACHE/pages/42631201/Future+Macro.?)

It manages force the load of the macro after the page is rendered. This is very useful if you dont have access to the actual code of the macro.

Florian


Tags: adaptavist

macro

scriptrunner
Get Confluence content using JAVA?
Asked by Ramesh Lakshmanasamy:

Can you send Confluence implementation using java


Answers:
author: Christian Reichert (resolution)
body: Hi Ramesh,

this here is a community \& we love to help - most people here do this without being paid for it.

However, in order to be able to help, you need to give us some more information. Even you other Question you posted a minute ago (<https://community.atlassian.com/t5/Confluence-questions/How-to-get-confluence-content-using-JAVA-without-URL-and/qaq-p/684819>) does not really give us much information.

The better you describe your problem ... give some background, possibly some code examples etc - all of this increases your chances to get good help, quickly.

Cheers,  
Christian


Tags: bitbucket
How do I add a link to a shared file/directory on a windows platform in my wiki web page
Asked by Raghu Sakleshpur:

I have a wiki page where I want to set link to files and locations on shared network folder like file://\<network share pooint\>/filename.

When I click it is unable to find the location or the file.


Answers:
author: Michael
body: Have you read this? <https://community.atlassian.com/t5/Confluence-questions/Confluence-How-to-place-a-link-to-a-file-on-a-server-share-in-a/qaq-p/258790>

comments: author: Raghu Sakleshpur
body: Thanks for the response, I looked at the link and previous responses. Looks like having a separate web server for that shared network disk is the only solution. But that is not something I cannot do. If there is another solution that is workable for me it would be great.
How to manage users in Confluence from JIRA
Asked by Karl Pfeiffer:

I originally set up JIRA and Confluence to share user accounts, but synchronization is now failing.

I am trying to adjust settings following the instructions under the "To connect Confluence to a JIRA application:" section here:

<https://confluence.atlassian.com/doc/connecting-to-crowd-or-jira-for-user-management-229838465.html>

but how do I know what the application name and password need to be in the second bullet? (ie, Enter the **application name** and **password** that Confluence will use when accessing JIRA)

Thanks in advance for any advice.


Answers:
author: AnnWorley
body: The application name and password are defined in Jira under User Management\>Jira User Server:

The application will be listed but if you don't know the password you cannot view it there. You may as well set up a second application and use that, it will not make any difference to Confluence. This guide has more info: [Allowing connections to JIRA for user management](https://confluence.atlassian.com/adminjiraserver/allowing-connections-to-jira-for-user-management-938847045.html)


author: Mikael Sandberg
body: The Application name and password are the ones you setup in Jira. You can always change the name and password under Administration \> User Management \> Jira user server. Check out <https://confluence.atlassian.com/adminjiraserver/allowing-connections-to-jira-for-user-management-938847045.html>


Tags: jira
Can you restore a deleted confluence space?
Asked by Jean Douchet:

Can you restore a deleted confluence space?

The space was deleted on November 20th?

Is there a way to restore?


Answers:
author: AnnWorley
body: There is no trash bin sort of functionality to restore a space, and if you are on Confluence Cloud it is impossible to retrieve it.

If you are using Confluence server (self-hosted) you can install a temporary Confluence instance of the same version and restore an old backup from before the space was deleted. (By default, there are full site back-ups in the \<Confluence_Home\>/backups directory.)

After restoring the site back-up to the temporary instance you can do an XML export of just that space, then restore it to the original instance where it was deleted.

If you are using self hosted Confluence and want to try that strategy, please let me know any questions about the procedure.
How could I upload a markdown document in confluence.I also want to be able to edit it.
Asked by nelsonm:

I have a markdown document that i would like to upload to confluence and be able to edit it in markdown format.For some reason i can find that option on blank page.


Answers:
author: Stephen Deutsch
body: Hi Nelson,

If you'd actually like to display your markdown in "view" mode instead of as code, you have a couple options:

1. You can insert markdown into a page and have Confluence convert the markdown to Confluence format. Once this is done, however, you cannot restore the original markdown. You can do this by editing a page, clicking the Insert menu (+) and choosing Markup, or by pressing CTRL+ALT+D in the editor. In the popup window, be sure to change "confluence wiki" to "markdown". Once this is inserted you can edit the page as you would any other.

2. You can insert the markdown into a page and have it displayed with the help of an app. There are some free apps for both Server and Cloud that can display markdown:

Server - <https://marketplace.atlassian.com/plugins/com.atlassian.plugins.confluence.markdown.confluence-markdown-macro/server/overview> or <https://marketplace.atlassian.com/plugins/com.csharpru.markdown/server/overview>

Cloud - <https://marketplace.atlassian.com/plugins/render-Markdown/cloud/overview>


author: Shannon S
body: Nelson,

You can store your markdown in a [Code Block Macro](https://confluence.atlassian.com/doc/code-block-macro-139390.html). You will need to manually type or paste it here.

It's also possible to add it as an attachment on the page, but please be advised you won't be able to directly edit the document that way.

Let us know if you have any questions.

Regards,

Shannon
Lable List macro not working properly
Asked by Yousaf:

Hello,

i?m not sure why, but the macro lable list does not show proper results.

I have a confluence page with 34 pages in it. All 34 have individual lables and the main page has the macro lable list.

There is a huge index of all lables which is great, but not all of them work or show the page even though it has all the lables.

For example if the name of a page is "Browser: Firefox or Chrome", the lables I chose are Browser, Firefox, Chrome. In the main page the 3 lables appear but none of them work, no page is shown as a link.

In best case, maybe 1 of the 3 lables would actually work.

What could be the problem here?

Thanks!


Answers:
author: Igor M.
body: Hey,

Could you try clearing the plugins cache by following steps in here [How to clear Confluence plugins cache](https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html "How to clear Confluence plugins cache")  
If this does not help, could you try rebuilding the index from scratch by following in [How to Rebuild the Content Indexes From Scratch on Confluence Server](https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-110035351.html "How to Rebuild the Content Indexes From Scratch on Confluence Server")

Regards,

Igor
How do I backdate a Confluence Post in the new interface?
Asked by Erica Davis:

Atlassian documentation still says that Confluence posts can be backdated (only during the creation of the post, which is nothing new).

However, since upgrading to the new Confluence interface, the place where the post date used to live is gone.

So, how do I actually backdate a post?

I do not see any instructions anywhere in the Atlassian documentation, and I do not see any community questions/answers that are recent enough to have been with the new interface.


Answers:
author: Shannon S
body: Hi Erica,

The article you saw might have been for Confluence Server, and when you mention the new interface, I think you might be on Confluence Cloud instead.

At this time it's not possible to backdate posts in Confluence Cloud, but you can follow this feature request:

* [CONFCLOUD-11740](https://jira.atlassian.com/browse/CONFCLOUD-11740)

Please comment on it and vote/watch for updates in the future.

Regards,

Shannon

comments: author: Erica Davis
body: Hi Shannon,

The article you suggested doesn't seem like what I was talking about. I am trying to set the post date when creating the post. Not going back and editing the post date after the fact.

This is something that **was** available in Confluence cloud until the new interface was introduced. Does this mean that the functionality was silently removed with the introduction of the new interface?


author: Shannon S
body: Hi Erica,

I understand! Actually it's the same feature request. I know it's older but you can see comments from people recently that are saying it used to be possible and now with the new look is no longer possible.

Let's use this one to track the request for the feature to return to Confluence post New Experience since it has a lot of votes on it and recent activity asking for it to return. I labeled it with the proper labels to get the attention of the team. I'll send it to them now as well so they can provide some sort of response on it.

I hope this helps explain things!

Regards,

Shannon
REST API Timestamp for likes and comments
Asked by philipp_singer:

Hi all,

My goal is to get likes and comments of a page, but I specifically need their timestamps of creation. Is there some way of doing it?

Currently, I get them via:

<https://confluence.com/rest/likes/1.0/content/1111/likes>

https://confluence.com/rest/api/content/1111/child/comment?expand=extensions.inlineProperties,extensions.resolution

Thanks,

Philipp


Answers:
author: Vero Rivas
body: Hi [@philipp_singer](/t5/user/viewprofilepage/user-id/1169073)

Look at this post, maybe can help you

<https://community.atlassian.com/t5/Confluence-questions/How-do-I-get-likes-and-comments-for-a-Page-using-Rest-API/qaq-p/1382726>

Cheers


Tags: rest-api
java.lang.ClassCastException when installing Confluence unattended
Asked by Tim Straub:

Hi,

I would like to install Confluence in unattended mode.

Using the response.varfile which have been created during an normal installation shows an error during launching confluence:

Launching Confluence ...  
In action "Check if app is running. \[Run script\]" (screen "Display progress"), property "Script":  
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long  
at I4jScript_Internal_122.eval(I4jScript_Internal_122.java:20)  
at I4jScript_Internal_122.evaluate(I4jScript_Internal_122.java:32)  
at com.install4j.runtime.installer.helper.Script.evaluate(Unknown Source)  
at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)  
at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)  
at com.install4j.runtime.beans.actions.control.RunScriptAction.execute(Unknown Source)  
at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(Unknown Source)  
at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(Unknown Source)  
at com.install4j.runtime.installer.ContextImpl.performAction(Unknown Source)  
at com.install4j.runtime.installer.controller.Controller.executeActions(Unknown Source)  
at com.install4j.runtime.installer.controller.Controller.handleCommand(Unknown Source)  
at com.install4j.runtime.installer.controller.Controller.start(Unknown Source)  
at com.install4j.runtime.installer.Installer.main(Unknown Source)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)  
at com.install4j.runtime.launcher.Launcher.main(Unknown Source)  
Dec 06, 2017 12:06:32 PM com.atlassian.modzdetector.HashRegistry store  
INFO: wrote 933 hashes to /opt/atlassian/confluence/install.reg  
Finishing installation ...

The response.varfile is

#install4j response file for Confluence 6.2.2  
launch.application=true  
rmiPort=8000  
app.install.service=true  
existingInstallationDir=/opt/Confluence  
sys.confirmedUpdateInstallationString=false  
sys.languageId=en  
sys.installationDir=/opt/atlassian/confluence  
app.confHome=/var/atlassian/application-data/confluence  
executeLauncherAction=true  
httpPort=8090  
portChoice=default

I start the unattenden installion with this command:

cd /root

`./atlassian-confluence-6``.2.2-x64.bin -q -varfile` `response``.varfile`

`Does anyone know a solution for this?`

`Regards,`

`Tim`


Answers:
author: Natarajan Sankaraiya
body: ensure that the port variables are suffixed with $Long

rmiPort$Long=8000

httpPort$Long=8090


author: kristof117
body: I've got the same problem when do this with Jira

( <https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-7.8.0-x64.bin> )
I would like to create a list of documents that change order when updated to latest first?
Asked by Peter Kirby:

Within a specific section of a space I would like to be able to sort files automatically when updated the most updated file being on top of the front page of the area. I don't want to include all the pages in the Space just ones from certain pages. How can I do this?


Answers:
author: Shannon S
body: Peter,

Are you looking to create a list of documents (i.e. attachments to pages in Confluence) or Confluence pages, specifically?

The [Recently Updated Macro](https://confluence.atlassian.com/doc/recently-updated-macro-139519.html) would be able to list recently updated pages, and you can even limit to a specific space or a specific label. That is, you could label just the pages that you want to display in this macro.

The [Attachments Macro](https://confluence.atlassian.com/doc/attachments-macro-97911315.html), in turn, would display a list of attachments. You can sort these by date uploaded, and it also uses labels, so you could limit the displayed documents by label.

I hope this helps! Let me know if you have any questions.

Regards,

Shannon
Confluence - Server to Cloud
Asked by Chema Guerra:

Hello,

We have been running a server version of confluence for several years. Our latest upgrade was 5.6.5.

We've just opened a cloud version (not paid yet, trying first) and I'm encountering problems with the import of the backup.

Here's what I did:

- created a backup of our server install  
- imported it successfully into a local instance of confluence 6.x (6.1 I believe)  
- tried to import it in confluence cloud (failed, but the import time was quite reasonable)  
- exported a new backup file from our local instance of confluence 6.x  
- imported in confluence cloud (didn't fail YET but it's been ongoing for hours, stuck at 30% on deleting existing data. Time elapsed and remaining are still updating and vary a lot).  

The backup file XML is 65MB, so very far from confluence cloud's 200MB limit.  
It imports and exports and so on completely flawlessly in the local instance (atlassian-confluence-6.5.1-x64).

The current import is ongoing for many many hours and still isn't finished (actually it seems to be stuck at 30% on removing existing data.

Thank you in advance


Answers:
author: Stephen Deutsch
body: Hi Chema,

This seems specific to your instance of Confluence Cloud, so you may be better off trying to see if you can get support directly from Atlassian's support channel: <https://support.atlassian.com/contact/#/>
Setting a Home Page for a space
Asked by Iuliana Burgi Jurj:

Hello,

Yesterday I struggled with the creation of a home page for our PMO space in Conflluence.

I created the page and then I set it as home page, as mentioned in your article below:

Space Tools - Edit Space details - Home Page.

Unfortunately this does not work and I do not fall on the home age when selecting my PMO space.

NOTE: I tried creating a page in the 2nd screen, but it makes me create a completely new page. And I already have the page that I would like to select as home page.

Could you please advise on how can I select the home page as I wish ?

1. Setting done

![setting done.png](/t5/image/serverpage/image-id/10492i6D129378A30A217A/image-size/large?v=v2&px=999 "setting done.png")

2. The home page I set above, does not appear when selecting my space

![hOME PAG NOT SET.png](/t5/image/serverpage/image-id/10493i557F0CB29997AFBA/image-size/large?v=v2&px=999 "hOME PAG NOT SET.png")


Answers:
author: Shannon S
body: Hi Iuliana,

When selecting the space, it will take you to whichever page you were on last. Otherwise, if you want to go straight to the homepage, you should select **Overview** rather than the space itself.

You'll see the message in your 2nd screenshot if you have no other pages in the space other than your homepage.

If you're still not sure, could you let me know the Cloud instance URL so I can have a look?

Regards,

Shannon

comments: author: Iuliana Burgi Jurj
body: Hello Shannon, the Overview option looks fine for now.

Thank you.


author: Shannon S
body: Thank you for confirming!

Take care and kind regards,

Shannon
How can I assign multiple Tasks to one Due Date/Assignee without multiple @ assigns?
Asked by Nicolas HackXIt:

Hello,

I've been wondering and struggling with the Task Concept of Confluence.  
I wanted to create a Task List with certain Subtasks in a form similar to this:

* \[\] Task //Due Date @Assignee
  * \[\] Subtask without // or @

The problem with this is the fact that I have to add an Assignee and Due Date for each Task individually for it to properly show in a Task Report, but this seems a littel bit chunky when I have a page repeating a name 50 times.  
Is there a way to do this? If not, workaround or not?


Answers:
author: Shannon S
body: Hi Nicolas,

This is not currently possible in Confluence, but I have created a feature request for it:

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

My recommendation would be to vote on and watch the request, and also comment there with your usage case. This will help us greatly.

Thank you for your understanding!

Regards,

Shannon

comments: author: Sarah Dashow
body: Hi Shannon,

I was trying to find an answer to this question as well.

Based on the description of the listed feature request, it is for assigning one task to multiple people.

Myself (and Nicolas) would like to assign **multiple tasks** to **one person** without needing to assign each individual task to the same person. Is there a feature request for that to follow?

i.e.

@Person1

* \[\] Task 1
* \[\] Task 2

Person would see all tasks under their name in their task list; and in a task report, it would list that person as the assignee on all tasks in that list.

Rather than

\[\] Task @Person1 @Person2

Where Person1 and Person2 would both see one task.


author: Shannon S
body: Whoops! Thank you for pointing that out. I actually linked the wrong Feature Request. Here it is:

* [CONFSERVER-54756](https://jira.atlassian.com/browse/CONFSERVER-54756) - Multiple tasks, one due date

I've also made a new one for the multiple tasks under one user request:

* [CONFSERVER-54776](https://jira.atlassian.com/browse/CONFSERVER-54776) - Multiple tasks, one user

At this time, it's only possible to use this format:

**@User \[TASK\] due date**

For each task.

I hope that's clear!

Regards,

Shannon


author: Sarah Dashow
body: Perfect, thank you! :)


Tags: sub-task
Citations/references in Confluence similar to Citavi/EndNote/Zotero
Asked by Dzenan Hozic:

Dear all,

I am compiling a report for my company, that includes an extensive literature review and I want to cite sources of information.

Ideally, I would like to use DOI, ISSN, ISBN, PMID or various citation formats line BibTex or RIS.

Is there a way to do this within Confluence?

Thank you in advance,

Dzenan


Answers:
author: Nic Brough -Adaptavist-
body: Natively, it's a bit of a faff, but you can do quite a lot with user macros.

However, I'd also look at the add-ons Content Formatting (for footnotes) and the Cite add-on.
What are the possible ways to Create and Update Confluence page using Java?
Asked by Sandeep Boorla:

I am pretty new to Confluence and there are no one in my team having any knowledge on Confluence. Now my task is to Create and Update Confluence pages by using Java (by Making REST calls or using Atlassian Confluence 6.5.0 API - Java).

Can someone please suggest me how to start. Please provide sample project code if available.


Answers:
author: Christian Reichert (resolution)
body: Hi Sandeep,

I'd suggest these might be good reads: <https://developer.atlassian.com/confdev/confluence-server-rest-api/confluence-rest-api-examples>

<https://github.com/stirlingcrow/Confluence-AccessRestApiWithJava/tree/master/src/main/java>

<https://github.com/micromata/ConfluenceRestClient>

<br />

Cheers,  
Christian