youngmon/atlassian-qna huggingface dataset:
Insert a macro with cli following another macro
Asked by Roswitha Gartner:

Hi,

it is possible to insert a macro into a page with the confluence command line interface.

(e.g. confluence --action modifyPage --id "216597104" --content "\<ac:macro ac:name=""unmigrated-inline-wiki-markup""\>\<ac:plain-text-body\>\<!\[CDATA\[{wiki:param1=xxxxx}bodyText{wiki}\]\]\>\</ac:plain-text-body\>\</ac:macro\>" --noConvert )

But: --content or --content2 puts the content at the end or at the beginning of a page, but I want it to be following another macro, that is somewhere in the midst of the page.

I ve already tried using findReplace, which drives me mad with the special characters, and it doesn t work yet.

Any other ideas?


Answers:
author: Bob Swift (personal)
body: Write a small script that does the following:

1. Run [getPageSource](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-getPageSource)
2. Modify the source according to your specific needs
3. Then [storePage](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-storePage)

comments: author: Roswitha Gartner
body: Thanks Bob for your quick answer and suggestion.


author: fabrizio galletti
body: Yeah it's what i'm trying to do, but i need to add at the end some rows (around 10) corresponding to storage format of 2 different macro (checklist and pageinclude)

comments: author: fabrizio galletti
body: Thanks, i figured out, i was missing the "--noConvert" parameter


author: fabrizio galletti
body: [@Bob Swift _Appfire_](/t5/user/viewprofilepage/user-id/645709) problem with quote annidation...

--action runFromContentList --cql "type=page and label=mylabel" --common ' --action modifyPage --id "@pageId@" --content2 "\<p\> \<ac:structured-macro ac:name=\~include\~\> \<ac:parameter ac:name=\~\~\> \<ac:link\> \<ri:page ri:content-title=\~_ page to be included\~ ri:space-key=\~KB\~/\> \</ac:link\> \</ac:parameter\> \</ac:structured-macro\>\</p\>" --noConvert --minor --special " # \~" '

without the runfromcontentlist it works, but when i put it together it doesn't


author: fabrizio galletti
body: Hi [@Bob Swift (personal)](/t5/user/viewprofilepage/user-id/781458), is this possible to do it for a result of runfronlist or getcontentlist?

comments: author: Bob Swift _Appfire_
body: Yes, but only if there is no manual intervention required - that means being able to do it generically with \*modifyPage\*.


Tags: cli
Change URL's in database
Asked by Karolina:

Hello,

I will have to change DNS name which is used by our confluence and jira.

My users are often adding links in confluence to some pages in jira. This URL's won't work anymore after changing DNS names used my applications.

It's too much links to change it manually, so I would like to change it directly in database.  
I already changed links in tables: confluence.LINKS and confluence.EXTRNLNKS but I still see old URL's on some confluence pages content.

Could someone tell me where is content of the sites stored?

I checked table confluence.content but I don't see my URL's there.  

best regards  
Karolina Radziwon


Answers:
author: Karolina
body: Hey,  

Your link was usefull, I finally found table which I need:  

```
update confluence.BODYCONTENT set BODY = REPLACE(cast(BODY as nvarchar(max)),'/OLD_URL/','/NEW_URL/') where BODY like '%OLD_URL%';
```

Thank you :)  

Karolina  

<br />


author: Tiago Comasseto
body: Hi Karolina, are you refering to the links inserted by JIRA Issue macro? if so, they may be changed automatically once you recreate the application link between JIRA and Confluence. However, if they don't update, you may follow the steps [here](https://confluence.atlassian.com/display/CONFKB/How+to+bulk+edit+JIRA+Issue+Macro+to+point+to+a+different+JIRA+instance) (just don't forget to make a database backup).

Cheers

comments: author: Karolina
body: Hello Tiago,  
Thank you very much for answer. Links created by Application Links are not a problem, I already changed them.  

I'm talking about static links which are inside of confluence sites content.   
Unfortunately my users created lots of links like this to tickets in JIRA, and sometimes even to other sites in confluence.  
I would like to change this URL's for them. It's not a problem to do this using SQL, but I'm not sure where to find site's content.  

As I said I change links in two tables, but it's not enough.  

regards  
Karolina


Tags: confluence-administration
SEC Compliance
Asked by Anita Subramanian:

Is Atlassian Confluence SEC compliant?


Answers:
author: Nic Brough -Adaptavist-
body: Possibly.

Depends on how you use and configure it. Like most other software, it's not really up to the writers to decide if it's directly compliant with any arbitrary guidelines, it's more up to the users to decide if it meets the rules within the way they're using the software.
Images are not displaying in exported PDF
Asked by newcomer:

Hi,

I have couple of URL images (example given below) that resides in Confluence page fine.

\<ac:image ac:height="275" ac:width="400"\>

\<ri:url ri:value="https://\<web-address\>/Start.png"/\>

\</ac:image\>

When I exporting that page to pdf, those images are not showing up.

Is there a way I can get them in the exported pdf?

Thanks.


Answers:
author: Ludovic MOTTINI
body: Hi, I use Confluence Cloud and have pictures; PNG or JPEG, that are not displaying while exported in PDF. The reason is there are placed in the macro "column" which is in the macro "section".

One only is showing it is because it is embedded in a table which is in the column macro.

I will try using DIVs instead of macros.


author: Ryan Porter
body: FYI: Centered images do not appear in PDF exports, regardless of the file format.

comments: author: Pantel_Support
body: This solved the issue for me. I had an image centered and it displayed correctly when I left-aligned it.


author: apriscan
body: unbelievable!


author: Peguiron Ernst, Mathias
body: I observed that images must be in the "original format" and not in a reduced scale

![original.png](https://community.atlassian.com/t5/image/serverpage/image-id/22271i5730AFCDA82715C2/image-size/large?v=v2&px=999 "original.png")In original format they show up in the pdf. In reduced scale they do not.


author: Minh Tran
body: This problem has been fixed in Confluence 6.8.0


author: newcomer
body: My question is striaght forward.... in a page, I am referring to the image on the web like \<ri:url ri:value="https://\<web-address\>/Start.png"/\>. Now I want this image should be displayed when I export PDF out of this page. Is it possible? ANy suggestion.


author: Peter Van de Voorde
body: Hi,

You should download the image from the web and attach it to your page.

Then replace the image in your page with the attached image.

Now try again.

Best regards,

Peter


author: Guilherme Nedel [Atlassian]
body: Hello there, there is a known [open issue](https://jira.atlassian.com/browse/CONF-31874) where images inside tables are not being exported through PDF, is that the case? Does the issue occurs when chosing a different image format, or there are images that get exported from that same page?

In that case please provide information on the remaining elements as such the community can provide advice on the behavior.
Google Analytics for Confluence plugin - "Who's viewed this page?" displays "No result found."
Asked by Consu:

Hello all,

I have installed the plugin [Google Analytics for Confluence.](https://marketplace.atlassian.com/archive/me.davidsimpson.confluence.plugins.googleanalytics) It was working fine till now, I assume that was correctly configured, but now when I click on "who viewed this" it doesn't show any user (and there are users that visited the page, I know this for sure)

I have the latest update version of the plugin. Is this happening to anyone else? Am I missing out something evident?


Answers:
author: David at David Simpson Apps
body: Hi @Consu

Does your data collection JavaScript contain the following?

```
_gaq.push(['af._setCustomVar', 2, 'confluence-user-key', AJS.params.userKey, 1 ]);
```

...you should be able to find this in **Confluence Admin \| Custom HTML** or by viewing the source of the page.

We can also continue this with our support system - email [info@appfusions.com](mailto:info@appfusions.com) with updates.

**Edit:**

Go to the configuration screen in **Confluence Admin \| AppFusons-Add-Ons \| Google Analytics for Confluence**.

Perform Steps 1, 2 \& 3. Importantly, you must review the JavaScript added in the **At end of the HEAD** in the **Custom HTML** and **click the****Save button** .

Check that the above JavaScript now appears on the page (view source and search can help). If all is good at this point, browse some pages then wait a few hours for Google Analytics to process the results.

comments: author: Consu
body: Hello David, and thanks.

<br />

No there is not such a line in the Custom Html. It reads

```
&lt;script&gt;AJS.$(document).ready(function() {  if (AJS.$('#wysiwygTextarea_ifr').length &gt; 0) {    AJS.$('#wysiwygTextarea_ifr').height(AJS.$('#rte').height());  }});&lt;/script&gt;
```

(field At the end of BODY)  
where should I add that line, if at all?


author: David at David Simpson Apps
body: @consuCheck the edits above. Mail me at [info@appfusions.com](mailto:info@appfusions.com)if theres any further problems.


author: Deividi Luvison
body: Hey Consu,

Did this happened after upgrading Confluence?

Did you tried [Rebuild Confluence Content Indexes from Scratch](https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch) and see if the plugin shows any data?

Thanks and Regards,  
David\|Atlassian Support

comments: author: Consu
body: Hello David, thanks for the answer. Yes it did happen after an upgrade. I need to try this solution and let you know if it works!


author: David at David Simpson Apps
body: This won't work. See my suggestion.


author: Deividi Luvison
body: Yeah, check David suggestion :p.


Tags: addon-me.davidsimpson.confluence.plugins.googl

analytics

appfusions

confluence-administration

google-analytics
Add-on during evaluation
Asked by ClaireS:

Hi There

I am currently running an eval of JIRA Service Desk with Confluence. We'd like to add Share Attachments as an add-on to the evaluation. I have downloaded the .jar file as per instructions and copied the licence key. Then, the instructions tell me to go to the Confluence admin are and manage add-ons. From there I should be able to 'upload add-ons' but this option isn't available. Please can you help?

Many thanks  
Claire


Answers:
author: Nic Brough -Adaptavist-
body: Are you using OnDemand? You cannot install addons into OnDemand (you can install some, but via your OnDemand management account, not in Confluence, and the list is strictly limited)


author: Gorka Puente _Appfire_
body: Hi Claire,

Try this link

[](https://keinoby.atlassian.net/admin/users/sign-up)<https://keinoby.atlassian.net/admin/users/sign-up>

Please, raise an issue and we'll be in touch with you. We are thinking of implementing a version for onDemand.

Cheers,

Gorka


author: ClaireS
body: Hi Gorka

I clicked on the link but haven't got login credentials for the screen it takes me to. Would love to log this as Share Attachments for onDemand instance would be of benefit to us (following trial!).

Thanks

Claire


author: Gorka Puente _Appfire_
body: Hi Claire,

I'm one of the developers of [Share Attachments](https://marketplace.atlassian.com/plugins/com.keinoby.confluence.plugins.share-attachments). If you are still interested in a onDemand version of our product, please raise a ticket in [](https://keinoby.atlassian.net/)<https://keinoby.atlassian.net/>so we can give priority to it.

Regards,

Gorka


author: ClaireS
body: Thanks Nic. That'll be the reason. Its a shame because Share Attachments would of sorted a problem nicely for us but we don't want the hassle of running JIRA in house so we'll stick with OnDemand.
Is there a Simplified Chinese language package for Confluence 5.52?
Asked by Hernan Castaneda:

Hello,

I have installed the trial version of Confluence 5.5.2 in a Linux box. I want to provide support for Simplified Chinese but when I search for the language package in "Find new add-ons" I don't get any results. See screenshot below:

![](../../upfiles/2014-06-05_14_54_35-Find_new_add-ons_-_Confluence.png)

Is there support for Simplified Chinese for Confluence 5.5.2?

Best regards,

Hernan C.


Answers:
author: Hernan Castaneda
body: Hello Guilherme,

Thanks! It worked pretty well.


author: Guilherme Nedel [Atlassian]
body: Hello Hernan, the portal where every existing Confluence translation is living is [](https://translations.atlassian.com/)<https://translations.atlassian.com/>. You may access that page to retrieve all the available languages there, in case you do not find the needed package, you may refer to [this guide](https://confluence.atlassian.com/display/TRANS/Atlassian+Translations) on translating content from Confluence.

Hope it helps.


Tags: language

language-zh
read-only Confluence-Administrator
Asked by Andre Lehmann:

Hi there,  
we have a 3rd-party enterprise-search in our company.  
This is an own server and own software.  

There are connectors for some applications, so that the search-engine can index the application.  
For some connectors, the "index-user" needs to be system-administrator.  
For Confluence he also needs to be a member of "confluence-administrators" which grants him "more permissions as "Confluence-Administrator".  

Now we have a little compliance/security problem.   
On one hand, we don't want do grant that user system-admin permission and on the other hand we want to index confluence.  

Is there any way to get "read-only-Confluence-Administrator" ?  

Kind regards  
Andr?


Answers:
author: Steve Gerstner [bridgingIT]
body: To make it short.... noIs feeding an alternative to crawling?

comments: author: Andre Lehmann
body: Hi Steve,

thanks for your answer.

I think the connector, or better our 3rd party search-enginge is just crawling. Don't know hot to feed that system from Confluence.

Getting articles by rss or whatever doesn't seem to be enough. The search also crawls for permissions etc...

I also created a support request at atlassian but i got the same answer :-)

I will gave all those infos to our management/security-board. Now its their turn :-)

Kind regards  
Andr?


Tags: confluence-administration
Copy paste of personal tasks
Asked by Per Olofsson:

1. Lets say that you have a personal task on a page.
2. In edit mode you cut this task into copy bufffer
3. Go to a another page - paste the task into this page

-\> your task is gone? Not competed or new - just gone...

Seems like bug - or is this intentional?

Running Confluence 5.1.2

Not sure that it the same problem as <https://answers.atlassian.com/questions/283685/confluence-personal-tasks-moved-but-where-are-my-tasks>


Answers:
author: Rodrigo Girardi Adami
body: Hi Per,

i've tried to reproduce the behavior on a 5.1.5 and 5.5.2 and I couldn't reproduce. Are you able to test this in the latest confluence version?

If the problem persists, try to screencast - <http://www.screencast-o-matic.com/>the behavior and paste the link here so we can check the exact steps you are performing and try to help you :)

Cheers,

Rodrigo

comments: author: Per Olofsson
body: Thanks - tried the screencast-o.matic - excelent way of recording on your computer! - Not sure how I can upload or send the file to you?

mp4 does not seem to be an "allowed format"?


author: Rodrigo Girardi Adami
body: Hello Per,

If you have the link to the video in the website you can just paste here in a comment for the web link.

Also, have you tried to replicate this issue in a confluence 5.5.2 or 5.5.3 to check if this persists?

Cheers,

Rodrigo
Confluence - personas
Asked by Josep Capdevila:

Como puedo a?adir personas en mi calendario y espacio confluence.Tengo permisos actvados y quiero que en usuario jira, con permiso confluence-user, acceda a espacios, calendarios, ...


Answers:
author: HenriqueA
body: Hello Josep,

The user can access the confluence calendar, pages, spaces if this user belongs to the correctly groups and also the Confluence Application Access as you can see more details on the following link:

[](https://confluence.atlassian.com/display/AOD/Managing+application+access)<https://confluence.atlassian.com/display/AOD/Managing+application+access>

I hope it helped :)

Kind Regards,

Henrique Lechner


Tags: cloud
Office Connector problem - nothing happens when clicking Edit in Office
Asked by Jason Moerbe:

I'm stretching the limits of my technical understanding, so thank you for your patience with my question.

I'm on a Mac with:

OSX 10.9.3

Firefox 29.0.1 (I understand there is a bug with Office Connector and FF 29 \& 30, but supposedly that is fixed with the latest WebDAV Launcher [](https://jira.atlassian.com/browse/CONF-33469)<https://jira.atlassian.com/browse/CONF-33469>

WebDAV Launcher 1.0.8

Open Office 4.1.0

With this setup, when I click "Edit in Office" nothing happens. No prompts, no opening of files. nothing.

I'm not sure I have the WebDAV launcher configured properly. In Windows, you point it down the path to the .exe. For OSX, I'm not sure exactly where to point it. Evidently it's not sufficient to enter "Open Office.app", which is what I get when I use the browser to indicate the application.

Any help is appreciated!


Answers:
author: Mirek
body: Hi Jason,

You need one of the following software combinations to edit Office files from your wiki page:

* Mac OS X 10.5 and 10.6
* [OpenOffice](http://www.openoffice.org/) 2.x -- 3.x (The "Edit in Word" feature is known to work in [OpenOffice](http://www.openoffice.org/) 3.2.0)
* Firefox -- latest stable version

You are using a newer system and Open Office. This could be a reason why it is not working for you.

Please check below page, it may help to troubleshoot your specific problem

[](https://confluence.atlassian.com/display/CONFKB/Office+Connector+Limitations+and+Known+Issues)<https://confluence.atlassian.com/display/CONFKB/Office+Connector+Limitations+and+Known+Issues>

I hope that will help

-Mirek


author: JulianA
body: MAybe you wanna check this out

[Re: Office Connector not working in Firefox 29 and Firefox 30](https://jira.atlassian.com/browse/CONF-33469)

comments: author: Jason Moerbe
body: Thanks. According to the link in the OP, I was under the impression that this problem had been resolved. But maybe not.


Tags: confluence-administration

firefox

mac

ms-office-connector
SSO With OnDemand
Asked by Cheryl Schmelzer:

Is it possible to implement SSO between a Confluence OnDemand instance and an external Cloud Authentication server?


Answers:
author: Mallmann
body: Hey Cheryl,

I'm afraid it's not possible to do such configuration using the OnDemand instance.

In your case the best solution would be to use the standalone version, so you would be able to use external authentication server and configure the SSO.

Best regards,

Eduardo Mallmann

Atlassian Support


Tags: confluence-cloud

sso
Connectivity Between two OnDemand Confluence servers
Asked by Cheryl Schmelzer:

If we implement two different OnDemand instances, one for internal use and one for external use, is it possible for internal users to log into both instances with the same login?


Answers:
author: Mallmann
body: Hi Cheryl,

I'm afraid it's not possible to have the same users/groups onto different OnDemand instances. It is possible to link the users with Google Apps, tough. However, you won't have the same groups configured in both instances.

Could you specify why you would need different instances to use with external and internal users? Configuring the right space/page and group permissions should do the trick to let external users share content with the internal ones.

Best regards,

Eduardo Mallmann

Atlassian Support

comments: author: Cheryl Schmelzer
body: Thank you Eduardo. We are concerned about security and the ability to ensure that our "internal use only" documentation cannot be accessed by external users.


Tags: confluence-cloud
Unable to grant user permission for Confluence
Asked by Roy Hubbard:

A new user has been created in the system, the user can access Jira but not Confluence. Under the User Management page in Site Administration, the Application Access checkboxes for both Jira and Confluence are greyed out (Jira is already checked) and the following error message is displayed:

<br />

Confluence (Error communicating with Confluence: Unknown Content-Type: text/html)


Answers:
author: William Zanchet [Atlassian]
body: Hi Roy,  

Based in your description, I believe that you're hitting this problem: [](https://jira.atlassian.com/browse/AOD-6988)<https://jira.atlassian.com/browse/AOD-6988>if you're using our OnDemand service, I'd encourage you to create a [support case](https://support.atlassian.com) that way our team can handle it.  
If you're using standaloe version, I'd make sure that the user that you just created belong to the confluence-users group.  

Cheers,  
WZ.


Tags: cloud

confluence-cloud
Time and/or Datetime tag no longer working in Confluence?
Asked by Shaun Gamache:

We're using an OnDemand-hosted Confluence instance and are relatively new to the application. Last week, the datetime field stopped autopopulating on the provided templates. Now it shows as unparsed HTML:

\<time datetime="2014-06-04"\>\</time\>

The date is correct, but the surrounding tags aren't being processed. We haven't changed the templates- is this the result of an update pushed to OnDemand customers, or did we accidentally break something else within Confluence?

Thanks!

<br />


Answers:
author: Mirek
body: Hi Mike,

This is OnDemand and I am afraid we cannot give you any specific suggestions. You cannot even look at the log files so I suggest you in this specific case contact Atlassian by creating a support ticket at [support.atlassian.com](http://support.atlassian.com)

-Mirek

comments: author: Shaun Gamache
body: Thanks Mirek!


Tags: html