youngmon/atlassian-qna huggingface dataset:
How to create a page and populate that page with content automatically?
Asked by Khanh Nguyen:

Are there ways to script/automate the creation of pages in a structure within a space and automate the insert of HTML content on to that page?

I currently have HTML format content that I have to manually copy/paste into a newly created page on a daily basis and would like to automatically script this.

Any suggestion?


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://studio.plugins.atlassian.com/wiki/display/CSOAP) has general script enablers for this type of thing plus a specific **loadFiles** action that wraps hmtl files with the {html} macro. If you are using the [Html Plugin](https://studio.plugins.atlassian.com/wiki/display/HTML) with the [Confluence Macro Security Plugin](https://studio.plugins.atlassian.com/wiki/display/CMSP) , you can specify the **group** parameter to automatically have a group edit restriction put on the page with the {html} macro.
Why won't the Macro Browser load, after we upgraded from 3.5.5 to 4.1?
Asked by Fe Canono:

We just upgraded our dev environment on Friday to the latest and greatest confluence 4.1. Unfortunately, we're noticing that the Macro Browser will not load. We are upgrading from 3.5.5 to 4.1. Any thoughts of what we can try?

Thanks in advance.


Answers:
author: Andrew Frayling
body: The only time I've seen this problem is when there was a third party or custom plugin installed that wasn't 4.x compatible. Have you got any third party plugins installed that may not be 4.x compatible? If so, you could try disabling them via the admin console and re-enabling them one by one. Also, is there anything in the logs that could give a clue as to why the browser is not loading?

comments: author: Fe Canono
body: Yup. That was it. The culprit was the Theme Builder plugin. Disabling the plugin brought back the macro browser. Thanks very much.


author: Michael Roff
body: I had this problem also.

I put safety mode on and then enable each third party plugin one by one.

The only one which didn't enable was Community Bubbles - everything else went ok - after this, the macro browser could be viewed again.


Tags: browser

macro
Howto place cursor after Add -> Page directly in Title-Field? (jQuery? AJS?)
Asked by Sven:

Hello,

so often the users forget to fill in the Title of a page. It would be of great help, if after Add -\> Page, the cursor would be placed in the title field and not in the WYSIWG-content-field (new editor).

I've been trying some "jQuery magic", but it's not working.

What's wrong?

I tried:

```
&lt;script&gt;jQuery(document).ready(function() {    // on add -&gt; page, set focus on title, not on content    jQuery("#content-title").focus();    jQuery("#input:text:visible:first").focus(); });&lt;/script&gt;
```

Thanks for any suggestion,

Sven


Answers:
author: JamieA
body: try <http://stackoverflow.com/questions/290254/how-to-order-events-bound-with-jquery> or <http://stackoverflow.com/questions/827107/jquery-mulitple-click-handlers-how-to-ensure-order-of-firing>. You might be better off just making a source hack though. Also yeah, the iframe may change things, not sure...


author: Sven
body: /EDIT

AJS.toInit() changed nothing ;-(

/EDIT

Ah yes... 4.x changed the whole editor thing. So this is the reason ;-)

Thanks for your suggestions, I'll try this... I've seen that the "new" editor sits in an iframe, does this change something? Maybe?

If you have suggestions (links to useful information) about how to make a handler fire at last, don't hesitate...


author: JamieA
body: Ah yes, sounds like another dom ready handler is also setting focus. BTW I tried it on an older version, 3.4.9, maybe it's changed. You could try AJS.toInit(..) instead of AJS.$(). It's also possible with some javascript to make your handler fire last, but it's a bit of a pain...


author: Sven
body: /EDIT

I've tested in Chrome and yes, there cursor "hops" for a millisecond to the title field (it clears the text "Please enter title") and then jumps back into the main edit field...

???

Looks like there is another mechanism which is stronger to bring the cursor back in the main edit field ;-/

/EDIT

yeah, I've inserted it into "Custom HTML - before end of head" - maybe that's too early? The new editor is in an iframe (but not the title), perhaps this is the reason?

Could you try to insert it there and tell me if it still works for you?

Thanks anyway!


author: JamieA
body: I just pasted it into the Chrome console... press f12. Or same in firefox with firebug...


author: Sven
body: Thanks for trying!

Hmm. How I can do a console.log from javascript? Where did you put the code exactly?

(in the meanwhile I've a lot of jQuery-Hacks, maybe another "hack" is disabling this ;-)


author: JamieA
body: Worked for me (tm). Is the JS definitely running? Try an alert or console.log statement,
Balsamiq doesn't seem to be enabled on my account
Asked by Jacob Rigby:

Is there a control panel setting that I should use to enable Balsamiq on the hosted version of Confluence?


Answers:
author: Jacob Rigby
body: Hrm, I must be missing something as neither of these answers seems to work for me.

I'd say balsamiq is pretty well hidden despite seemingly being included with the hosted service (though maybe I misread the list of included features vs possible integration options)

We're moving over to just using bitbucket without JIRA/confluence so no need to followup further except for posterity.


author: Peldi
body: Hi Jacob, instructions for Atlassian OnDemand are here: <http://support.balsamiq.com/customer/portal/articles/223421>

If instead you have hosted, you can download the plugin from here: <http://balsamiq.com/download> and install it yourself: <http://support.balsamiq.com/customer/portal/articles/113839>


author: NikE
body: Balsamiq mock-ups are a bit hidden. Under wiki, if you click on "Add" there should be the option of "Add UI Mockup".

If you need a license for Balsamiq, you can make the necessary arrangements at: [my.atlassian.com](http://my.atlassian.com)


Tags: balsamiq
DokuWiki to Confluence
Asked by STS Confluence:

Hello.

I have 2 questions about data migration from DikuWiki to Confluence

1. We should find all namespace collisions in DokuWiki data before migration. We use "Analysing your dokuwiki for namespace collisions" as described in <https://studio.plugins.atlassian.com/wiki/display/UWC/UWC+DokuWiki+Notes.> But we trying to do it on Windows using our script. Could you show me the example of` SPACEKEY.txt file `in right format`?`

`We tryed to use RefactorDW, but it works not properly with cyrillic letter`.

2. Our DokuWiki have a lot of information in a Discussions (Discussions plugin). Can we migrate this information to Confluence?  


Answers:
author: STS Confluence
body: 1. Example: "di1,dir2,dir2,dir3,dir4,dir with spaces in the name,page1,page2".


Tags: dokuwiki
Confluence Word Macro
Asked by simon roberts:

Hi

Using the word macro <http://confluence.atlassian.com/display/CONF35/View+File+Macro#ViewFileMacro-word>

It does not appear to display word track changes. Is there anyway to configure this so it does?

Thanks

Simon


Answers:
author: Joerg Bencke
body: Not according to the documentation. You might want to have a wizard check the sourcecode wether you can "introduce" that feature.


Tags: macro

ms-word
Confluence and HTML
Asked by Mark Stocker:

I'm trying to paste the Jira release notes in HTML format into Confluence but it just goes in as plain text with all the html formatting commands showing up.

I have seen other posts thatsay to install the Confluence HTML plugin which I have but again if I just edit a confluence page and paste the HTML of the release note directly in it shows exactly the same.

Any suggestions what i'm doing wrong, this should be quite simple I would have thought?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Try using <https://studio.plugins.atlassian.com/wiki/display/HTMLMACROS/Confluence+HTML+Macros>

comments: author: Jobin Kuruvilla [Adaptavist]
body: Wrap it under {tml} tag. You will have enable the module under Administration \> Pluginss\> Confluence HTML Plugin


author: Bob Swift (personal)
body: Jobin means {html} tag and that works with either the Confluence HTML macro (security exposure) or HTML plugin (same security exposure unless you use [Confluence Macro Security Plugin](https://studio.plugins.atlassian.com/wiki/display/CMSP)).


author: Mark Stocker
body: Thanks got it working now, the other thing to probably add that was not obvious to me is that this still does not work in a normal confluence page unless you do it as wiki markup.
Missing incoming-links macro
Asked by affencafe:

Hi,

after upgrading to confluence 4 i am missing the incoming-links macro i used to have in 3.3.

The plugin seems to have vanished without a trace and after an hour of googling there seems to be not even someone out there who is missing it.

Did i miss something fundamentally (is this now part of the core and has another name, ...) or is it just gone without a trace and noone is missing it.

I sure do and without this feature, i need to go back to 3.3 because mots of our spaces rely heavily on this feature.

Thank you for an insight :-)


Answers:
author: David Peterson
body: Hi there,

The incoming links macro is part of CustomWare's Linking Plugin. A release is coming for Confluence 4.0 in the near future, so keep an eye out for it. If you subscribe to our forums at <http://community.customware.net/> you will get updated when we release our 4.0-compatible plugins.

Hope that helps!

David Peterson


Tags: adaptavist

incoming-link
How to purge space from Global spaces table in the dashboard
Asked by Venkatesh Seenivasan:

Hello, I am a newbie to confluence. I deleted a space from confluence. But it still shows up in Dashboard under global space table. Looks like I need to purge the same from the system. Online documentation mentions about "Space Admin" and purge the unwanted space. But I dont see this option even though I have logged in as Administrator. How to purge this from the system? Appreciate your help in this regard.

Thanks  
--Venky


Answers:
author: Azwandi Mohd Aris
body: Most likely the indexing job has not kicked in yet at that time, hence, you still see it in the recently updated section. If it still appears until now:

* Make sure that you really [deleted the space](http://confluence.atlassian.com/display/DOC/Deleting+a+Space), instead of just [deleting the homepage](http://confluence.atlassian.com/display/DOC/Deleting+a+Page) of a space.
* If the above is not applicable, the indexing job might have stalled for some reasons. Raise a [support ticket](https://support.atlassian.com/browse/JST) with Atlassian.


Tags: cloud

confluence-cloud
synchronized to Active directory is causing us to exceed our 2000 user license
Asked by Chris Johnson:

Installed 4.0 and configured it to sync with our internal active directory server, everything is working fine but when I review the license screen, I see the following error:

2000 (3166 signed up currently)

You have exceeded the user limit. To disable users, search for their username and follow the appropriate link. You can then choose the 'Disable' option.

So confluence is showing we have 3166 users signed up which is not true, only 2 accounts have actually logged in so far. Any ideas what's going on and how i can fix this?


Answers:
author: Cyrille Martin
body: Hi Christopher,

All your users are in the group "confluence-users" ?

What are the options you put for the User Directory qualifying your AD in Confluence ?

R.

Cyrille M


Tags: active-directory

ldap

licence
how to enable email notification in confluence for all users.
Asked by Danny Song:

I have confluence onDemand product with JIRA.

when i create and assign issue, this will be sent to appropriate user,

but confluence.

I went to people directory to set up my email schema, but as I am an administrator, I would like to set this settings to all users from me or automatically working.

can u give me any idea?


Answers:
author: Azwandi Mohd Aris
body: Hi, Danny. Currently it is not possible to sign up for daily Confluence notifications for all users (as an admin). However, you can still do this at the space level - <http://confluence.atlassian.com/display/DOC/Managing+Watchers> (note that you still need to enter one user at a time to the watch list, though).


Tags: cloud
Confluence SSO via MS Forefront TMG
Asked by Mario Manzano:

Is it possible to provide single sign on to Confluence using Microsoft Forefront TMG (Threat Management Gateway)?


Answers:
author: Tiago Comasseto
body: Hey there,

You mentioned Microsoft Forefront and, as fas as I know, this softeware is Microsoft's Proxy/Firewall. As I'm not aware of any SSO feature of this product, I believe you are trying to set Confluence for Integrated Windows Authentication. Is that right?

In case yes, I know two different methods to achieve this:

* <https://confluence.atlassian.com/display/SPCON/Access+Confluence+using+Integrated+Windows+Authentication+via+Jespa+with+SP+2010>
* <https://confluence.atlassian.com/display/SPCON/Access+Confluence+using+Integrated+Windows+Authentication+via+IIS+with+SP+2010>

I hope this helps.

Cheers


author: LuizA
body: Hello There,

Being honest with you, in a first moment this is not possible. But to have a better idea about your scenario and to try to find an alternative, could you please explain a little more to us about this integration? And did you try to use Crowd and Confluence for SSO or do you need to involve the Microsoft Forefront TMG?

Kind Regards,

LJ.


author: Mario Manzano
body: Many thanks to T C and L J for your answers. It is been a while since I posted the question Dec 15, 2011.

Anyway, MS Forefront TMG cannot won't be able to provide easily the SSO to Confluence. It can but with a lot of customisations to be done. However, the MS Forefront Unified Access Gateway (UAG) does it! Cheers, guys!
upgrade JIRA from 4.2.2 to 4.4, how can I update the user directory in confluence 3.5.13 ?
Asked by SherryX:

current confluence version is 3.5.13 and have user management using Legacy JIRA database connector (directory type) - as current JIRA version is 4.2.2

Now I'm going to upgrade JIRA to 4.4 and need to change confluence user management directory type to Atlasian JIRA, but I could not update the user directory from admin, there is only Add directory button on the screen.

Do I just add a new directory without deleting the old one?


Answers:
author: SherryX
body: I found the answer - because I login as a admin user in Legacy JIRA database directory, so I'm not allowed to edit the directory. I have to login as a admin user in internal directory, and the edit/disable button will then display on the screen for action.


Tags: directory

jira

upgrade

user
send an email notification
Asked by Danny Song:

Hi,

whenever i create a page or comments, it has to be sent as an notification email.  
however where to set up SMTP onDemand product?

I also use a JIRA as well, there are no problem to get email notification but confluence.

Thanks in advance.


Answers:
author: Azwandi Mohd Aris
body: Confluence OnDemand ships with a ready-to-use SMTP server. If you are not getting any notifications from Confluence, I'd suggest you to check if the user has subscribed to the notifications correctly - <http://confluence.atlassian.com/display/DOC/Watching+Changes>


Tags: cloud

confluence-cloud
Confluence Templates
Asked by simon roberts:

Hi, is it possible to set up a template with an attachement and also images?

Thanks


Answers:
author: Andrew Frayling
body: Hi Simon,

I've not tried this, but it should work if the attachments and images already exist, e.g.

\* Create a page called attachments

\* Attach the relevant files and images to it

\* in your template add something similar to:

\[spacekey:pagetitle\^attachment.ext\]

!spaceKey:pageTitle\^image.gif!

where spacekey is the Space you created the page with the attachments, pagetitle is the title of the page with the attachments on in and image.gif is the name of the image(s) you attached.

Make sense?

Hope that helps,

Andrew.

comments: author: simon roberts
body: Thanks

For the image, compny logo, that sounds perfect.

For the attachement, I was hoping to attach a visio doc, to which our developers would be able to update (via the lockpoint plugin. So the attachment would be unique to the page. Sounds like the above would be a 1 source for multiple pages, rather than unique on each page?

Thanks for the quick responce.


author: Andrew Frayling
body: Yes, it would be single source for multiple pages, although you could have as many attachments as you wanted, e.g. if you attach 5 files to the "attachments" page then 5 would be available for the template.

If the attachments need to be unique to the page the only way I can think of doing this is attaching all the Visio docs to the "attachments" page and then creating a separate template for each of the pages that you want the developers to create, each template referencing a different attachment. Which means you'd have a 1:1 ratio of templates to pages, which would probably be confusing.

Another way of doing achieveing what you want might be to attach all of the Visio documents, but rather than link them directly in the template just have instructions for the developers to attach the relevant Visio doc when they create the page from the template?


author: Andrew Frayling
body: Just a quick update and unfortunately inserting an image in a template doesn't work on 4.1 (and probably not 4.0 either), but should be OK if you're on 3.5 or below.


author: Andrew Frayling
body: Ignore me, images in templates do work on 4.1. Chalk that one up to user error on my part.


author: EPS Software Engineering AG
body: Hi,

Our Add-on Page Tree Creator works a bit different than the Confluence blueprints / templates. The PTC-templates are based on normal confluence pages and therefore creating a PTC-template is as simple as creating a Confluence page. Of course you could start creating your PTC-template based on an existing Confluence page.

Try our [**Live Examples**](https://focuspro.eps.ch/display/PEPSMarktExample/Marketplace+Examples) (no registration needed).

**[Marketplace link: Page Tree Creator](https://marketplace.atlassian.com/plugins/eps.focuspro.PageTreeCreator/server/overview)**.

Regards,  
Stephan


Tags: template
What is the best way to take a poll in Confluence?
Asked by Owen Barthelmes:

I am looking for something simple like what is used in many online forums. Like "What is your favorite thing?" "A, B, C, D or E?"


Answers:
author: Nathon Fowlie
body: Take a look at the plugins/functionality mentioned here:

<https://confluence.atlassian.com/pages/viewpage.action?pageId=345637394>

Confiforms and Wufoo are quite nice and give you alot of flexibility.


author: Joe Clark
body: The [Confluence Survey Plugin](https://plugins.atlassian.com/plugin/details/195?versionId=42518) has a [vote macro](https://studio.plugins.atlassian.com/wiki/display/CSRVY/Confluence+Survey+Plugin) which you can use to gather user votes. Unfortunately it looks like it hasn't yet been updated for Confluence 4.0.

comments: author: Owen Barthelmes
body: I saw that one and it looked like it would be perfect but then noticed that it was now "unsupported". I am testing Survey Monkey right now and it is working but it would be really nice to have it completely embedded within Confluence.


author: Sherif Mansour
body: Realted issue to vote/watch: <https://jira.atlassian.com/browse/CONF-25333>


author: Remo Siegwart
body: You may also want to try my Polls plugin, which lets you create simple polls to make choices or schedule events within Confluence: <https://marketplace.atlassian.com/plugins/com.simplenia.confluence.plugins.polls>


author: Julius Friedrich
body: Hey,

you might want to try [Instant Polls](https://marketplace.atlassian.com/apps/1222742/instant-polls?hosting=server&tab=overview). It has a very nice integration into Confluence pages, lots of configuration options and beautiful charts. Also it is not very expensive :)


author: softcrts
body: Hi there

With "Polls and Questions For Confluence", it is possible to add polls, set up colors and options, like one or multiple votes per person. End a vote and notify voters. I hope it will help.

[https://marketplace.atlassian.com/apps/1220521/polls-and-questions-for-confluence?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1220521/polls-and-questions-for-confluence?hosting=server&tab=overview)

<br />

<https://softcrts.com/polls/index.php>


author: softcrts
body: You can use this plugin to create customizable polls [Polls and Questions For Confluence](https://marketplace.atlassian.com/apps/1220521/polls-and-questions-for-confluence?hosting=server&tab=overview)


author: Cyrille Martin
body: You can also use "[Wufoo](http://www.wufoo.com/)" and embed your form into a Confluence page with the widget URL.

You can download the pool result in excel format and use it in Confluence to do some graph with Chart macro and table plugin.


author: David at David Simpson Apps
body: It would be pretty straightforward to embed Google Forms in Confluence. This shpuld work fine as a user macro. Likely there are other SaaS options too.
I have a problem when I create a JIRA issues macro.
Asked by Jorge Gaston Rivainera:

When I create a JIRA issues macro appear the following message:

Error on line 76: The element type link must be terminated by the matching end-tag \</link\>.  
class java.io.IOException

Thank you for help me.


Answers:
author: Christian Czaia _Decadis AG_
body: I've had the same problem. I our case it was related to the URL


author: hsuhailah
body: Hi,

You might be interested to check out this thread - [https://answers.atlassian.com/questions/25338/the-element-type-link-must-be-terminated-by-the-matching-end-tag-class-java-io-ioexception-in-the-jiraissues-macro](/questions/25338/the-element-type-link-must-be-terminated-by-the-matching-end-tag-class-java-io-ioexception-in-the-jiraissues-macro) - which has some useful troubleshooting steps.

I would also check if the URL is the valid one. It must be of type XML view of a search as documented in http://confluence.atlassian.com/display/DOC/JIRA+Issues+Macro

-Hanis-
Avatar and "from address" for daily notifications
Asked by Christian Christian:

We are heavily using the functionality of daily notifications to inform all our users about the changes happened in the last 24 hours.

But when the E-Mails are sent there is an issue with the format.

1) The information who has sent the E-Mail is right now "Anonym (RKWeb) info@n....". Anonym would be anomynous in english and RKWeb the name of our site. Is it possible to define the from name somewhere?

2) The E-Mail sent does also show an avatar which is blank or "?" at the moment, depending on the E-Mail client which is used. Can the avatar be set somewhere so that we can have a nice picture in the E-Mail head?

thanks,

Christian


Answers:
author: Joe Clark
body: 1) You can change the "from" address of Confluence by configuring your outgoing mail options (<http://confluence.atlassian.com/display/DOC/Configuring+a+Server+for+Outgoing+Mail>)

2) Not sure about this. What avatar is being sent? It should be the avatar of the user who generated the notification.

comments: author: Christian Christian
body: Thanks Joseph, but looks like if my statement was not 100% clear...

If a share a page or if I receive a notifcation I do see all the information which is required eg "Neureiter Christian (RKWeb)" with the according defined email address.  
So far so good. Only the emails which are sent for the daily notifications, the one showing the daily report of updates does show following information: "Anonym (RKWeb)"

And as there is obviously no user, also no avatar is visible or it shows a question mark.


author: Christian Christian
body: Can it be controlled which user is used to send the daily report of updates?


author: Joe Clark
body: Oh, I see! Sorry for my understanding.