youngmon/atlassian-qna huggingface dataset:
How can I create a custom change ID?
Asked by Brandon_Patton:

Hi everyone,

First time poster here - so hopefully this will all make sense.

We are planning on using Confluence as our document repository for engineering specifications and process documentation. One of the requirements the engineering team has, is that each document should have a specific ID that can be referenced along with all of their other documentation and systems.

As example - they want to be able to have ITPRC-1001 : \<Confluence Page Name\>, which as example would dictate that this is an IT Process, document 1001.

This way a person can type in ITPRC-1001 and immediately get to that page, or for us non-engineers, we can just punch in the title of the page we're looking for.

We've looked into ScriptRunner, which would make it so I could have a button on the page - but that would mean that the Create button at the top of each page is still there, allowing people to bypass whatever we would setup with ScriptRunner.

I would also need to dictate what the prefix of the title is on each space - so a Mechanical space would be MPRC, Accounting would be ACPRC, and so forth.

Has anyone else been successful in imposing document ID numbers in a method similar to this? I know Confluence has it's own ID number scheme, but not being able to search on those numbers within the search system is not ideal for team, unfortunately.

Looking for any advice, feedback, or "go fish" comments.

Thanks!


Answers:
author: EPS Software Engineering AG
body: Hi Brandon,

In our Page Tree Creator (PTC) we have a type of tag called **[consecutive tag](https://focuspro.eps.ch/display/PPTCDOC/Tags+and+Replacement+4.0)**. You can combine it with other tags and form the page titles according to your needs.

With the PTC Button Macro you can guide your users during the page creation process. Parameters are which template is used, the destination page, labels to set on the top page, etc.

Check out our [**LIVE EXAMPLES**](https://focuspro.eps.ch/display/PEPSMarktExample/Marketplace+Examples "LIVE EXAMPLES") (no registration needed).

Give it a try: [Marketplace Link Page Tree Creator](https://marketplace.atlassian.com/plugins/eps.focuspro.PageTreeCreator/server/overview).

Regards,  
Stephan


author: AnnWorley
body: Welcome first timer!

You can use HTML to force the Create button to use a specific template:

[How to override quick create page button in Confluence 5.9.x](https://confluence.atlassian.com/confkb/how-to-override-quick-create-page-button-in-confluence-5-9-x-818253227.html)

You can develop a template to do the prefixed titles:

[Page Templates](https://confluence.atlassian.com/doc/page-templates-296093785.html)

Hope that's a start!


Tags: adaptavist

page-id

scriptrunner

server
Supported plugins for v6.1.1
Asked by Chris Flynn:

We are upgrading to Confluence v6.1.1, but when I run the Confluence Update Check to see the compatibility of our plugins there are some Atlassian plugins that are not supported yet (Plugin Manager, Support Tools, Healthcheck and others). I looked at the Plugin Manager and even though there are updates available from our current version, none of the versions say they support 6.1.1.

It seems a little crazy to me that Atlassian would release a version of Confluence that is not compatible with these plugins. What should I do so that I can update to Confluence 6.1.1?


Answers:
author: Minh Tran
body: Hi [@Chris Flynn](/t5/user/viewprofilepage/user-id/591532) / [@pumin wuvanich](/t5/user/viewprofilepage/user-id/726007), if you see any Atlassian addons incompatibility when running Confluence Update Check. Can you please raise it here?

I have updated a ton of add-ons / plugins to be compatible with the new released Confluence Server. However there may be add-ons / plugins that i may miss


author: Chris Flynn
body: This is very helpful, thank you. Upgrading our environments is not that easy for me to make time to do, so I always like going to the latest and greatest when possible. It makes me feel better that others have gone to v6.1.1 too without any issues. Thank you for your time and help.


author: pumin wuvanich
body: I upgraded 6.1.1 anyway, and Universal Plugin Manager, Support Tools, Healthcheck and others work fine. Hope this helps.


author: pumin wuvanich
body: Another reason I haven't upgraded to 6.1.1 is that Atlassian Universal Plugin Manager supports up to 6.0.7. Not sure if 6.1.1 has its own plugin manager.


Tags: confluence-administration

confluence-app
Insert "Two-dimensional Filter Statistics Gadget" in Confluence using markup
Asked by Scott Brunk:

Hello everyone!

I have a project status page that I generate from a script in wiki markup language. I would like to add a "Two Dimensional Filter Statistics Gadget" to this page with the x-axis configured to show "Severity" and the y-axis configured to show "Priority".

I am able to add this using the Confluence editor, I can browse through the list of macros and add it, then configure it in the macro browser and it gives me what I want.

What I want to do now is create that same table using markup language only, so it can be part of my script-generated page.

Is it possible?


Answers:
author: Grigory Salnikov
body: Hi [@Scott Brunk](/t5/user/viewprofilepage/user-id/1125735)

I know it's been quite a period of time but still.

Have you found the solution?


Tags: jira
remove confluence administrators any issues occur
Asked by indra:

I installed confluence 6.0.5 using admin account,I created some users given administrator permissions now i removed my admin account there after confluence is working fine or not.


Answers:
author: AnnWorley
body: It's ok that you deleted the account you created when you installed Confluence but for some administrative purposes it will be useful to have at least one account which is a member of the the confluence-administrators group. That group "defines a set of "super users" who can access the Administration Console and perform site-wide administration. Members of this group can also see the content of all pages and spaces in the Confluence instance, regardless of space permissions."

This article has more:

[Confluence Admin Permission Levels Explained](https://confluence.atlassian.com/confkb/confluence-admin-permission-levels-explained-604209420.html)


Tags: confluence-administration
How can I create a new Confluence Space using REST API?
Asked by stanislav_parkhomenko:

Hi,

I'm building a jira plugin which should create a **confluence space**.

1. The example in docs POST request of **/rest/api/space** is working fine, but it adds a standard content on the homepage body, which needs to be customized.  

I tried something like:

```
{"key":"T14","name":"Test 14","homepage":{"body":{"storage":{"value":"<p>This is the updated text for the new page</p>","representation":"storage"}}},"metadata":{}}
```

...but it doesn't work. It does not add my content into the homepage.

2. The other issue is similar to this. I want to generate a **space** with some pages using the zipped xml file, which I exported from **confluence**. There was RPC API in 5.5 version of confluence:

```
boolean importSpace(String token, byte[] zippedImportData) - import a space into Confluence.
```

According to docs it has been deprecated and I wonder if it is possible to upload **zip archive** of the **confluence space** using the new rest api.


Answers:
author: Pavel Potcheptsov
body: I'd suggest you to make extra call (or just parse output after POST that creates space) to new space that you've just created and identify ID of Home page and then Update content of that page with your custom value. Don't forget to increase version number).

To be able to create child pages in space you need to use ID of Home page as **ancestor** and prepage storage format of your pages. Then combine it together in json and POST.

comments: author: stanislav_parkhomenko
body: Thank you, Pavel, great explanation

It worked by identifying an id of the home page from the request and then using **api/content/{contentId}** rest with **PUT** request

The **ancestor** field worked as expected as well


author: Pavel Potcheptsov
body: No problem, I'm glad that it works for you.


author: Ana Retamal
body: Hi Stanislav,

For questions like this one I recommend you to go to our [Developer Community](https://developer.atlassian.com/community/). There you'll find developers, product experts and vendors that will be able to help you with your question :)

Cheers!

Ana

comments: author: stanislav_parkhomenko
body: Thaks a lot, Ana ;)

The link to question, just in case:  
<https://community.developer.atlassian.com/t/how-do-you-create-a-new-space-using-confluence-rest-api/2523>


Tags: confluence-app

jira-app-development
Archived space still visible in the dashboards
Asked by Remo Deplazes:

Hi

I did archive a space. In the Atlassian documentation it is written, that archived spaces should not appear anymore in dashboards. In my case, the space ist still visible.

I flushed all the caches and did a contetnt reindex. Still same behaviour.

How to remove the archived space from the dashboard?


Answers:
author: Daniel Eads {unmonitored account}
body: Hi Remo,

What version of Confluence are you on? According to [this ticket](https://jira.atlassian.com/browse/CONFSERVER-3921), the archive functionality was added to Confluence in 4.3 which also hides activity from the dashboards on archived spaces. It doesn't sound like you have a Confluence that old, but it's worth knowing for troubleshooting purposes.

What happens when you try searching for content in that space? If Confluence sees the space as archived, a search should not render any content from it unless you check the "Search archived spaces" checkbox in the left sidebar on the search page.


Tags: archive
Indexing process is stuck
Asked by Raul Comerzan:

Hi guys,   
I try from two days to delete some spaces in Confluence Cloud but I can't.. I received the following error :![Capture.PNG](/t5/image/serverpage/image-id/303i4B9686560CF7A064/image-dimensions/501x212?v=v2 "Capture.PNG")

Do you have any idea about that?

Thanks,  
Raul


Answers:
author: Brad Rosenthal
body: I ran into the same problem. You will need to submit a support ticket and have them delete the space(s) directly from the database.


Tags: confluence-cloud

index
List variable selects only the first value while creating a page from the template
Asked by Prachi mankad:

We have a template created which has a list variable added to it.

When we try to create a page using this template only the first value iof the list is displayed, irrespective of the value select.


Answers:
author: Mirek
body: I guess that this was related to a BUG that was finally fixed

<https://jira.atlassian.com/browse/CONFSERVER-29763>

<https://jira.atlassian.com/browse/CONFCLOUD-54177>
How do I create a macro to count the number of JIRA issues I have linked on a Confluence page?
Asked by NEERAJ SETH:

I have created a Product Requirements page in Confluence.

<br />

On the page I have linked several issues in the product requirements table.

<br />

I would like to be able to run a JQL statement/macro to be able to tell me how many issues are linked on this page in a summary at the top of the page (i.e. page properties so they roll into the parent summary).

It doesn't look like this is possible. Does anyone know how if it is?

Any help would be really appreciated.

Thanks!


Answers:
author: thais
body: Hi, Neeraj,

We don't have a macro that covers this functionality completely, but you can get closer by using the Jira issues macro on the page.

For more details, please check: <https://confluence.atlassian.com/confcloud/jira-issues-macro-724765217.html>


Tags: confluence-cloud

jql

macro

page
Confluence and Synchrony behind IIS8 can't copy or insert larger blocks of text
Asked by Dan Foster:

I've got a Confluence setup running behind an IIS8 proxy doing SSL. Everything works except for one thing.

When I try to copy a few paragraphs or two of text, attempt to copy a table, or attempt to insert a table larger then about 8x8, the Collaborative Editing fails and the text on the bottom bar goes from "Ready to Go" or "Changes Saved" to "Can't save changes". It will then sit there until you cancel editing, discard your changes, and reopen the editor.

Copying and Pasting smaller blocks of text or inserting smaller tables works as expected. There is some kind of threshold around 3,500 characters of text is the difference between working and breaking.

The Environment is Windows 2012 R2 with IIS8 with SSL running and Confluence 6.1.0. This happens in both IE and Chrome, I have not tested Firefox. There are no errors in any Confluence logs, IIS8 logs, or even in the developer console in Chrome.

If I turn off the proxy and go to Confluence 6.1.0 directly, everything works fine. I also have an Apache install doing the same thing and it also works fine. This problem appears limited to IIS8 doing WebSockets.

My best guess is that there is a setting in IIS8 that is limiting the amount of data it will proxy. I just can't find that setting.

Settings I've looked at include:

* Request Filtering
  * Maximum URL Length in Bytes - currently set to 8192 which is twice the default
  * Maximum Query String - currently set to 8192 which is four times the default.
  * Maximum allowed content length - currently set at 30000000 which is the default, equates to 28.6MB and is far larger then what I'm doing.
* ApplicationHost.config and web.config
  * system.webServer/webSocket - receiveBufferLimit - currently set to 4194304 which is the default and equates to 4MB, also larger then what I'm doing.

I'm at a loss as to what setting is chopping off the payload and putting the editor into a state that the page has to be reloaded. Any suggestions would be greatly appreciated.


Answers:
author: AnnWorley
body: Please see this bug report - I hope the workaround on it will resolve the issue you are experiencing:

[Pasting a large amount of text will disconnect Synchrony](https://jira.atlassian.com/browse/CONFSERVER-46504)

comments: author: Dan Foster
body: Hey Ann,

The person who worked on my ticket with your Support team pointed to ticket but also acknowledged that I already had the Synchrony proxy enabled. My issue still persists.

I ended up switching to Apache for our reverse proxy.

Dan


author: AnnWorley
body: Thanks for the follow-up, it's good to know.
Lost documentation. Auto-saving
Asked by Carla Woodgate:

The following is a frequent occurance: Team members will be documenting in Confluence when for one reason or another, the system crashes. We try to retrieve any drafts saved, but there won't be any. Is there a way to restore work that isn't saving as a draft or auto-saving in the document?


Answers:
author: Marcelo Horlle
body: Hey Carla,

Try creating a new page in the same space as the one you were editing, in case anything got save before the crash, Confluence will ask you if you want to restore this draft. You can also attempt to click on your User Name in the upper right corner and then click on Drafts. It will show all that was saved as a draft before the crash. In case none of them showed anything, I am afraid that you won't be able to recover your work. :(

Just a suggestion from my end, regarding the crash, it would be interesting to open a ticket with support to get your logs and setup reviewed. At this point, I'd say that is more important to fix the error itself then thinking about a workaround to get your pages back. You can contact support [here](https://support.atlassian.com/contact/).

Hope it helps! Thanks.
How do you display dynamically created Confluence tabs in the exported PDF file?
Asked by Jay Cat:

I created two user macros: one for the 'tabs container', and one for creating tabs. You insert as many 'tab' user macros inside the 'tab container' user macro. I'm using the Confluence tabs shown on this page: <https://docs.atlassian.com/aui/latest/docs/tabs.html>

The tabs render correctly in HTML, but when I export to a PDF, nothing gets displayed but the outline of the 'tabs container'. The 'tabs container' user macro uses JS to create an unordered list of tab anchors from the content added to the inserted 'tab' user macros. Again, this works great for HTML pages, but not for the exported PDF.

Also, is there a way to access the content of the inserted user macros through the $content or other Confluence objects of the parent 'tabs container'? If that was possible, I could theoretically create static HTML and possibly correct the problem. I'm assuming this issue is because of the rendering of the $body in the 'tab' user macro because when I just use the HTML macro to enter the tabs as shown in the page above, it renders in the HTML page and also gets displayed in the exported PDF, although the presentation of the PDF is not great. Thanks in advance for any help.


Answers:
author: Matthias Gaiser _K15t_
body: Not sure if this is still relevant for you, but you might want to try the [Scroll PDF Exporter](https://marketplace.atlassian.com/plugins/com.k15t.scroll.scroll-pdf/cloud/overview) which supports more macros and has more styling options than the Confluence out of the box one.

See also [this entry](https://community.atlassian.com/t5/Confluence-questions/Scroll-PDF-Exporter-Ignore-container-macros-but-export-content/qaq-p/8648) which might be your use case.


Tags: pdf

tab
Confluence : Moving an attachment using Cloud REST API
Asked by Supreetha Upadhya:

I'd like to move an attachment to a different space (i.e, update the parent container of an attachment in a Confluence page) using Cloud REST API and "curl" command. I looked up REST API endpoint URL and found this:

```
PUT?/rest/api/content/{id}/child/attachment/{attachmentId}
```

Could somebody provide an example for a correctly constructed JSON input to achieve this? I tried the one below to move an attachment called "test.jpeg" with ID "att000" and current version 5 to parent with ID 1234, but it fails:

```
curl -v -u 'admin:password' -X PUT -H 'Content-Type:application/json' -d '{"id":"att000","type":"attachment","title":"test.jpeg","version":{"number":5,"minorEdit":false},"ancestors":[{"id":1234}]' -H ?X-Atlassian-Token:access-token' https://test.atlassian.net/wiki/rest/api/content/170234/child/attachment | python -m json.tool
```

Given below is the error message

```
< HTTP/1.1 415 Unsupported Media Type...No JSON object could be decoded
```

Thank you for your time!


Answers:
author: Clemens J?tte
body: Hello Supreetha!

Have a look at this documentation: <https://docs.atlassian.com/confluence/REST/latest/#content/{id}/child/attachment-createAttachments>

Your media-type is wrong - you shouldn't be seding JSON around for an attachment. Example curl requests and explanation are in the documentation link.

Cheers!  
jay


Tags: attachment

confluence-cloud
page just created is not listed in macro options dialog
Asked by skyboyer:

Hi.

I'm trying to reuse content with includePage/includeExcerpt macros.

But after page has been created successfully a page I cannot find it through macro options dialog. Source and target are in the same space. I've tried to include new page into its sibling, into its parent and even into completely different page(but in the same namespace).

There were no additional restrictions applied to that page.

Also this page is visible/reachable through global content search - so indexing should be ok, does not it?

I've also tried just to add a link and result was the same - page is not listed in search results.

What else may can be checked?

Thanks


Answers:
author: skyboyer
body: Some time later target page appeared in the list to include.

It seems the root cause is something about indexing schedule.


Tags: server
Confluence Service Keeps Stopping
Asked by Audra:

Some time over the weekend, our Confluence service started experiencing issues. The service itself is continually stopped and, despite trying to manually start it, just continues to keep stopping itself after a couple seconds.

[I've already tried following the directions I found in the Knowledge Base here, with no success.](https://confluence.atlassian.com/confkb/confluence-service-stops-after-a-few-seconds-confluence-service-won-t-start-779355975.html)

No changes have been made since it was working on Friday to the server running Confluence or to the service itself.

I am not certain if it will be any help, but checking the latest Catalina log provided this information:

```
10-Apr-2017 00:00:20.571 SEVERE [http-nio-8090-exec-2] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [dispatcher] in context with path [/synchrony-proxy] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.springframework.web.method.annotation.ExceptionHandlerMethodResolver] with root cause
```

and the latest Confluence log provided this information:

```
10-Apr-2017 11:47:52.645 SEVERE [Standalone-startStop-1] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Standalone].StandardHost[localhost].StandardContext[/wiki]]
```

My knowledge of Confluence is very basic, so please let me know if there's any better ways to provide more information to help you.


Answers:
author: Nic Brough -Adaptavist-
body: I think we need to see more of the log - what does that say is preventing it from starting?

comments: author: Audra
body: ```
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Standalone].StandardHost[localhost].StandardContext[/wiki]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153) ... 6 moreCaused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@5010dc49] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4958) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5088) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) ... 6 moreCaused by: java.lang.IllegalArgumentException: The main resource set specified [D:\Program Files\Atlassian\Confluence\webapps\..\wiki] is not valid at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:723) at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:684) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) ... 9 more
```


Tags: service
Adding a space to the space directory
Asked by Megan Cook:

Hi,

Is it possible to add a space to the space directory? The current options are only

* All Spaces
* Site Spaces
* Personal Spaces
* My Spaces
* Archived Spaces

Just to be clear, I am not trying to add a site space to one of the above mentioned spaces, or add a category. I would like to be able to add, say 'Client Space' to the above list and create spaces within that space.  

Thank you :-)  


Answers:
author: Nic Brough -Adaptavist-
body: Not without doing some coding - those are not really directory entries or categories, they're hard-coded searches by assorted criteria, so you'd need to code to add something.

comments: author: Megan Cook
body: ok great, that was helpful- thanks Nic :-)


Tags: space-directory
Space Export to single HTML Page?
Asked by Martin_Nitschke:

Good day,

according to the Notes on the Page: <https://confluence.atlassian.com/doc/export-content-to-word-pdf-html-and-xml-139475.html> it is possible to customize the HTML Export.

Is it Possible to change the Page.htmlexport.vm so that a space export results in a single continuous HTML page?

Thank you


Answers:
author: Reineke Reineke
body: Yes it is you can take an iframe to show the content


author: Karalee Kikiros
body: AFAIK no. Why do you want/need it to be one page?

comments: author: Martin_Nitschke
body: Because it makes it much more easy to conduct training without clicking very often which costs a lot of time and is annoying.