youngmon/atlassian-qna huggingface dataset:
Get a template in storage format via Confluence REST API
Asked by Bastian Stehmann:

Hi there,

I already managed to get a page in storage format via REST API from Confluence.

Is there also a way to do this for a template.

I want to get the template in storage format to do some modifications (add some data) and then create a page from that template and store that page also via REST API back to confluence.

Thanks

Bastian


Answers:
author: Tobias Anstett _K15t_
body: Hi [@Bastian Stehmann](/t5/user/viewprofilepage/user-id/1186496),

You won't find any documentation on this as no public API exists. However there is some experimental API which can be used on your own risk (may break in future versions of Confluence).

I was testing these commands with Confluence 6.14-m77 but the API is there since 5.10. To explore the experimental API's you should install Atlassian's REST API Browser app in Confluence.

This is an example on 'how to get the storage format for a template'. All other steps required for your use case could use public API again.

```

GET http://localhost:8090/rest/experimental/template/page?spaceKey=BC&expand=body
```

BS was the spaceKey of the space my template is stored. In the call the body element was expanded as this contains the storage format - see response below.

```
{
 "results": [
 {
 "templateId": "2752514",
 "name": "FOOO",
 "description": "",
 "space": {
 "id": 2555905,
 "key": "BC",
 "name": "BLANK CONFLUENCE",
 "type": "global",
 "_links": {
 "webui": "/display/BC",
 "self": "http://localhost:8090/rest/api/space/BC"
 },
 "_expandable": {
 "metadata": "",
 "icon": "",
 "description": "",
 "homepage": "/rest/api/content/2523138"
 }
 },
 "labels": [],
 "templateType": "page",
 "body": {
 "storage": {
 "value": "<at:declarations /><p>FOOOO</p>",
 "representation": "storage"
 }
 },
 "_links": {
 "self": "http://localhost:8090/rest/experimental/template/2752514"
 }
 }
 ],
 "start": 0,
 "limit": 25,
 "size": 1,
 "_links": {
 "self": "http://localhost:8090/rest/experimental/template/page?spaceKey=BC&expand=body",
 "base": "http://localhost:8090",
 "context": ""
 }
}
```

Have fun coding :)

Best, Tobias

comments: author: Bastian Stehmann
body: Hi Tobias,

thank you very much, that's great.

Best,

Bastian


author: Nermin Skenderovic
body: "I already managed to get a page in storage format via REST API from Confluence."

How do you get a page in storage format via the Confluence API?


Tags: confluence-server

rest-api

server

template
Custom event type in Team Calendar: summary as a required field
Asked by Angela Clement:

After updating the team calendar to version 6.0.25 the field "summary" in the standard event types "travel, leave, birthdays" is a required field (it probably was before but it took us some time to update).

A user is asking if there is a possibility to change it so that it is no required field as the icon seems to be sufficient for showing that it is a birthday for example.


Answers:
author: Diego
body: Hello there Angela! I understand that users may be used to the fact that this field was not a required field for Team Calendars event creation. However, this necessity has changed in more recent versions of Confluence.

The **Summary** field is akin to the **What** field found under the generic event type called **Events**.

As of today, those fields **are required** and there is **no setting to remove** this status from them. They are required due to the internal database organization found in Team Calendars and Confluence.

This works much like when creating a page. We are unable to create a page **without a title**, for example.

Let us now your thoughts on this!

comments: author: Jeanne Howe
body: Diego,

Is there a way to may the "**Who** " field *required* on the event type called **Events**?

If not, is there any way to add a custom event type and make the "Who" field required??

Jeanne


Tags: confluence-server

server
2-byte character garbled on PDF export
Asked by hashimotor:

On PDF export tool, 2-byte characters on page title are garbled. How can I fix them?

![??.png](/t5/image/serverpage/image-id/42220i56620421FFB8BA40/image-size/large?v=v2&px=999 "??.png")


Answers:
author: Diego
body: Hello there!  
This could be caused by some encoding issue. Could you provide us with a little more information on this:
> - Check the **encoding in your instance**   
> - Perform the **encoding tes**t and send us the results

**Checking the encoding**
> 1. Click the **Gear Icon**
> 2. Select **General Configuration**
> 3. In the page that comes up, search for **Encoding** under **Formatting and International Settings**

**Encoding Test**
> 1. Access **\<your-confluence-url\>/admin/encodingtest.action**
> 2. Follow through with the steps
> 3. After finishing the procedure, **take a screenshot**
> 4. Send us the screenshot

Please, be careful to not **disclose any protected information**from your instance with those screenshots.

Also, there are a few questions I would like to ask you:
> 1. Has this **worked at some point** in the past?
> 2. Does this affect **all spaces?**
> 3. Is this present **in any browser?**

Looking forward to your reply!

comments: author: hashimotor
body: Thank you so much. I will check those you mentioned.

> 1. Has this **worked at some point** in the past?  
>    ? I don't know. I'm afraid this issue have been existing from the start.
> 2. Does this affect **all spaces?**? Yes. Found in any spaces.
> 3. Is this present **in any browser?**? Yes. Found on Firefox 64.0.2 and Chrome 71.0.3578.98.


author: hashimotor
body: \> **Checking the encoding**

UTF-8

\> **Encoding Test**

Succeeded except mangling.

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


Tags: confluence-server

server
Confluence user macro fromNow() function
Asked by Daz Daz:

Hi guys,

I'm trying to beautify dates or simplify or whatever you call it. Instead of showing absolute datetime like 2019-01-01T08:00:00, it would be better if I show 5 days ago or Yesterday or 5 minutes ago and the likes.

I am using Scriptrunner for JIRA and it is using groovy scripts. For .net I can use moment.js but not too sure for groovy script. If possible I do not want to do it the hard way and have hundred lines of code/logic just to translate absolute datetime to relative datetime.

Any kind soul knows how to do this?


Answers:
author: Davin Studer
body: Did you mean Scriptrunner for Confluence? Is this a question about Confluence or Jira? Also, user macros use velocity, not Groovy, so I'm unsure how you are trying to use ScriptRunner with a user macro if this is indeed for Confluence. What date specifically do you want to show as relative?
Links inside the power point presentation uploaded to Confluence do not work.
Asked by Divya Rani Bazar:

I have uploaded pptx file to a Confluence page and when accessed, it displays the presentation but the links part of slide navigations are not working.


Answers:
author: Shannon S
body: Divya,

Can you let me know what specifically isn't working when you say the links part of slide navigations? Do you mean links within the slides, links to other slides, or something else more specifically?

Is this in the preview view itself that it's not working?

Does this occur with all PowerPoint presentations?

Regards,

Shannon

comments: author: Divya Rani Bazar
body: Shannon,

Links to other slides within a presentation is not working.

This is same with all the presentations uploaded to confluence directly to a page or using a macro.

Regards,

Divya


author: Shannon S
body: Divya,

Thank you for confirming. I was able to get a copy of PowerPoint to test with and can confirm the same issue. There is an ongoing bug regarding this:

* [CONFCLOUD-38775](https://jira.atlassian.com/browse/CONFCLOUD-38775) *Linked objects in Power Point file will not be able to be rendered by Office Powerpoint Macro*

Please vote on the bug and watch it in order to be updated of any progress in the future.

I can confirm that when I export the PowerPoint presentation as a PDF instead, and use the PDF macro to embed, the links do work. Perhaps this could function as a workaround for you?

Regards,

Shannon


author: Divya Rani Bazar
body: Shannon,

Thank you, its working when exported as pdf and uploaded to Confluence page.

Also, have a problem playing **.swf files** when uploaded to a page directly or using multimedia macro. A message "*Click to enable Adobe Flash Player*" appears, cliking it displays a blank page instead of .swf file. I am trying to upload and play a quiz file, which is available as .swf file and as HTML file. Neither of the file types are previewed in the Confluence page, but it is simply allowing users to download.

Can you please help me with this issue as well.

Regards

Divya


author: Shannon S
body: Divya,

Does the same occur when you link to an external SWF file? Or only when you directly attach it to a page? Because it seems like it might be this bug:

* [CONFCLOUD-57750](https://jira.atlassian.com/browse/CONFCLOUD-57750) *Multimedia macro is not working.*

If this is not the case, then I would recommend that you raise a new question that's directly related to SWF files not playing.

Regards,

Shannon


Tags: cloud

confluence-cloud
Workflow routing based on custom field value in Transition value
Asked by Akbar N:

Hi,

I hope this is been answered somewhere but not in an exact context how our use cases needs it.

1. We have this following workflow statuses.

**Funnel \> Approval \> Groom \> Done** . There is one other status which is **Denied**.

2. In the Approval Step above, we have transition screen which holds a custom field with 'Agree' or 'Disagree' as dropdown values.

3. If user select Agree, then the transition needs to flow like Funnel \> Approval \> Groom \> Done

4. If user select Disagree as value in the Approval status then workflow needs to work like

Funnel \> Approval \> Denied as the end of the flow.

Could you explain how can i achieve the above? Thanks in Advance.


Answers:
author: David Fischer
body: Hi Akbar,

You didn't specify if you are on Jira Server or Jira Cloud, and the solution is slightly different.

Anyway, unless you want to manually edit your workflow XML (which by the way is only possible on Jira Server), you'll need to add a transition from Groom to Denied, because a Jira transition can only lead to *one* predefined Status.

Basically, the transition screen you mentioned in (2) belongs to a *transition* , and that transition goes from the Approval status to the Groom status. The problem is that you want to go to the Denied status *instead* of the Groom status if the user inputs Disagree on the transition screen. That is not possible in Jira. Instead, you'll need to automatically and instantly transition the issue *further* from the Groom status to the Denied status. You can do that by adding a transition from Groom to Denied (call it "Deny"), which you can hide from user using a "Hide from users (JMWE add-on)" Condition, and use a Transition Issue post-function on the Approval -\> Groom transition to trigger the "Deny" transition, with a conditional execution script that checks the value of the custom select field ("Agree" or "Disagree").


Tags: addon-com.innovalog.jmwe.jira-misc-workflow-extensions
Search strings in table
Asked by hashimotor:

I'm afraid search doesn't work on editing page which contains table.

How can I search-and-replace strings continuously inside/outside table ?

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


Answers:
author: Natalie Paramonova [Stiltsoft]
body: Hi,

I confirm that it works properly on the version 6.13.0.

But I see that in the Cloud version of Confluence only the option Replace all works within tables. When I try to replace a single word in a table the option Replace is not available. And I also have found an open ticket [CONFCLOUD-58545](https://jira.atlassian.com/browse/CONFCLOUD-58545) that is related to this issue.

comments: author: hashimotor
body: Thanks.

We're using Server version 5.10.8. I seem CONFCLOUD-58545 is another issue.


author: Natalie Paramonova [Stiltsoft]
body: I've tried this feature in our testing environment on Confluence 5.10.8. It works as expected. It replaces all values including those in the table. I think it is worth contacting support.

As a workaround, if you need to look for values in a big table you can try a trial of the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app. You can [filter a table in the page edit mode](https://docs.stiltsoft.com/display/TableFilter/Filtering+Table+in+the+Page+Edit+Mode) to find specific rows with the help of the app and then change values manually.


author: hashimotor
body: Excuse me, replace works but "next" search doesn't work.


author: Natalie Paramonova [Stiltsoft]
body: In our testing environment, the "next" search also works well.


author: Davin Studer
body: Hmm. It replaces inside table on my version (6.8.1). What version of Confluence are you on?

comments: author: hashimotor
body: Thanks.

We're using 5.10.8 on-prem now.


author: hashimotor
body: Excuse me, replace works but "next" search doesn't work.


Tags: confluence-server

server
How can I get a report of Page views in Confluence 6.9.3
Asked by Robert Duffer:

I think I have a lot of pages and spaces that are no longer used but I need a tool to verify. Any suggestions?


Answers:
author: Thomas Schlegel
body: Hi Robert,

we use the [tracking-app by ServiceRocket](https://marketplace.atlassian.com/apps/269/tracking-access-for-confluence?hosting=server&tab=overview). It works well and is for free.

But it's only counting hits from the moment on, when it was installed.

comments: author: Robert Duffer
body: hanks Thomas. I downloaded it but can't seem to find any instructions for use. Do you know where I might find examples, FAQ, user manual or anything else that might tell me how to use it?


author: Thomas Schlegel
body: Hi [@Robert Duffer](/t5/user/viewprofilepage/user-id/1556800),

here's a bit of documentation:

<https://docs.servicerocket.com/display/TRAC/Macro+Reference>

But let me explain a little bit, how this is working:

Once installed, the tracking app counts all page views (except the ones from the last author of the page).

To get the number of page view, you have to put the macro "tracking-info" on a page.

This macro can return different values:

* age in days
* creation date
* first view date
* id
* last view date
* modification date
* title
* view count (that's the number you are looking for)
* views per day

Put one or more instances of this macro on a page and you will see the values for this page.

Another macro is the tracking-table and the tracking-column macro. With these macros, you can get a list of pages and their view count (and other data).

Put the Tracking Table macro on a page. You can edit the tracking-table macro and restrict your data to pages only, e.g. Otherwise you will also see attachments in the list.

Then put as many tracking-column macros into that tracking-table macro, e.g. insert a column with the title, then the view count, the next one with modification date or whatever you need.

Save the page and you will get a table with your pages and their view count.


Tags: atlassian-marketplace

confluence-server

track
Some uses can't see pasted images (.png) files
Asked by Jonathan Starr:

I have two .png images, which originated as screen captures, attached to a page. When I edit the page and insert those images, they look fine. When I Update the page, the images are distorted - still the right shape and size, but badly blurred, as though the source pixels were not properly mapped into the screen pixels. When I right-click on a blurred image and view it, the image looks fine.

Other screen-capture .png images work perfectly.


Answers:
author: Jonathan Starr
body: These images were reduced in size from the original. It turns out that if the pixel size is set to 300 or less, the problem occurs. If 301 or more, it's okay. I found an old post about how it's probably a known bug having to do with whether or not Confluence thinks it's dealing with a thumbnail. If so, it seems to have been a known bug for four years now.


Tags: confluence-server

image
In place editing of excel spreadsheet
Asked by jbabaria@fisa-opa.nyc.gov:

excel spreadsheet insert,update or delete .How to make it easier


Answers:
author: Shannon S
body: Hello,

Could you let us know what trouble you're having editing an Excel spreadsheet? I assume you are using the new Companion App.

* [Edit Office Files](https://confluence.atlassian.com/doc/edit-office-files-170494553.html)

Regards,

Shannon
I'm unable to edit or delete "markers" in the Roadmap Planner macro. Can anyone help?
Asked by Molly Earle:

For the past several weeks, I have been unable to edit or delete the "markers" in Roadmap Planner. Has anyone else experienced this, and been able to solve it?


Answers:
author: Jennifer Saini
body: FYI, for me, the trash icon is not showing but it is there to click and deletes the marker.

![Screenshot of Add Page - Salesforce Roadmap & Project Updates - Commercial - Confluence.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/303109i7077B22E355A77F4/image-size/large?v=v2&px=999 "Screenshot of Add Page - Salesforce Roadmap & Project Updates - Commercial - Confluence.jpg")

comments: author: jorddwi
body: Thank you! That was driving me crazy


author: edbassey77
body: Very helpful information. Thanks very much.


author: stacey.larger
body: Very helpful. Thank you!


author: Tyson Brown
body: Thank you! C'mon Atlassian! Easy defect


author: Diego
body: Hello there Molly!  
There is a chance that we are being affected by the bug described here:  

**[Roadmap Planner bars not responsive on the first load - CONFCLOUD-65229](https://jira.atlassian.com/browse/CONFCLOUD-65229)**

We can go ahead and try the following:
> 1. Access the **affected page**
> 2. Enter **edit mode**
> 3. After the editor loads, **reload the page**
> 4. Select the **Roadmap Macro**and click to edit
> 5. Try changing the desired settings

The bug here describes that the macro is not responsive after the first editor page load. However, after reloading the page Roadmap Macro works as expected.

Let us know if this helps you out!

comments: author: Christina Green
body: This does not solve it for me - I am able to edit bars and swimlanes, but unable to delete "Markers".


author: MKTKbk
body: at January 2020 bug persists :(


author: Louis Pieterse
body: Atlassian, please help


author: Rajeesh Nangariyil
body: Still not able to remove marker


author: Neha Thakare
body: Not able to delete and edit the marker


author: Ganesh Arelly
body: Bug exists in Jan 2021 too!


author: Mario Matos
body: Hello community, on 21 March 2024, the bin is still not labelled, but if you click on it, the deletion process is successfully completed.![Screenshot 2024-03-21 at 10.27.08.png](https://community.atlassian.com/t5/image/serverpage/image-id/313551i5251ED54E32C8E25/image-size/large?v=v2&px=999 "Screenshot 2024-03-21 at 10.27.08.png")  

<br />

<br />


author: Russell Hutson
body: On Cloud Confluence as of Oct 2022 this seems to be working okay

![Screenshot 2022-10-17 135350.png](https://community.atlassian.com/t5/image/serverpage/image-id/221084i5C6C3964686CDE12/image-size/large?v=v2&px=999 "Screenshot 2022-10-17 135350.png")

comments: author: Dan Boehm
body: In case anyone else gets stuck on this, you need to **click on the text label** for the marker (e.g., 'Renamed' in Russel's screenshot above). Clicking on the line itself will *not* bring up the edit/delete context menu.


author: VC
body: Thank you so much, works perfectly with that guidance, much apprecitaed, have an exec presentation due now so many thanks


Tags: cloud

confluence-cloud
Restaurar Confluence
Asked by Gonzalo de miguel:

?Como puedo restaurar los valores originales de Confluence?


Answers:
author: Stephen Sifers
body: Hola Gonzalo,

Translated with google translate:

Antes de seguir adelante, aseg?rese de tener buenas copias de seguridad. Si es posible, pruebe en su instancia de desarrollador antes de probar en producci?n.

Si desea eliminar por completo todo el contenido de Confluence y comenzar de nuevo, simplemente puede volver a invocar el asistente de configuraci?n eliminando un solo archivo. La eliminaci?n del archivo confluence.cfg.xml dentro del directorio de su aplicaci?n har? que Confluence pierda la configuraci?n de su aplicaci?n. A medida que regresa a trav?s del asistente, puede optar por sobrescribir cualquier informaci?n dentro de la base de datos. Aqu? est? el documento a seguir para completar esto: [How to restart the setup wizard after installing Confluence](https://confluence.atlassian.com/confkb/how-to-restart-the-setup-wizard-after-installing-confluence-179443224.html)

Tenga en cuenta que esto provocar? la p?rdida completa de todo el contenido en Confluence. Se sugiere que realice una copia de seguridad de Confluence antes de seguir adelante. Puede encontrar m?s informaci?n sobre las copias de seguridad en [Production Backup Strategy](https://confluence.atlassian.com/doc/production-backup-strategy-38797389.html)

Saludos,  
Stephen Sifers

Original reply:

Before moving forward, ensure you have good backups. If possible, test on your developer instance before testing in production.

If you're wanting to completely remove all content from Confluence and start over, then you can simply re-invoke the setup wizard by removing a single file. Removing the confluence.cfg.xml file within your application directory will cause Confluence to lose its application configuration. As you're going back through the wizard, you can opt to overwrite any data within the database. Here is the document to follow for completing this: [How to restart the setup wizard after installing Confluence](https://confluence.atlassian.com/confkb/how-to-restart-the-setup-wizard-after-installing-confluence-179443224.html)

Please note, this will result in complete loss of all content on Confluence. It is suggested that you take a backup of Confluence prior to moving forward. You may find more about backups at [Production Backup Strategy](https://confluence.atlassian.com/doc/production-backup-strategy-38797389.html)

Regards,  
Stephen Sifers