youngmon/atlassian-qna huggingface dataset:
Adding form fields to a macro
Asked by Steve Goldberg:

I'm using a macro that lets you search for a user's permissions simply by entering a username into the macro. It works great. However, I'd really like the ability for users simply to enter a username into a form field, hit a button and then the search runs WITHOUT them needing to edit the page and enter it into the macro itself.

I'm pretty good with HTML but I haven't used form fields in absolutely ages and I don't know how to get them to interact with Confluence macros. I think the ideal solution would simply be for the onclick action to set a variable which contains the text contained in the text field. I'm also not sure if JS would be required to 'reload' the macro once this information is gathered. Any help would be appreciated.


Answers:
author: Amalia
body: I think it can be achieved by using this plugin: <https://bobswift.atlassian.net/wiki/display/RUN/Run+macro>

You can create an input/text field and a button with the plugin. When the button is clicked, the sql query is run and showing the results :)

More on that: <https://bobswift.atlassian.net/wiki/display/RUN/Confluence+Run+Plugin>


Tags: field

forms

html

macro
Query regarding confluence (wiki page)
Asked by sathish kumar venugopal:

1. We are planning to upload all the project related documents into wiki page.

a. Wanted to know whether it is safe and secure to upload confidential documents in our project area?

b. Due to some reason if Jira gets crashed, how we will be able to retrive the documents uploaded in wikei page.?

c. Do you take regular back up of our user area and what it is freqency and ist it possible to retrive our data from the back up?

d. How and whom we need to contact in this type of situation or help regarding this?


Answers:
author: sathish kumar venugopal
body: Yes you have answered all my queries and it was useful.


author: Andrew Frayling
body: Hi Sathish,

I think this Atlassian policy document (<https://confluence.atlassian.com/display/AOD/About+Your+Data>) and the OnDemand backup documentation (<https://confluence.atlassian.com/display/AOD/Backing+up+and+exporting+data>) answers your questions.

Hope that helps?

Andrew.


Tags: cloud

confluence-cloud
Nginx Timeout when searching for "5min"
Asked by Nick:

Nginx timeout when searching for 5min in Confluence 3.5.1.


Answers:
author: Paul Curren
body: I'm not sure what the question is.

If you mean you tried a search on [confluence.atlassian.com](http://confluence.atlassian.com) and you got an Nginx timeout then it is likely that the server was temporarily overloaded or busy in some way.

comments: author: Nick
body: Problem solved! Thanks for the advice.
Hide updates on dashboard
Asked by Rose Rose:

i remember in older version of confluence there was a check box for hiding updates on a page

ie) say i update the content on a page and fix a spelling error but I don't want that change to show up on the dashboard .. how do i do that?


Answers:
author: Matthew J. Horn
body: In Confluence 3.5, there's a checkbox that says "Minor change" in the page editor. That prevents notifications, and I think suppresses them from showing up in the updates.


Tags: dashboard

update
How can I migrate data from starter to 25 user installation?
Asked by Marc Wacker:

Hi,

first we bought a 10 user licence and worked for about one year with it. Now have a 25 user licence. Is there any chance to migrate the data, as there seems to be no upgrade option from 10 to 25 user?

Kind Regards


Answers:
author: Amalia
body: You don't need to migrate the data in order to increase the user count from 10 to 25. Just update the new license in **Confluence Admin \> License Details**


Tags: install

licence

migration

user
Retrieve markup of old versions of a page
Asked by aabeling:

How can I retrieve the markup of old versions of a page.

I know how to display the formatted content of old versions and I know how to compare versions with each other and I know how to restore an old version.

Now I only want to restore a part of an old version.  
Therefore I need the old markup from which I could copy the part I want to have restored and then paste it into my current version.

Another, more complicated, way to achieve this would be to restore the complete old version, copy the part from the markup, restore the current (then old) version again and paste the markup into it.

Is there a better way?

Best regards

Achim


Answers:
author: RianA
body: Hi Achim,

If you would like to convert the current rich text format (4.0 and above) to wiki markup, you could achieve it by using [Wikifier](http://www.amnet.net.au/~ghannington/confluence/wikifier/rt/) that is developed from one of our customer.

Hope it helps. Cheers.

comments: author: Thomas Schlegel
body: This wikifier is cool :-)

I'm not sure, if I would paste pages with our business informations to this site, but the application is great !!
Is it Possible to Track Which Users (or email address/ Distribution List) Blog Posts where shared With ?
Asked by Stefan Beyer:

Hi,

I am Currently using a Download version of Confluence (Powered by [Atlassian Confluence](http://www.atlassian.com/software/confluence) 4.1.6, the [Enterprise Wik](http://www.atlassian.com/software/confluence/tour/enterprise-wiki.jsp))

And i was wondering if it is possible to track which users/ email address's blog posts where shared with.

I can only see the first user or email address the blog post was shared with (on the blog post email received in outlook when a page is shared with a user) and I cannot find any of this information in the Tool \> Info section of the blog post.

Any ideas where this information is logged?

Kind regards

Steff


Answers:
author: David at David Simpson Apps
body: AppFusions' [Mixpanel Engagement Analytics for Confluence](http://www.appfusions.com/display/CONFENGAGE/Home) allows you to track all activity in Confluence and displays/ reports it within Confluence.

This doesn't so much let you track which emails a blogpost/page has been shared with, but lets you know exactly who has seen the blogpost and when. It's also real-time, so you know whats happening instantly.

I've put ademo on YouTube - take a look: <http://www.youtube.com/watch?v=Enx3VJQb_xc>


author: AlysonA
body: Stefan,

I don't think this information is stored in the database unfortunately. You can audit Confluence by enabling user access logging as described in <https://confluence.atlassian.com/display/CONF41/How+to+audit+Confluence+-+enabling+user+access+logging>, but I'm not entirely sure if it will track down which users/ email address's blog posts where shared with, you can give it a try and see how it goes. :)


Tags: blog

share

user
Not able to save versions of attachments using confluence API
Asked by Sridhar Nimmagadda:

I am trying to add versions of attachment with the below code and doesn't seem to find success

Space sp = spaceManager.getSpace(AP3);

Page p = pageManager.getPage(AP3, Level1);

Attachment attachment = new Attachment(Test123.txt,text/plain, 62 , adding first document - version+1);

attachment.setContent(p);

Attachment oldVersion = attachmentManager.getAttachment(p, Test123.txt);

attachmentManager.saveAttachment(attachment, oldVersion, new FileInputStream(new File(c://Test123.txt)));

Test123.txt was already saved previously


Answers:
author: Sridhar Nimmagadda
body: This worked for me !!

Attachment previousVersion=null;

try {

previousVersion = (Attachment) newVersion.clone();

} catch (CloneNotSupportedException e) {

// TODO Auto-generated catch block

log.error("cannot clone", e);

}catch (Exception ex){

log.error("unknown exception while attaching versions", ex);

}

newVersion.setFileSize(latestFileSize); //get the new versions filesize and set

try {

attachmentManager.saveAttachment(newVersion, previousVersion, new FileInputStream(new File(latestFilepath)));

} catch (FileNotFoundException e) {

e.printStackTrace();

} catch (IOException e) {

e.printStackTrace();

}catch (Exception ex){

ex.printStackTrace();

}


author: AndreasS
body: Instead of *clone()* , one can also use *copy()* which throws a *RuntimeException* instead of a checked exception.

```
InputStream contentAsStream = attachment.getContentsAsStream();            BufferedImage image = ImageIO.read(contentAsStream);            String imageExtension = attachment.getFileExtension();            // do something with the image here            ByteArrayOutputStream os = new ByteArrayOutputStream();            ImageIO.write(image, imageExtension, os);            Attachment oldAttachment = attachment.copy();            attachment.setFileSize(os.size());            attachmentManager.saveAttachment(attachment, oldAttachment, new ByteArrayInputStream(os.toByteArray()));
```

I intentionally skipped the closing of all the streams ...


author: Vikash Kumar
body: Hi @sridhar,

Did you get the solution, then please share.

Thanks,

Vikash
Plugins installed but cannot be used as a macro in the macro browser
Asked by Pangianto Pang:

Hi Support,

i installed confluence version 4.2.8 and installed this sql plugin from <https://marketplace.atlassian.com/plugins/org.swift.confluence.sql>

the installation is successful, but i cannot use the macro provided by the plugin.

I do not know why.

Can somebody help me out please.

Thanks.


Answers:
author: hsuhailah
body: This macro can be edited and added using Insert wiki markup. They are not listed in the macro browser. For details, you may refer to: <https://bobswift.atlassian.net/wiki/display/TBL/2011/09/19/Confluence+4.0+compatibility+for+Table+and+other+plugins>

comments: author: Pangianto Pang
body: Hi all,

Thanks Jo-Anne and Hannis, the plugin is working now.


author: Jo-Anne MacLeod
body: OK, final update. I got this plugin to work.

To create the datasouce:

we added a user to our Sqlserver database. The user has query permission only.

I created the datasource mine is shown below.

Shutdown confluence install, before editing your server.xml

Back up your server.xml before making changes, in case you mess something up.

I then put the new datasource defination in the server.xml file. This was actually the most troublesome thing to figure out. In the server.xml file, there is a section called \<Engine\>, within this section is \<host\>, and within that section is another section called \<Context\>. The defination of the datasource goes in this section. I put it right before the closing context \</Context\>

Restart Confluence

```
name="jdbc/SQLds"	 auth="Container"	 type="javax.sql.DataSource"	 driverClassName="net.sourceforge.jtds.jdbc.Driver"	 url="jdbc:jtds:sqlserver://sqlsrvr2:1433/&lt;database Name&gt;"	 username="confluencesql"	 password="&lt;password&gt;"	 maxActive="20"	 maxIdle="10"	 maxWait="-1"
```

where:

SQLds is a ramdom name that I chose for my datasource

url - path to my existing database connection

username - new non-priviledged user account

password - pasword for above created account

Hope this helps.


author: Jo-Anne MacLeod
body: I still don't have the plugin working, but apparently this is what you need to do after the plugin is installed (and licensed).

1) set up a datasource. I'm still trying to figure this out, if I get it working I'll post those steps here as well. Although this part is actually in the documentation.

2) go into the configure setting (on the plugin) and adjust the values if necessary.

3) set up security if you so desire.

To use the plugin, you cannot use it as a standard macro. You will need to go to insert -\> Wiki Markup, and put your sql statements there. This is apprently going to be changing in version 5.0.

The usage of the plugin is not described anywhere in the documentation, or if it was I couldn't find it.

The same answers that I have provided here are on the plugin as well. They are actually Bob's comments there, so they are definately correct.


author: Jo-Anne MacLeod
body: I have exactly the same problem now. I've asked on the plugin page and am waiting for a response back. When I hear back I'll try and update this thread as well.
How do you export a jar file from a SQL database and reuse the jar file?
Asked by linden linden:

I use an old plugin called the Space Usage Report plugin, developed by the university of Iowa. I now want to use it in a new wiki, but I can't find the jar file anywhere.

I can find it in the database table called PLUGINDATA, but when my DBA exports it from the database it's corrupt or not in the right format.

Has anybody been able to export a jar file from the database and successfully reuse it?

Thanks  
Linden


Answers:
author: Alejandro Conde Carrillo
body: In posgresql:

```
\copy (select encode(data,'hex') from plugindata where filename='plugin-filename.jar') TO '/destination/path/plugin-filename.hex'
```

Then on linux do:

```
xxd -p -r /destination/path/plugin-filename.hex /destination/path/plugin-filename.jar
```


Tags: confluence-app

jar

ms-sql
sort page trees by date?
Asked by Bob Nicholson:

Page trees in Confluence seem to be sorted alphabetically by default; it's also possible to create a custom order.

Is there anyway to specify that page lists should be sorted by creation date or by modification date. Or better yet, provide tabs to allow the user to change the sort order?


Answers:
author: RianA
body: Hi Bob,

Yes you could sort [Page tree macro](https://confluence.atlassian.com/display/DOC/Page+Tree+Macro). You could arrange the position of the page tree macro by alphabetically, time of creation, time of modification, or postion. For more information please refer to the following documentation.  
\* <https://confluence.atlassian.com/display/DOC/Page+Tree+Macro>

Hope this information helps. Cheers!


author: Bill_Campbell
body: We use the documentation theme so I over rode it in the theme configuration with the WIKI markup

Pagetree supports several options:

Specify the order to display the pages in the tree. This sort order is for display purposes only. It does not permanently re-arrange the page order. The value may be one of the following:

* **bitwise** --- sort alphabetically, for example: title1, title10, title2.
* **creation** --- sort by date of creation.
* **modified** --- sort by order of date last modified.
* **natural** --- sort in 'natural' alphabetical order, for example: title1, title2, title10.
* **position** --- sort by the default Confluence sorting rules. If your pages have been ordered manually, this sort will respect the defined order. Otherwise the pages will be displayed in the 'natural' alphabetical order, such as: title1, title2, title10.

<https://confluence.atlassian.com/display/CONF40/Page+Tree+Macro>
Confluence 4.2, #tag,#bodytag in the template file(*.vm file) are invalid
Asked by Zhi Xiujia:

Confluence 4.2, why the labels like #tag,#bodytag in the template file(\*.vm file) are invalid? Is it caused by the confgiguration? How to make it valid again?


Answers:
author: Amalia
body: What do you mean by invalid? The #bodytag is actually used in *login.vm* in *\<confluence-install\>/confluence*.

comments: author: Zhi Xiujia
body: Hi Amalia Sanusi,

I ams so sorry for my not clear expression. I mean that the labels like #bodytag seems does not work.


author: Amalia
body: in which vm file do you use this body tag? Because this tag is used in login.vm so it should actually work :)


Tags: label
Profile photos lost somewhere in upgrade from 3.3 to 4.0 to 4.2.11
Asked by Kevin Buchs:

We have been staging an upgrade to 4.x for some time on a development instance. We just took it up to 4.2.11. I just noticed the profile photos are all reset. Known problem? Work around?


Answers:
author: Alejandro Conde Carrillo
body: Unfortunately that is a known issue of the upgrade progress, [CONF-22298](https://jira.atlassian.com/browse/CONF-22298). If you read through the ticket, there is a workaround in [this comment](https://jira.atlassian.com/browse/CONF-22298?focusedCommentId=237903&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-237903).


author: EddieW
body: We ran into this issue as a result of conflicting database and file system. i.e. the icons are still there, but the hashes used in the database no longer point there. Restore the DB and filesystem to the same version (pre-upgrade), and attempt the upgrade again. Do testing between each upgrade to isolate the step that causes the error, it will be very difficult for Atlassian to identify a bug (if there is one) without knowing which upgrade path caused the issue.

Watch the logs and ensure the DB upgrades complete successfully.


Tags: upgrade
Best approach to hosting multiple .html pages
Asked by MICHAEL O'Neill:

Hi folks,

Currently using confluence 3.5.xx standalone. Currently we have a bunch of axure projects that we export to .html projects, zip up, and make available for download from various confluence pages on our site.

Instead of forcing clients to download and unpack the zip archive for each axure project, is there a way that I can host all these .html files somewhere on this server so that we could just link to the index file/entry point for each axure project?

2 Caveats:

1. Axure projects are a mix of nested directories, framesets, etc. Just dumping the projects in a directory off /confluence in the install directory serves the content of whatever page you link to, but strips out all the frameset, styling and other stuff that makes it usable. Plus, it still displays the confluence header and footer (kind of makes sense that it does this).
2. I'd like to keep this as lightweight as possible. Anything more than finding the right location to dump the files so we can link to them may be introcuing a level of complexity that IT may shy away from supporting.

I suspect the correct approach to this involves registering another application inTomcat and storing these files there, but that runs us into #2 above.

-Michael

\*edit\* There's no need to include any of these files in search, etc...


Answers:
author: Gorka Puente _Appfire_
body: Hi @MICHAEL O'Neill,

Our add-on [Share Attachments and Pages](https://marketplace.atlassian.com/plugins/com.keinoby.confluence.plugins.share-attachments) allows you to export a page as HTML with the resources embedded on it. Thus, you can share a link to any page using your Confluence instance as the server, without giving access to the rest of your data, no need to log in!

Regards,

Gorka


author: Harry Chan
body: Hi, it wouldn't be too hard to add an extra static application to Tomcat. Simply add a new context in Tomcat to let Tomcat know in what directory this should exist in and drop the files there.


author: EddieW
body: Since you are using the standalone version which uses tomcat or jetty under the cover (i forget as this is not consistent across the suite) so you should be able to drop files into the resource folder within the webapp directory.

This would be the same spot that confluence serves images and such from.

BUt I think that is a _bad_ approach, and if you want to host html files you should setup an apache or IIS **web** server (not tomcat, that is an application server).

Any any IT department that scoffs at setting up an apache instance to host html files should be eliminated, and replaced with a pack of interns.

Finally setting up a single apache instance can act as a "reverse proxy" for confluence, and serve the html files from a single domain, using different contexts.

mysite.com/confluence/

mysite.com/azure-files/

<https://confluence.atlassian.com/display/DOC/Running+Confluence+behind+Apache>


Tags: azure

html
Unable to add external RSS feed
Asked by Bob Carroll:

I'm unable to add an external RSS feed to a page. The feed builder only displays internal Confluence spaces. The documentation points me to the RSS Feed Macro, which I cannot find when trying to insert a macro. The documentation states that the macro needs to be enabled by Confluence Administrator, which I don't have access to in an OnDemand environment. Could someone either enable RSS Feed Macro for my environment or inform me on how to accomplish this task.


Answers:
author: NikE
body: Greetings Bob -

This question overlaps with [https://answers.atlassian.com/questions/73600](/questions/73600) and I think I covered everything on that ticket (please let me know if I missed anything/you have further questions). One additional note that the "sysadmin" and "Confluence-Administrator" groups are essentially the same and only there for maintenance.


Tags: cloud
How do I transfer a user's content to another user?
Asked by Sean King:

When we originally started using confluence the administrators didn't create a best practice for user names. Now we have one but hundreds of people have multiple accounts. I'm wondering how we can transfer a users content and priveleges from one account to another so we can delete the old account.


Answers:
author: EddieW
body: See atlassian's docs for this topic. There is no ideal solution, but you can do it with manual SQL queries, but there are risks, so be sure to back everything up first.

<https://confluence.atlassian.com/display/DOC/Changing+Usernames>


author: Gonchik Tsymzhitov
body: Any updates?


author: Angie Born
body: I have a similar issue with duplicate users so I would like to either

- merge the two users

- or at least transfer content \& privileges from one to another and then disable or delete one

We are using Confluence OnDemand.

Any suggestions?


Tags: content

merge

user
Creating space template but getting only wiki page creator
Asked by si5terw:

When I create a space template (Advanced tab for the space, Templates menu item, select "Add New Space Template") I expect to see the rich form editor/creator [as described in this documentation](https://confluence.atlassian.com/display/DOC/Adding+a+Template#AddingaTemplate-Addingaspacetemplate), however I only basic page creator with Name, Description, and a body field, with the note "Hint: This field can be formatted using wiki markup" below the body field.

I am trying to create a space for our client information, and some standard templates to store data about the clients, their locations, contact information, child pages with contracts and legal docs, project information, etc. - presumably the child pages will contain links to Jira projects, etc.; however the first step is to create that form so that client information is presented in a standardized way.


Answers:
author: si5terw
body: I am using Confluence on-demand for what that is worth!


author: si5terw
body: I just noticed this same problem occurs when I attempt to create a global template (Administration -\> Wiki -\> Configuration -\> Global Templates -\> Add New Global Template) - it is not unique to space templates.


Tags: cloud

confluence-cloud