youngmon/atlassian-qna huggingface dataset:
How to Install multiple instances of confluence on same machine-( Linux )
Asked by Justin Mathew:

Is that possible to install two instances of confluence or jira on same Linux os


Answers:
author: fsim
body: Hey Justin,  

You can download the Standalone (TAR.GZ Archive) from here (under the Linux tab): <https://www.atlassian.com/software/confluence/download> . Extract the standalone package in 2 different locations, then navigate to both their *ConfluenceInstallationDirectory/conf/* folders respectively. Modify both their server.xml and make sure that the Server port and Connector port are \***unique**:

<br />

<br />

```
&lt;Server port="8421" shutdown="SHUTDOWN" debug="0"&gt;    &lt;Service name="Tomcat-Standalone"&gt;        &lt;Connector className="org.apache.coyote.tomcat4.CoyoteConnector" port="8420" minProcessors="5"                   maxProcessors="75"                   enableLookups="false" redirectPort="8443" acceptCount="10" debug="0" connectionTimeout="20000"                   useURIValidationHack="false" URIEncoding="UTF-8"/&gt;
```

For the example above, Confluence runs on Server Port of 8421, and Connector port of 8420. Make sure those are unique (not shared by any other service in the same system, and definitely not shared by the other Confluence instance).  

Then navigate to *ConfluenceInstallationDirectory/confluence/WEB-INF/classes* and modify **confluence-init.properties** . Make sure that the confluence.home for each instance is pointed to a unique location. After that, you can startup both instances via *ConfluenceInstallationDirectory/bin/start-confluence.sh* .   

Hope that helps!  

Thanks and Regards,  
Foogie  


author: parthiban subramaniam
body: Yes,

You will have to modify the server.xml on tomcat to use different ports.

Make sure to modify the servershut down port as well to start/stop the instance you want.

cheers


author: Christian Czaia _Decadis AG_
body: Yes it is. Check:

<https://confluence.atlassian.com/display/JIRA/Running+multiple+instances+of+JIRA+on+one+machine>

Cheers Christian


author: Justin Mathew
body: Thank you all ,


Tags: instance

multiple
Bulk search/replace text within Confluence pages under specified parent page.
Asked by Daisuke Niwa:

Hello,

We would like to search and replace texts within Confluence pages under specified parent page.

Let's say we've got following page structure,

Parent page

--Child page 1 (contains text "a")

--Child page 2 (contains text "a")

--Child page 3 (contains text "a")

We would like to replace text "a" within child page 1 to child page 3 with text "b" at once.

Is there any remote API available to achieve this, or do we need to create plugin for this purpose? Please advise.

Regards,

Daisuke Niwa


Answers:
author: Renjith Pillai
body: I can think about using the Confluence CLI and a bit of scripting to do it. Download the content as wiki, do search and replace and upload it back.

comments: author: Daisuke Niwa
body: Thank you for your response. I went through the documentation of Confluence CLI but could not find a method to replace certain character.

<https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation>

Is it possible for you to let me know which method I should use?

Regards,

Daisuke Niwa


author: Daisuke Niwa
body: Actually, "storePage" methold supports "findReplace" parameter which finds and replaces text within Confluence page.


author: Daisuke Niwa
body: Thanks, that helps!


author: Renjith Pillai
body: Ah no, I meant to write a script which uses CLI. Do this in the script:1. Use CLI with getPage option first, it will write a file2. Do the replace operation in a file, there are famous perl one liners for that or use sed3. Use CLI with storePage option and upload back to Confluence.


author: Renjith Pillai
body: Ah great. That makes it easy.
HTML Plugin for Confluence
Asked by MPal Pal:

1. I recently installed this:

<https://marketplace.atlassian.com/plugins/org.swift.confluence.html>

2. Then added the plugin to my confluence page and included the following HTML segment:

\<head\>\<meta name="description" content="Free Web tutorials"\>\</head\>

3. Next I viewed the HTML source in firefox.

The meta description tag is shown inside the \<body\> of the source rather than the \<head\> tags as it should be. Anyone knows what I am doing wrong please?

Thanks


Answers:
author: Bruna Griebeler
body: Hi!

In fact every HTML added will be inside the body for security reasons.

To add information inside the head tag, you should go to Confluence Admin \> Custom HTML and add the code in the HEAD field.


author: MPal Pal
body: Thanks Bruna but your suggestion doesn't work when I want to add a meta description tag to each individual wiki page.

I cannot believe confluence doesn't have a easy way to do this. Right now I only have the TechTime's Easy SEO plugin which doesn't support 4.2.2.


Tags: app

html

macro

wiki
Diagramly Page HIstory (Confluence Plugin)
Asked by JamesR:

Is there an inline method for Page History on diagramly diagrams?

I was hoping that -- with Diagram "X" -- that any changes would show within the Confluence page history.


Answers:
author: Trevor_Horsfall
body: Going back to the first question: Is there an inline method for Page History on diagramly diagrams?

Put another way, how can I see the history of changes to a Diagramly diagram, and revert to one of my choosing?

As far as I can tell, the only way to do this would be to download the XML file for the appropriate version, edit the current version and import the older XML file. But this doesn't seem to be a viable option either, as it seems that the initial versions of the diagram are not recorded in the attachment history. This is all very weird...


author: Troy Barry
body: I too am struggling with this issue but it seems through my investigation the xml history was removed when I renamed or deleted a diagram.

Prior to that, the history of all of the changes is stored on the page under the attachments. Clicking the \> next to the Diagramly xml will reveal all of the previuos versions, which then can be downloaded and reimported into Diagramly to get to a previuos version.

There's no other way to restore them, that I could find, other than this method.

comments: author: David Benson _draw_io_
body: We're going to add in in-app revision control to the editor. We've raised the priority of the issue so it gets started eariler, we've had a few comments about problems in this area, now.


author: David Benson
body: There's an edit icon to edit the current diagram under the diagram.


author: JamesR
body: Thank you so much for asking this question: I was hoping for the latter (so that a user could adjust / build / edit the most recent native diagram version).

Please let me know if I've done something wrong.


author: JamesR
body: Thank you so much for asking this question: I was hoping for the latter (so that a user could adjust / build / edit the most recent native diagram version).

Please let me know if I've done something wrong.


author: David Benson
body: Do you mean an image of the diagram at each save or the whole native diagram so that it's possible to revert to a previous version?


author: David Benson
body: Do you mean an image of the diagram at each save or the whole native diagram so that it's possible to revert to a previous version?


Tags: addon-com.mxgraph.confluence.plugins.diagramly

change

confluence-app

history
Viewing Custom Fields in Confluence (from JIRA)
Asked by Richard S:

I don't seem to be able to view any custom fields in the JIRA Issues Macro within Confluence.

I am specifiying the field like this 'customfield_10104' where 10104 is the correct id from the xml produced. This is driving me mad, and is a key component of a tonne of processes I am putting together. =(

Does anybody else have custom fields displaying in Confluence correctly? Can anybody give me any tips on getting this working please?

Confluence version = 5.0  
JIRA version = 5.18


Answers:
author: Richard S
body: Ok, so I now have it working.

The Atlassian documentation says to name teh fields in the manner customfield_xxxxx, however if I just use the field name by itself, it works.

comments: author: Ky Pham
body: Hi, I am also interested in doing that. Could you please give me the example of "field name"?

Thanks


Tags: jira
HTML Meta Tags in COnfluence
Asked by MPal Pal:

Hi All,

Is there a way to add HTML meta description and meta title tags to my confluence pages? I am sure google uses them in search ranking and I cannot believe confluence does not provide a plugin for this.

TechTime has a plugin called Easy SEO which is not supported in 4.2.2.

Any help will be much appreciated.


Answers:
author: francis
body: I just installed the SEO manager from Play SQL

<https://marketplace.atlassian.com/plugins/com.playsql.seo-manager/server/overview>

Nicely done.


Tags: description

html

metadata

seo

tag
Can alias column names in the JIRA plug in within Confluence?
Asked by Richard S:

Is there a way to show aliased column names within the JIRA Plug In used to display JIRA issues within a Confluence page?

The default column names that come across are not meaningful to management. ;-)


Answers:
author: Richard S
body: It is the JIRA Issues Plugin within Confluence. Is there a way to display different names for the fields displayed within it, rather than the actual field / column names?


author: Renjith Pillai
body: Not anything direct I can think of. Can use the SQL macro and pull out the issues from the jira database and show the results.

comments: author: Richard S
body: Not used it yet, does it give the same functionality as the JIRA Issue macro (i.e. clicking on an issue taking you to it directly within JIRA)?

If not, then that's no good. =( Need that functionality.

If there is no way to do it, then I'll have to live with it, as the aliased headings are a lower priority.


author: Renjith Pillai
body: I guess you should be able to achieve it, as constructing the link with the issue id is trivial. More than that you should know SQL.


author: Renjith Pillai
body: What is this aliased column name? And which plugin? Is it in a gadget in JIRA?


Tags: alias

app

jira
Can not enable Jira macros plugin
Asked by Robert Plant:

When I try to enable the Jira macro plugin in Confluence, it fails. If I click enable again, it removes the enable/disable button and bricks the macro functionality within Confluence completely.

<br />


Answers:
author: AlysonA
body: Hi Robert,

Just adding to Septa's response, I believe this plugin is being disabled right on startup, which then prevents you from re-enabling it via *Confluence Admin \> Plugins* . If that's the case, you're probably hitting some sort of timeout upon starting up Confluence as explained [here](https://confluence.atlassian.com/display/CONFKB/Plugins+are+Disabled+at+Startup+and+Various+Timeout+Errors+Appear+in+the+Logs+After+Startup).

So if the above suggestions does not work, you may want to increase the timeout value for plugins to a higher value by adding the JVM parameter `-Datlassian.plugins.enable.wait=300` in the *\<confluence-install\>/bin/setenv.bat or .sh* (if using linux). Please restart Confluence to reflect the changes.

Hope it helps.

comments: author: Robert Plant
body: This solved my problem. Thank you.


author: Septa Cahyadiputra
body: Hi Robert,

First and foremost, we would need to ensure that the issue is not caused by corrupted plugin cache by refreshing it. Please try to [clear plugin cache](https://confluence.atlassian.com/display/CONFKB/How+to+Clear+Confluence+Plugins+Cache) and see if it helps.

Another troubleshooting steps to try if the above does not help is to [enable plugin safe mode](https://confluence.atlassian.com/display/UPM/Disabling+and+Enabling+Add-ons#DisablingandEnablingAdd-ons-Disablingorenablingalladd-ons(usingSafeMode)). If the above steps still not help we recommend you to create a support ticket on our [support channel](https://support.atlassian.com) so that we could review your logs, and configuration privately.

Cheers,  
Septa Cahyadiputra


Tags: app

jira

macro
Where are all my projects?
Asked by Charles Lapointe:

I linked our BitBucket account with our JIRA account but I am not seeing the projects in our JIRA account, only in our Manage DVCS Accounts page.

Please let me know what needs to be done in order to create issues from our JIRA account so that it automatically links to our BitBucket.

Thanks!

<br />


Answers:
author: m
body: Hi,

Can you explain a bit more what you are trying to do?

The DVCS connector is intended to allow you to reference JIRA issues in your BB commit messages. Then, the commits will appear in the activity tab of JIRA. The feature is called smart commits. Enabling and using these featurs with the Connector is documented here:

<https://confluence.atlassian.com/display/BITBUCKET/Using+the+JIRA+DVCS+Connector+Plugin>

A Bitbucket project is fundamentally not a JIRA project. If you are in OnDemand, you can link to your team's Bitbucket profile:

<https://confluence.atlassian.com/display/AOD/Creating+custom+links+to+help+users+navigate>

Mary
How do I display the Sprint Report in Confluence
Asked by JT:

Is there a macro that will allow me to disply the Sprint Report from GH into a Confluence page?

We are JIRA 5.2.2, GH 6.1.0, Confluence 3.5.13


Answers:
author: Renjith Pillai
body: No anything straight forward I can think of. Apart from using an iframe inside an HTML macro in Confluence and embedding the same. Dirty hack, I know :(


Tags: macro
Simple Confluence backend question
Asked by forum question:

Does the content of a confluence wiki/site have to be stored in the Confluence DB, or can the pages be in HTML and stored in source control (e.g., Git)?


Answers:
author: William Zanchet [Atlassian]
body: Hey, Confluence's content are stored in the database(HTML,pages,labels, everything) that you have chosen when you did the installation of Confluence.   
However we have two ways to store attachments in our Confluence, we can set the attachments to use the filesystem or the database as you can see here: <https://confluence.atlassian.com/display/DOC/Attachment+Storage+Configuration>  

Per default we use the filesystem, which means that the attachments will be handling by the \<home-folder\>.  

No, Confluence's content needs be store in a real database, we cannot use Git to hold the files.  

I hope this helps.  

Cheers,  

WZ

comments: author: Daniel Borcherding
body: Another point to add is that Confluence keeps it over version control system of documents. We store all historical versions of a page and have an integrated utility to compare pages changes.

Please have a look at the following document on details of how to take advantage of this functionality.

<https://confluence.atlassian.com/display/DOC/Page+History+and+Page+Comparison+Views>
Issue Security not an option with Create New Issue
Asked by Brian Clampet:

I'm testing Issue Security through Project Roles for the first time. I've followed the steps in your documentation but the feature is not working as aspected.

I've created a new Role (Manager), Created a new Issue Security Scheme (HR Manager), Assigned the role to this scheme and then associated a project to the scheme. In the process of associating I moved 13 tickets to this security setting. When I create new tickets in this project I do not get the option to select the Security.

The goal is enable HR Managers to set their tickets and issues so only they, and not the other members of HR, can view these sensitive issues.


Answers:
author: Rahul Aich [Nagra]
body: check that the project role has the "set security level" as a permission on the permission scheme.

Also see this link

<https://confluence.atlassian.com/display/JIRA044/Setting+Security+on+an+Issue>

Rahul

comments: author: Rahul Aich [Nagra]
body: Brian, Did it work?


Tags: project-role

security
Migration from Confluence 4.2 to OnDemand fails
Asked by Nils-Petter Nilsen:

I am currently evaluating Atlassian's OnDemand solution for Jira and Confluence. Moving data to the hosted Jira instance was a breeze; Confluence seems to be a lot worse.

I have tried to follow the instructions:

- Created complete backup w/attachments from old 4.2 instance

- Installed most recent OnDemand version on my laptop, to upgrade the spaces before exporting them

- Attempted restore of the 4.2 backup into the OD version

The restore is where it fails, with the following exception in the Confluence (OD) log: net.sf.hibernate.PropertyValueException: not-null property references a null or transient value: com.atlassian.confluence.like.LikeEntity.content

What's worse, it wipes the database on the OD installation before it fails, so the admin user no longer exists. Consequently, it seems I have to do a complete reinstall of the OD instance between each try.

<br />


Answers:
author: JohnA
body: Hi Nils,

The issue here appears to be related to the "Likes" in Confluence, as exhibited by the class being "com.atlassian.confluence.like.LikeEntity.content". However, I have found two bug reports which appear to point to this issue, and in this case it seems to be related to the backups being generated without comments:

<https://jira.atlassian.com/browse/CONF-27600>  
<https://jira.atlassian.com/browse/AOD-6274>

So, please try creating new backups with the comments included in the backup and see whether the issue reoccurs or not.

All the best,  
John

comments: author: Nils-Petter Nilsen
body: The workaround in <https://jira.atlassian.com/browse/CONF-27600> did the trick! That said, I see no option for including comments in backups, only in space exports. Anyway, problem solved, thank you :-)


author: Bruna Griebeler
body: Hi  

Please check if there is an attachment data object which has value NULL in you Confluence database.

If so, you may remove it. But please, do backup on database before making changes to it.  
You may check the steps here: [Cannot Restore XML Backup due to Null Attachment](https://confluence.atlassian.com/display/CONFKB/Cannot+Restore+XML+Backup+due+to+Null+Attachment?utm_source=SAC&utm_medium=hercules-issue-view&utm_content=401419).  

Cheers

comments: author: Nils-Petter Nilsen
body: Thanks for the suggestion, but I tried that one after Hercules made me aware of it. It's probably a similar problem, but this seems to be related to likes, not attachments.


Tags: cloud

migration
Is it possible to change the main icon on the drop down menu where you select Confluence, Jira, Bamboo etc.
Asked by Colin Griffiths:

Hi, We would like to be able to change the main icon on the top left drop down menu for our Jira instance, see attached screen shot. Is this option available as unable to find. Thanks


Answers:
author: Abdulrazaq Mohammed Ali Omar
body: You can change the Icon for that form the look and feel. Just press the keyboard shortcut g+g and search for logo and you can specify the logo for JIRA, so the drop down menue.


Tags: cloud
Confluence: How to escape double quotes in user macros?
Asked by Daniela Scheiwe:

Hi,

I'm writing a lot of user macros and stumble upon this one problem every now and then:

I have no idea how to escape double quotes properly. In this specific case I'm writing a macro that holds Bob Swifts run\&cli plugins, where quotes are needed. Here's a code example:

```
#set($globalHelper = $action.getHelper())#set ($update = $globalHelper.renderConfluenceMacro("{run:replace=status:green:Lorem ipsum?:radio::green::yellow::red|titleRun=lorem!}{cli:profile=confluence|hideOutput=false}--action storePage --space xxx --title "yyy" --content "zzz"{cli}Status aktualisiert.{run}"))
```

The part within the {cli-stuff makes the problems.

I tried single quotes, escaping with backslash...even HTML entities, nothing is working properly. With quotes like above I get an error message when using the macro (of course), when escaping the values are set exactly with the chars I used to escape.

I'm really hoping there's a solution for this :)


Answers:
author: Kirstin Seidel-Gebert
body: Hello Superuschi,

I stumbled into the same problem today and found that: <http://mail-archives.apache.org/mod_mbox/velocity-user/200311.mbox/%3C3FC29041.3000000@gmx.de%3E>

Thus, I solved my problem by introducing a constant containing the quote character

```
#set( $q = '"' )
```

and using it like that:

```
#set( $style = "style=${q}$paramStyle${q}" )
```

Hope that helps.

comments: author: Matthew Gorton
body: Kirstin,

Your solution also worked for me. I needed to expand a file name using a user supplied variable but the period and suffix were causing problems. Ther period needed to be separated from the variable name by whitespace or the variable would not be replaced witht the user supplied value :-(

I used this technique to create a suffix variable that was set to ".rss" and then my macro worked like a charm.

Cheers


author: Kirstin Seidel-Gebert
body: Nice to hear that, Matthew.


author: Daniela Scheiwe
body: Okay, I figured that in this case, I can just use no quotes at all in the cli-part. Won't work in other cases though.


Tags: bob-swift

cli

escape

macro

quote

user-macro
Can I remove the original admin account that was created while installing Confluence?
Asked by Bill Nelson:

When I installed Confluence, I gave the original administrator account a name that does not conform to our username convention here. Since then, I created a new account that does conform and put it into the confluence administrators group. Can I delete the original account without impacting anything, as well as still have access to all administrator functionality? Is there anything special about the original admin account?

Thanks in advance,

-Bill


Answers:
author: Bill Nelson
body: Great, thank you.


author: Bhushan Nagaraj
body: Hi Bill,

There is nothing special about the original account other than it belonging to the confluence-administrators group. You can delete that account as long as you do not have any content added/edited by that user account.

Since you already have another user account in the administrator group, it doesn't matter.

For information on how to remove or deactive a user, go to

<https://confluence.atlassian.com/display/DOC/Removing+or+Deactivating+Users>


Tags: account

confluence-administration
FTP and Autolink from a Confluence Space
Asked by Michael Lee:

We have a requirement where we need to allow users to upload documents from a Confluence space, and store those documents on an external server. A link then needs to be created in the Confluence space which points to the uploaded document.

For example,  
1\] Bob logs onto Confluence Space "Bob Home"  
2\] Bob uploads a document, "Foo.xml", from "Bob Home"  
3\] Foo.xml is sent to an external server, "xxx.xxx.x.x"  
4\] A link shows up on "Bob Home" that shows "xxx.xxx.x.x/Foo.xml"

Is this possible? Would we need to develop custom code or are there existing plugins that could assist?

Thanks!


Answers:
author: PeterKoczan
body: Hi Mike,

As far as I know there are no existing plugins that provide this functionality, thus I believe this has to be developed by yourself. Alternatively you may contact an Atlassian Expert (<http://www.atlassian.com/resources/experts>) who can give you a quote on the proposed solution.

Kind regards,

Peter
Unable to select pages during custom HTML / XML export
Asked by DougW.:

When trying to do a custom HTML or XML export, getting a Not Found error and the following entry in the log:

2013-01-02 14:51:18,728 ERROR TP-Processor7 atlassian.confluence.servlet.ConfluenceServletDispatcher serviceAction There is no Action mapped for namespace /spaces and action name exportspacetree

-- url: /spaces/exportspacetree.action \| userName: dwashburn \| referer: <https://wiki.macefusion.com/spaces/exportspacehtml.action?key=XXX>

<br />


Answers:
author: PeterKoczan
body: Hi,

Could you try to [rebuild indices from scratch](https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch) and also [rebuild the ancestor table](https://confluence.atlassian.com/display/DOC/Rebuilding+the+Ancestor+Table), then see if the problem is solved by that?

Cheers,

Peter