youngmon/atlassian-qna huggingface dataset:
.gitignore Exceptions
Asked by Joel Eade:

I'm using SourceTree to version control a WordPress site. I'm excluding the wp-content/uploads folder, as this contains images mostly, however I want to make an exception for a folder that needs to be version controlled and can't be moved out of the uploads folder.

I've tried using the "standard" Git exception character of ! before the folder path (<http://git-scm.com/docs/gitignore>) but it's not working. I found a forum that stated that Git v1.5.4.1 doesn't support it (<https://gist.github.com/jdbartlett/444295#comment-24598>) but I can't tell which version it is.

Any help would be appreciated. Thanks,

Joel


Answers:
author: Joel Eade
body: Thanks Seth. I'm running git version 1.8.5.2 (Apple Git-48) so I assume the exception (!) should be working. Hmm...


author: Seth
body: Click the "terminal" button in SourceTree and run git --version


Tags: git-ignore
Unable to delete the Pages in Confluence even though I have admin access
Asked by Vinnu Deepu:

I have couple of questions:

1).Unable to delete the Pages in Confluence even though I have admin access. Delete option is not available in confluence page.

2). How to create "Archived Pages" in Confluence and how to add Page restrictions to "Archived Pages".

3). How to move Unwanted/Older Pages under the "Archived Pages".


Answers:
author: Trudy Claspill
body: Hello [@Vinnu Deepu](/t5/user/viewprofilepage/user-id/5092778)

Are you working with Confluence Cloud or Confluence Server/DC?

1. As an Administrator you should be able to modify the permissions for the space and grant yourself the permission for deleting pages.

2. Archiving pages is available only in Confluence Cloud. Information about that can be found here:

<https://confluence.atlassian.com/doc/archive-a-space-284368719.html>

Set page restrictions on archived pages the same way you set them on pages that are not archived.

Archiving pages is not a native feature of Confluence Server/DC. In Confluence DC you can archive an entire space. Information about that can be found here:

<https://confluence.atlassian.com/doc/archive-a-space-284368719.html>

3. See the answer to #2.


Tags: unknown-hosting-type
I'm getting a 403 Error when connection to Confluence REST API - 2FA
Asked by Roumimper M. (Maurice):

When i Connect to Confluemce using the REST API i get an 403 error.

The ConfluenceURL and the PostURL are correct and show results in the webbrowser.

Within our company we use 2FA. Therefore I generated an API Token in Confluence and used it in this script.

Buit still i got an 403 error.

What could be wrong?

This is a part of the script i use:

Dim strApiToken: strApiToken = "\<My Token\>"  

Dim strConfluenceURL: strConfluenceURL = "https://\<MyCompany\>.atlassian.net"  
Dim strSpaceKey: strSpaceKey = "\<MySpaceKey"  
Dim strPageTitle: strPageTitle = "\<MyPageTitle\>"  

Dim strPostURL: strPostURL = strConfluenceURL \& "/rest/api/content"  
Dim objHTTP: Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")  

Dim strJSON  
strJSON = "{""type"": ""page"",""title"": """ \& strPageTitle \& """, ""space"": {""key"": """ \& _  
strSpaceKey \& """}, ""body"": {""storage"": {""value"": """ \& _  
Replace(strContent, """", "\\""") \& """, ""repressentation"": ""storage""}}}"  

objHTTP.open "POST", strPostURL, False  
objHTTP.setRequestHeader "Content-Type", "application/json"  
objHTTP.setRequestHeader "Authorization", "Bearer " \& strApiToken  
objHTTP.send strJSON


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Roumimper M. (Maurice)](/t5/user/viewprofilepage/user-id/5266439) and welcome,

403 error means forbidden so, first of all, you need to check user's permission on the target space.

Hope this helps,

Fabio

comments: author: Roumimper M. (Maurice)
body: Hello Fabio,

I found the issue.

The Authentication method shoul be Basic in stead of Bearer.  
The ApiToken must consist of Username \& ":" \& API Token generated in Confluence then encoded to base64

That worked

**strEncodedApiToken = Base64Encode(\<My User Name\> \& ":" \& \<My API token\>)**

Function GetRequest(strPOSTURL, strEncodedApiToken )  
Dim objHTTP  
Set objHTTP = CreateObject("MSXML2.ServerXMLHTTP")  
With objHTTP  
.open "GET", strPOSTURL, False  
**.setRequestHeader "Authorization", "Basic " \& strEncodedApiToken**   
.setRequestHeader "Content-Type", "application/json"  
.send  
End With  
GetRequest = objHTTP.status \& " :" \& objHTTP.responseText  
Set objHTTP = Nothing  
End Function


Tags: cloud

confluence-cloud
Using regular expression on @pagetitle with Table Transformer to dynamic present content
Asked by Rafael Gilardino:

Hi everyone.

I've been struggling for a while to automate a few pages in my Confluence space.

My use case is as following:

1. I have a page with a table that I'm exposign using Table Excerpt with a list of capabilities with the respective components (I'm calling it Functions Masterlist) as follows:![vodafunctable.png](/t5/image/serverpage/image-id/268320i4472B2303CA3BC8C/image-size/large?v=v2&px=999 "vodafunctable.png")
2. Then for each "Component Name" I have a dedicated page with the component specification and assets. One the assets is the list of capabilities that (as of today are spreadly defined in each one of the components pages) ideally I wanted to fetch from the "Functions Masterlist" leveraging both "Table Excerpt Include" and "Table Transformer"
3. Those component pages have a predefined Title template as follows: "V-ODA (v0.40) - Level 2: Service Order Management"
4. As you can see the Component Name column from the Functions Masterlist matches with the title content after the "2: " string from the Title

**The help that I need is how to come up with a SQL query from the Table Transformer plugin that will allow to dynamically fetch the content from the Functions Masterlist based on a substring of Title page.**

From my research I'd need to combine a regular expression (to fetch the content that is after the "2: " coming from the variable @pagetitle within the SQL query in the Table Transformer plugin.

My ultimate goal is to centrally manage the component functions while dynamically reflecting it in all pages.


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Rafael Gilardino](/t5/user/viewprofilepage/user-id/5266320),  

Hope this example will help your case:  

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

SELECT \*,  
'Pagetitle'-\>split(": ")-\>1 AS 'Component name'  
FROM  
(SELECT \*, @PAGETITLE as 'Pagetitle' FROM T\*)  

![Wed 9-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/268341i70BDCD719F9BFB50/image-size/large?v=v2&px=999 "Wed 9-2.png")  
Then you will be able to use another [Table Transformer](https://docs.stiltsoft.com/tfac/dc-server/how-to-use-table-transformer-macro-42241552.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro and merge your master table with mini tables pulled from the specification pages by the 'Component name' column.

comments: author: Rafael Gilardino
body: It worked brilliantly! Thanks very much for the prompt support [@Katerina Rudkovskaya \[Stiltsoft\]](/t5/user/viewprofilepage/user-id/3738229)


Tags: confluence-server

filter

ms-excel

server

table
Why does "rate limit reached" suddenly occur in a page?
Asked by Andreas Schierz:

Hi there,

a question to confluence performance:

On a page (we used already longer time) suddenly the message "Rate limit reached. Wait a minute or so while the system resets, refreh the pge, and try again" is shown.

Why?

We are using filters to jira server and a lot of formulas using latex - can this be the root cause?

thx for your help

Andy


Answers:
author: Dan Breyen
body: Hi Andreas, here's an article I found from Atlassian regarding Rate Limiting. [Rate Limiting](https://developer.atlassian.com/cloud/confluence/rate-limiting/)

From reading that article, it would appear that 'a lot of formulas' could be impacting it. It might be worth looking into possibly processing that data in a different manner.

There's 2 Conf Cloud tickets mentioned in that article, might be worth voting for and watching.

Hope that helps.


Tags: cloud

confluence-cloud
Question on Markdown Exporter for Confluence
Asked by James Mak:

Hi Team,

I am evaluating the plugin and trying to export my Confluence pages to Markdown pages. Plug-in used: [https://marketplace.atlassian.com/apps/1221351/markdown-exporter-for-confluence?tab=support\&hosting=cloud](https://marketplace.atlassian.com/apps/1221351/markdown-exporter-for-confluence?tab=support&hosting=cloud)  

I found that the converted pages are missing some text, some tables which appear in the original Confluence pages. And some converted tables are not displayed properly until I manually edited the table in Markdown format.

May I ask if there is any setting I missed during the export process?

Thanks,

James


Answers:
author: Diego Zabala Betancur
body: Hi,

<br />

I'm getting a similar issue trying to export a Confluence space using the 'bulk export' feature. It does not crash but it's not downloading the whole data. The pictures into the excerpt macros didn't get downloaded and this is a big issue because some data is missing into the exports.

Does anyone know a way to adjust the settings of the app to get it working?

comments: author: Nar Kumar C. - Narva Software
body: Hi Diego,

I replied to your support request. This is indeed a bug when you use Excerpt Include to include images from other pages, as the images belong to the original page.

We will try to find a fix for this.

<br />

Regards,

Nar


author: Diego Zabala Betancur
body: thanks a lot!


author: Nar Kumar C. - Narva Software
body: Hi James,

I am part of the team behind this app. Please submit a support ticket with details from the link you posted: [https://marketplace.atlassian.com/apps/1221351/markdown-exporter-for-confluence?tab=support\&hosting=cloud](https://marketplace.atlassian.com/apps/1221351/markdown-exporter-for-confluence?tab=support&hosting=cloud)

You can click on [Submit a support request](https://bitwelt.atlassian.net/servicedesk) to raise a ticket and we are more than happy to look into the issue.


author: Andrii Maliuta
body: Hello [@James Mak](/t5/user/viewprofilepage/user-id/5266201) ,

It can be better to write directly to the vendor support to get answers . Contacts are on Contact/Support page.


Tags: cloud

confluence-cloud
How often the 'Insert JIRA Issue/Filter' macro can be used on a single Confluence page?
Asked by Michael Kr?ger:

We've Confluence pages including tables where the 'Insert JIRA Issue/Filter' macro is used several hundred times.

![confluence.jpg](/t5/image/serverpage/image-id/268280i262D4BFF92E0F6D9/image-size/large?v=v2&px=999 "confluence.jpg")

Now it happens that when opening the Confluence page the table is not shown on the page. Sometimes a reload helps, but often not.

Our assumption is that either there is a kind of limit for the macro or that Confluence is not able to solve all links when loading the page (maybe related to the current traffic between JIRA and Confluence?).

Has someone already had the same issue or has any ideas how to figure out if this is related to that macro?


Answers:
author: Rilwan Ahmed
body: Hi [@Michael Kr?ger](/t5/user/viewprofilepage/user-id/5000214) ,

1. When a jira macro is added, the page checks for the permissions for each ticket before it displays. So there is slowness is page loading.

2. There is already a know issue for Slow Page Load when confluence page contains a lot of links  
<https://confluence.atlassian.com/confkb/slow-page-load-when-it-contains-a-lot-of-links-794212142.html>  

**Workaround**: Make use of child pages and split the jira macro into different pages.


Tags: confluence-server

server
Confluence page shown 'Preview unavailable' for the inserted images
Asked by Meenakshi Razdan:

Hello there,

For a few days, I am experiencing issues with my Confluence page.

1. "Preview Unavailable" - On my published confluence page most of the images are appearing as "Preview Unavailable" while in edit mode. Images inserted are huge and inserting again will be a huge work. This issue is happening frequently currently.

2. While editing the confluence page, suddenly my page gets hanged up showing the restoration issue and it does not allow me to publish my work. The only workaround is to close the page and re-edit. In this action, I lose all my previous work on the page.

I request you to please look into the issue urgently as we publish all our content on the Confluence page only.

Thanks.


Answers:
author: Dan Breyen
body: Hi [@Meenakshi Razdan](/t5/user/viewprofilepage/user-id/4487927) I found a similar issue on Atlassian's Jira site at jira.atlassian.com [CONFCLOUD-73527](https://jira.atlassian.com/browse/CONFCLOUD-73527)

Not sure if this could be your issue or not. I would suggest opening a support ticket at support.atlassian.com (click contact in upper right corner) and they could look into this further for you.

Looks like Jira previously had a similar issue too.

Hope that helps.

comments: author: Bharath Kumar
body: Hey [@Meenakshi Razdan](/t5/user/viewprofilepage/user-id/4487927)  
Could you please raise a case with [Atlassian support](http://support.atlassian.com)? The issues need looking into, especially the second one.


Tags: cloud

confluence-cloud
convert confluence storage format to adf or html
Asked by sri lakshmi:

How can we convert confluence storage format to adf or html

For example:  
\<ac:image\> \<ri:url ri:value="<http://confluence.atlassian.com/images/logo/confluence_48_trans.png>" /\>\</ac:image\>  
should be converted to proper html or adf format  
Trying to achieve this on node js


Answers:
author: Andrii Maliuta
body: Hello [@sri lakshmi](/t5/user/viewprofilepage/user-id/5266110) ,

For **CLoud** you can use REST API to convert types of page body repreentation :

<https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-body/#api-wiki-rest-api-contentbody-convert-to-post>

(storage: view, export_view, styled_view, editor)

For **Server** there is Java API for this.

comments: author: sri lakshmi
body: thanks for your response [@Andrii Maliuta](/t5/user/viewprofilepage/user-id/484201) ....

I've another question.... where can I locate confluence storage format xml schema for converting the xml into javascript object?


Tags: cloud

confluence-cloud
Replace text with excerpt include - Macro
Asked by Thomas Scheer:

Is there any way to replace a specific text in all confluence pages of a space with a specific "excerpt include" which is defined in the space?

e.g. ###text### --\> "excercpt include ###text###" in all pages.

The default search replace can only replace text with text.


Answers:
author: Andrii Maliuta
body: Hello [@Thomas Scheer](/t5/user/viewprofilepage/user-id/5266073) ,

Yes, you can use Java API (<https://developer.atlassian.com/server/confluence/>) to do this.

You first get pages you want to apply changes to and then change their bodies.

E.g. in Groovy :

```
List<Page> pages = pageManager.getPages(...);

pages.each { page ->

  def body = page.getBodyAsString()
  body = body.replace("TEXT", "<ac:structured-macro ac:name=\"excerpt-include\"...</ac:structured-macro>")
  page.setBodyAsString(body)

}


```


Tags: confluence-server

server
How to restrict access to old versions of pages?
Asked by Ralf_bamert:

I want to restrict access to older versions of any page to the system admin only.

All regular users shall only be able to see the current page.


Answers:
author: Dave Mathijs
body: Hi [@Ralf_bamert](/t5/user/viewprofilepage/user-id/5266041) welcome to the Atlassian Community!

Why would you want to restricted access to the version history of a Confluence page?

Confluence is designed for Open Work.

This is not possible yet out-of-the-box. You can vote \& watch the open suggestion here: [CONFCLOUD-13247](https://jira.atlassian.com/browse/CONFCLOUD-13247).

As an alternative, you could (bulk) delete the oldest/older versions of a page.

comments: author: Ralf_bamert
body: I guess it's bulk delete then. A lot of history to be deleted.


author: Dave Mathijs
body: There are third-party apps (like ScriptRunner for Confluence) that can help you with that.


Tags: cloud

confluence-cloud
How can users see a single list of comments they have been tagged in across multiple pages
Asked by Jake S:

I would like our users to be able to view a single list showing all comments they have been mentioned (@) in across multiple pages.

With out the ability to do this I assume all users will need to go in to every document and and open every comment to see if they are mentioned which is not efficient. Or look at their email for notifications and open each one.

Thanks guys.


Answers:
author: Dave Mathijs
body: Hi [@Jake S](/t5/user/viewprofilepage/user-id/5086684)

There's an open suggestion for this: [CONFCLOUD-71883](https://jira.atlassian.com/browse/CONFCLOUD-71883)

comments: author: Jake S
body: Thanks Dave. I am wondering if there is a work around or add in that can achieve this until the suggestion is actioned?

Any idea when or if the suggestion will be actioned?


Tags: cloud

confluence-cloud
Get the content of confluence page data in json format through the rest api
Asked by mohammedafzal:

I can access the confluence page content through the endpoint -   
[rest/api/content/](http://rest/api/content/{id})[{id}?expand=body.storage.](http://rest/api/content/{id})

<br />

The response of the above endpoint is in HTML format.   

I need the response in the JSON format or any easy way to convert the body to JSON format?.  

Any help would be much appreciated.   


Answers:
author: Charlie Misonne
body: Hi [@mohammedafzal](/t5/user/viewprofilepage/user-id/5265952)

The content of Confluence pages can be quite complex. It does not only contain flat text but also macros, formatting details, layouting, ... If you expect the API to return only the text and nothing else I'm afraid it has not been foreseen in the API.

Here is a suggestion: try using the new v2 API. You also have to choose a storage format with a query parameter:

\<base-url\>/wiki/api/v2/pages/\<page-id\>?body-format=atlas_doc_format

Options are:

* storage: html style
* view: also html but different
* atlas_doc_format: a structured JSON representation of the body.  
  It might suit your needs better altough the json is still quite complex but at least you don't have to worry about the HTML tags.  
  With some scripting you could only extract the actual text more easily than with the other formats.

Here is the v2 API documentation: <https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get>

I hope this helps at least a bit!

comments: author: mohammedafzal
body: We have a self deployed instance of Atlassian tools on premises.   
\<base-url\>/wiki/api/v2/pages/\<page-id\>?body-format=atlas_doc_format -- when we test this endpoint, it is throwing 404.   

Anyother solution would help.  

Thanks for your quick support.


author: Charlie Misonne
body: I'm sorry. For some reason I thought you were on Cloud.

I don't think there is anything similar of on premise solutions.


Tags: confluence-server

server
Unable to add inline comments - Could not save the comment
Asked by Harpreet Singh Dhaliwal:

Hi All,

Unable to add inline comment. Get unable to save your comment.

Plugins are already enabled. Can you please advise what can i do to resolve this issue

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

2023-07-12 00:04:24,937 ERROR \[http-nio-8090-exec-13 url: /confluence/rest/inlinecomments/1.0/comments; user: px831f\] \[core.persistence.hibernate.HibernateObjectDao\] reIndex Unable to reIndex object: page: RR-1685-kafka-timeout-and-recover-integration-template v.133 (41255946) -- Failed to add entry to queue  
-- referer: xxxxx-and-recover-integration-template \| url: /confluence/rest/inlinecomments/1.0/comments \| traceId: fcd12d878940f4c8 \| userName: xxxxxx  
com.atlassian.confluence.api.service.exceptions.ServiceException: Failed to add entry to queue  
at com.atlassian.confluence.impl.journal.DefaultJournalService.enqueue(DefaultJournalService.java:33)  
at com.atlassian.confluence.search.queue.AbstractJournalIndexTaskQueue.lambda$enqueue$0(AbstractJournalIndexTaskQueue.java:109)


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Harpreet Singh Dhaliwal](/t5/user/viewprofilepage/user-id/2878292) ,

there is a similar thread here <https://community.atlassian.com/t5/Confluence-questions/Problem-Saving-of-inline-comments-not-possible/qaq-p/1014606>

Hope this helps,

Fabio


Tags: confluence-server

server
Confluence Jira Table Tool Not Displaying Selected Jira Fields
Asked by Les.Reid:

We have an issues with Confluence pages not displaying selected fields in a Jira Table.

The tool used is this...

![Jira Confluence Capture.JPG](/t5/image/serverpage/image-id/268239iEDFAE25C63BE74DA/image-size/large?v=v2&px=999 "Jira Confluence Capture.JPG")

An example of the selected fields to display...

![Display Options.JPG](/t5/image/serverpage/image-id/268240iE2048B0740B64A35/image-size/large?v=v2&px=999 "Display Options.JPG")

And what gets displayed...

![Jira Table.JPG](/t5/image/serverpage/image-id/268241i9C8B306C23853D47/image-size/large?v=v2&px=999 "Jira Table.JPG")

Any others encountering the same issue?


Answers:
author: Laura Campbell _Seibert Media_
body: Hi [@Les.Reid](/t5/user/viewprofilepage/user-id/3024985) , the screenshot of your display looks like the macro from the edit mode. Have you published your page? It's common for macros to be empty/blank in edit mode, and then display information on the published page (for example, the table of contents macro).

comments: author: Les.Reid
body: Thanks [@Laura Campbell _Seibert Media_](/t5/user/viewprofilepage/user-id/3327113)

Yes, published - this is a page which up until this week has has run as required.

We are having similar issues with a range of pages on confluence.


author: Les.Reid
body: It appears to be specific to Customised Fields.


Tags: cloud

confluence-cloud
Will the next Confluence Data Center release use Tomcat 9.0.75?
Asked by Corey Dyson:

Hello,

I was wondering if the next Confluence Data Center release will use Tomcat version 9.0.75? I'm asking because the current release is using Tomcat version 9.0.73 which is vulnerable to CVE-2023-28709. Also is there an ETA for the new release?

Thank you!


Answers:
author: Laurie Sciutti
body: Hi [@Corey Dyson](/t5/user/viewprofilepage/user-id/5265744) \~ you can refer here for Tomcat versions used for each DC version: <https://confluence.atlassian.com/doc/bundled-tomcat-and-java-versions-1005786018.html> Doesn't look like 9.0.75 is currently in the mix so this would be a question for Atlassian Support.


Tags: confluence-server

server
Can you convert a Confluence page to Markdown (instead of HTML)?
Asked by Phillip_Dang:

Can you convert a Confluence page to Markdown (instead of HTML)?


Answers:
author: Aron Gombas _Midori_
body: This app does exactly what you look for!

[https://marketplace.atlassian.com/apps/1227287/export-to-markdown-for-confluence-cloud?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1227287/export-to-markdown-for-confluence-cloud?tab=overview&hosting=cloud)

An alternative would be exporting to HTML, then converting the HTML to MD. There command-line tools for the conversion.


Tags: cloud

confluence-cloud