youngmon/atlassian-qna huggingface dataset:
How do I use the Bob Swift script plugin
Asked by Chris Kent:

The documentation is minimal, I have tried to use the sample scripts in the Groovy macro and in User Macros and I cannot get anything to work. Some of these scripts are 4 years old, maybe they haven't ben updated to be compatiple with Confluence 5.1???

I really want these to work but I just don't know how they are meant to run, and there is nothing in the documentation to help.


Answers:
author: Chris Kent
body: No clear answer provided, however Bob did update the one script I was interested in. Thankyou


author: JamieA
body: You could try my script plugin: <https://marketplace.atlassian.com/plugins/com.onresolve.confluence.scripting.script-runner> - although it targets a different use case really.

Not that there's many examples, except the built-in scripts which may be a bit complex to start learning. But there is plenty of java confluence code out there, it's just a case of putting a groovy spin on it.

Or let us know what you want to do and someone will give you a pointer.

comments: author: Chris Kent
body: Hi Jamie,

I have your plugin for JIRA, but does this work with Confluence too? I read somewhere that you do not support Confluence.

But what I really want to do is have a workaround for Atlassians lack of support for this bug/feature, <https://jira.atlassian.com/browse/CONF-20118>

What I what is a macro that when put on a page, when someone views the page they are automatically added as watches of the page, I was hoping to do this with Bob Swift's scripts as he has an example which is so close to this and I was going to tweak it. But I can't get it working, here is the sample <https://bobswift.atlassian.net/wiki/pages/viewpage.action?pageId=8749070>

Cheers

Chris


author: JamieA
body: Hi Chris,

Sorry, I posted the wrong link, I updated it now.

No, it doesn't do that, it's more for admin/maintenance stuff. "Listeners" and macros etc will come at some point if there's demand.

cheers, jamie


author: Chris Kent
body: No clear answer provided, however Bob did update the one script I was interested in. Thankyou
How to change font for Monospace in Scroll PDF Exporter?
Asked by Robert Lauriston:

Text formatted as Monospace in Confluence is rendered as Courier in the PDF. How can I change that? Putting the following in the content formatting CSS has no effect:

code { font-family: SourceCodePro; }


Answers:
author: Nils Bier _K15t_
body: Hi Robert,

before you are able to use another font, you have to upload it to your template.  
Please have a look at the following pages in our documentation:

- Uploading Font: [http://k15t.com/display/PDF/Uploading+Fonts
-](http://k15t.com/display/PDF/Uploading+Fonts%3Cbr%3E-) Using Font in the template: <http://k15t.com/display/PDF/Using+the+Uploaded+Fonts>

Does this information help?

Cheers,  
Nils


author: Nils Bier _K15t_
body: Hi Robert,

as additional information, we've fixed a bug regarding the handling of preformatted text: <https://k15t.jira.com/browse/EXP-12>

It will be fixed in Scroll PDF Exporter 3.0, which we are going to release next week.

<br />

Cheers,  
Nils

comments: author: Robert Lauriston
body: I'll test 3.0 when it's available and verify the fix, thanks.


Tags: addon-com.k15t.scroll.scroll-pdf
How to specify font for Preformatted in Scroll PDF Exporter?
Asked by Robert Lauriston:

Preformatted (\<pre\>) text appears in the body font in the PDF. How do I specify an appropriate monospace font? I uploaded SourceCodePro and added the following to the content formatting CSS, but it had no effect:

div.programlisting div pre {  
font-family: SourceCodePro;  
}

I find no other reference to pre in the default CSS. The following had no effect, either:

code, pre { font-family: SourceCodePro; }

Also, there appears to be a bug in the \<pre\> output, the first line appears at the end of the previous paragraph.


Answers:
author: Nils Bier _K15t_
body: Hi Robert,

we've had a bug in the Scroll PDF Exporter regarding the output of preformatted content: <https://k15t.jira.com/browse/EXP-12>  
It will be implemented in Scroll PDF Exporter 3.0, which we will release at the beginning of next week.

Hope this information helps.

Cheers,  
Nils

comments: author: Robert Lauriston
body: I'll test 3.0 when it's available, thanks.


author: Robert Lauriston
body: Installed 3.0. \<pre\> is now Courier in the PDF, so that's fixed.

How do I specify a different font for \<pre\> and \<code\>? Do I need to create a custom template as discussed here? <http://www.k15t.com/display/HTML/Creating+a+Template>


Tags: addon-com.k15t.scroll.scroll-pdf
Referencing Text from Page in the Space
Asked by Anthony Westmoreland:

Hey Support -

I am trying to figure out if I have some text on a page than can change ( for example { no info, in test, complete } ) if I can reference that text from the page, in a chart on the parent space. This way the space updates automatically when I change the page?

Let me know if that is clear.


Answers:
author: Matthew Hunter
body: Hi Anthony,

I believe the Page Properties and Page Report Macros are the ones that will do the job for you. Check out the following documentation for more information:

\* <https://confluence.atlassian.com/display/DOC/Page+Properties+Macro>

Cheers,

Matt


Tags: cloud

confluence-cloud
Mail notification after viewing confluence page
Asked by T I:

Hi,

some pages in our Confluence send mail notification to all watchers even if someone only viewed the page without updating it. Is this bug already known?   
As I'm not the Confluence admin I can only tell you that we use Confluence 5.1.4.


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

Is this reproducible using exact steps? For example, can you reproduce the same behavior whenever you visit the page?  

Confluence should not send emails when you just view the page, however if you have some macro or third party plugin which updates the page when you view or modify another page, this might happen. You may want to check that.  

Cheers,  

Rodrigo


author: Guilherme Nedel [Atlassian]
body: Hello Tomasz, it is worth checking if the given user is not watching the whole Space, since that can lead to notifications for every page contained within that Space. You can read more about that behavior at this [doco](https://confluence.atlassian.com/display/DOC/Watching+Pages,+Spaces+and+Blogs#WatchingPages%2CSpacesandBlogs-Watchinganentirespace).


Tags: confluence-administration

email

notification
A Simple Confluence 'Getting Started' User Guide?
Asked by Darryl Lucas:

I'm looking for inspiration in creating a simple 'Getting Started' User Guide for Confluence that I can put on our site to help new users become familiar with the basics. Can you share yours please?


Answers:
author: MJ
body: Perhaps you can find some interesting information for your users in our own [Getting Started with Confluence](https://confluence.atlassian.com/display/DOC/Getting+Started+with+Confluence). This has both information on configuration and usage, but you probably might find some articles of use.
How can I find very large attachments?
Asked by SA:

Over time, a lot of our users have been uploading attachments and some of them are quite large. I'm looking to review space usage and find attachments which are over, say, 5 MB in size and if possible older than 6 months; then review them to keep/delete.

Note that I'm aware of attachment size restrictions. What I'm trying to do is search for attachments based on size and possibly date.


Answers:
author: Nic Brough -Adaptavist-
body: I use the meta data searches.

For example "filesize:\[1024 TO 2048\]" will find attachments between 1k and 2k in size. Setting the first number to say 1Meg, and the second number to something astronomical is an excellent starting point for "hunt the chunky attachment".

This trick supports searching created/modified dates for attachment as well, but I've not played with them, so don't have an example in mind.

My bookmark is not from Atlassian's docs for a change - <http://docs.servicerocket.com/display/ATLASSIAN/Searching+Confluence+-+Advanced+-+Metadata+With+Lucene#SearchingConfluence-Advanced-MetadataWithLucene-BooleanType>

comments: author: Roger Weinheimer
body: This doesn't really serve the intended purpose, imho. I tried this, and lucene compares range based on an alpha and not on an integer.e.g. 8192 TO 9999999999 includes attachments whose filesize starts with the 8,9, or randomly, 10. It will show an 8kB file, but not a 3MB file.


author: SA
body: That's perfect, I didn't know meta search exists so that's a good point for me to do more complex things. Thanks a lot for that info.


Tags: confluence-administration
cloak & toggle-cloak
Asked by James Lim-It:

Hi,

We are encountering some random issues with the plugin, cloak \& toggle-cloak which is under compossition plugin. The plugin stop working randomly and we have to recreate the content with the plugin again. This is the error message:  
Error formatting macro: cloak: java.lang.NoClassDefFoundError: org/randombits/storage/MapStorage

Error formatting macro: toggle-cloak: java.lang.NoClassDefFoundError: org/randombits/storage/MapStorage

Any ideas on this guys?

Thanks,

James


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

I was investigating this error and it seems that a customer was able to resolve the issue by removing the plugin and installing the plugin again.

Also, make sure that the latest version is being used.

If the issue persists, I suggest to get in touch with the plugin vendor as they would know better what this could be. :)

Regards,

Rodrigo


author: James Lim-It
body: yep that fixed it. thanks!

comments: author: Rodrigo Girardi Adami
body: I'm glad that I could help James :D

Cheers!
standalone Confluence 5.2 ETA
Asked by Layla Abdullayeva:

Hi,

Can someone tell when will the 5.2 version of standalone Confluence be released?

Thanks.


Answers:
author: Joachim Ooi
body: Somewhere in August 2013.


author: William Zanchet [Atlassian]
body: Hey Layla,  
It's live! You can download through our website <https://atlassian.com/try>  
We release version *5.2.3* which is the latest version.  

WZ


author: Nic Brough -Adaptavist-
body: Atlassian's admirable stance is "when it's ready". They don't commit to any dates, because nailing a date means things get missed. As a product approaches readiness, you'll start to get better and better estimates (hence Joachim's "August", rather than "summer" or "autumn"), but as a general rule, you won't get a committed date until the day they actually release.
Developing a Phone Directory in Confluence
Asked by David Stokes (david.stokes.nz@gmail.com):

Hi Guys!

Just looking for some advice ....

I have a requirement to develop a phone directory and I'd like to do it in Confluence which we are already using (rather than custom building something).

I know that you can capture some information about users in the Confluence user profile, but our phone directory will not be just of our own users, but will include other people outside of the organisation - I don't want to have to create users for all of the people who will be in the phone directory. Also, I'm going to have a number of additional fields.

I've done some research on this and it sounds like it could be achieved through the use of metadata (there will be a confluence page for each person with a bunch of fields on it) and searching that metadata for looking people up.

For each person, there are a number of fields, eg: firstname, lastname, company, department, job title, manager, organisation, etc. And I need to be able to search on any of these fields.

How do you think this would be best achieved?

Thanks in advance  
David


Answers:
author: David Stokes (david.stokes.nz@gmail.com)
body: OK - here's the nearest I have got to a solution:

* Using the Metadata Plugin - each of the fields are added as metadata on a page and this plugin will include the metadata in the search indexes
* Using the Advanced Search Plugin - this allows you to search on those metadata fields. The limitation I've found however is when you do a search, you can't display any of the metadata fields I added, so if you've got a number of pages returned, it's difficult to work out which page is which without going into each one of them.

I'd be interested if someone has a suggestion on a better way to achieve the requirements.

Cheers  
David


author: David at David Simpson Apps
body: If your phone directory is stored in an LDAP, AppFusions' [Enterprise Directory and Org Chart](http://www.appfusions.com/display/EDIRC/Home) should do the job.

If you have an externally hosted REST API, perhaps you could roll your own [client side code](http://davidsimpson.me/2011/08/16/staff-student-directory-search-in-atlassian-confluence/) with a bit of JSONP.
Confluence redirect 8090 to 80
Asked by Gianni Cooreman:

Hi, I'm running Confluence 5.1.3 as non-root on CentOS 6.3. Since I cannot use ports lower than 1024, I used an iptables redirect as mentioned in the confluence wiki page, but do I need to change anything to server.xml or my base server configuration? Logging in from port 80 externally works, but if I go to for instance the admin section "Manage Add-Ons" and I try to download a new update, it gives me an error and says that I need to check my logs. I think the updates cannot be downloaded because the system tries to download through the wrong port?

Am I missing something?

Thanks,

Gianni


Answers:
author: jing_hwa_cheok
body: Hi Gianni,

<br />

Did you reconfigure the Server Base URL in Confluence Admin\>\>General Configuration\>\>Edit\>\>Server Base URL to port 80? It might be possible that Confluence is still trying to access the manage Add on page through port 8090 based on the Server Base URL.

Hope this helps!


author: Mark_McKay
body: Actually this worked for me. Run the following commands in order:

```
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
```

```
iptables -A INPUT -i eth0 -p tcp --dport 8090 -j ACCEPT
```

```
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8090
```

comments: author: Ralco
body: Hi,

It's working, but after rebooting the server automatically forwarding back to the 8090.

Please help me to forward the permanently on 80.

Thank you.


author: C. Faysal
body: try this one @mcomsto

    iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

comments: author: Birgit Bacher
body: Thank you so much... did solve my problem in \<1minute :)


author: mcomsto
body: C. Faysal,

Thank you. That worked.


author: mcomsto
body: Gianni,

Centos newbie. Can you share the iptable commands you ran to set this up?

Thanks,

Matt


author: C. Faysal
body: hi gianni.

that topic was often discussed here.

<https://answers.atlassian.com/questions/88263/running-confluence-on-port-80>


Tags: confluence-administration
Confluence list of users
Asked by Purchasing Generali:

I need send to all of users a message.

It is possible from confluence site ? (maybe is possible automaticly copy all users emails)


Answers:
author: Kyle Scarmardo
body: Similar question [here](/questions/109212/is-there-a-way-to-send-emails-or-messages-to-all-users-in-confluence-jira-such-as-an-unscheduled-or-scheduled-maintenance)....I've not looked yet on our instance, but as of late last year it did not sound like it


Tags: confluence-administration
Confluence 5.+ support for Universal Wiki Converter
Asked by Vic Lin:

Hi-

Are there plans to support Confluence 5.+ (5.1 in my case) for the Universal Wiki Converter?

Thanks,  
Vic


Answers:
author: CGM
body: Hi,

I have tried to import some mediawiki pages in 5.1.1 with the uwc and it seems to work.

It is somekind of slow eg. 200 pages in 2 hours, but it runs in the background while I'm doing some other stuff and thats fine for me.

greetings

Benjamin

comments: author: Vic Lin
body: Thanks Benjamin - looks like my best option so I'll give it a shot.


Tags: universal-wiki-converter
Email Handler for Confluence
Asked by Luis Mayora:

Is there a way to create wiki pages from an email handler that uses Confluence API. Kind of the same approach as the JEMH handler for JIRA.


Answers:
author: Jonathan Simonoff
body: I did this for a previous version of Confluence, so, yes, it is possible.

One thing, though is that (as I learned) email is woefully inconsistent, and thus hard to handle flawlessly. Use as much of a pre-packaged mail handler as you have available. (I was using Python, and this was a few years ago -- I don't know if there are better packages available, or if another language might have better facilities.)
Is it possible for users to search their favorite (favourite) pages?
Asked by Jonathan Simonoff:

A user would like a way to limit a search to pages on her favorite list. I thought this would work:

search phrase labelText:my:favorite

but that produces an error. I don't get an error if I put quotes around my:favorite, but it also doesn't work (produces no results). I found docs that as of 4.1 (we're using 5.1) personal labels are deprecated, so perhaps that is no longer how favorites are kept.

Anyone know a way to do this?


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

I couldn't find a way to achieve this functionality, so I've created a improvement request for you: <https://jira.atlassian.com/browse/CONF-30136>

I suggest you to vote and watch the report as such it will increase the chances of being implemented in the future.

I hope this helps!

Rodrigo

comments: author: Jonathan Simonoff
body: Thanks, Rodrigo. I voted for it.


Tags: favourite

search
User macro mangling content inside
Asked by David Yu:

I'm trying to create the world's most simple user macro in Confluence V5:

The macro type is: Rendered

```
## @noparams$body
```

Looks good so far in use...any content I type inside the macro box in the editor displays its text. I can even embed a {pane} macro inside and it renders great!

As soon as I try a {tip} macro, it breaks. It seems to mangle the HTML inside...the span for the tip icon isn't closed and leaks into the rest of the content:

```
&lt;span class="aui-icon icon-success"&gt;      &lt;div class="message-content"&gt;...      &lt;/div&gt;&lt;/span&gt;
```

Any suggestions on how to get this rendering properly? Thanks.


Answers:
author: David Yu
body: Think I found the answer...it's a bug. A tangled one at that:

<https://jira.atlassian.com/browse/CONF-29968>

<https://jira.atlassian.com/browse/CONF-28726>

<https://jira.atlassian.com/browse/CONF-30007>


author: Ryan Goodwin
body: Hi David,

For accessing confluence macro's in xhtml, you should use format like this:

```
&lt;ac:macro ac:name="profile"&gt;     &lt;ac:parameter ac:name="user"&gt;admin&lt;/ac:parameter&gt; &lt;/ac:macro&gt;
```

Hope this helps!

comments: author: David Yu
body: But I can't expect end-users to know this...I can't predict what macros users will put inside my user-macro.

Maybe the question I should really be asking is: are other macros supported inside a user macro?


Tags: macro
Share documents
Asked by Victor Moleiro:

How can I share a Microsoft word document in Confluence, and update it from Firefox, without downloading it to my computer?


Answers:
author: Victor Moleiro
body: In windows doesn't work (word 2007). Something that seems easy in the confluence video, it is impossible.


author: Jonathan Simonoff
body: In theory, the Office Connector allows that. In practice, I haven't found that it works on Mac, but I think it works on Windows. The problem (I think) on Mac is lame Mac webdav, which can't write the file back up to the server successfully.  

You would need MS Word on you local computer, and you may need to install a plugin to get it to work.

comments: author: Victor Moleiro
body: In windows does't work ( word 2007). Something that seems easy in the confluence wideo, it is impossible.


Tags: document-management

ms-word

update
Why do update emails list Anonymous as author of changes?
Asked by Sean Joyce:

Why do update emails list Anonymous as author of changes?


Answers:
author: Michael Knight
body: This is a [known issue](https://jira.atlassian.com/browse/CONF-29911) in Confluence OnDemand that is being fixed with today's upgrade.


author: Jim Birch
body: This is also an issue in my local Confluence 5.1.5 since upgrade. Is there a way to set the author?


Tags: cloud

confluence-cloud
How to notify all users if new blog post is posted?
Asked by Maksim Pavlov:

I like using confluence blog posts

I know how to make me watcher

But how can i notify everybody on new post?


Answers:
author: Christina Schantin [Communardo]
body: Maybe that could be a workaround for you: create a e-mail distribution list with all e-mail adresses of your collegues (often a company have this) and share your blogpost with this e-mail.


author: Jim Lynch
body: Create a page called "Latest News" or something. Make everyone a watcher. Whenever you want them to get notified that a new blog post has been made, update the Latest News page with a link to the new blog post.

This means only having to add everyone to a watchlist once.


author: Joachim Ooi
body: Hi Maksim,

Since you are already aware about how to make yourself a watcher, I can think of 2 more ways where you can notify everybody on new post:

1) Subscribing to Email Notifications of Updates to Confluence Content (<https://confluence.atlassian.com/display/DOC/Subscribing+to+Email+Notifications+of+Updates+to+Confluence+Content>)

2) Using the RSS Feed Builder (<https://confluence.atlassian.com/display/DOC/Using+the+RSS+Feed+Builder>)

However, both of these method actually involves the people in your organization to follow a standard practices. Say for Number 1 option, maybe you can share a screen shot with everyone on which space that they would like to be updated.

For number 2 option, you may want to give a sample of how the RSS feed is built and then share it out with everyone.

comments: author: Maksim Pavlov
body: You shure there is no other way to do it?

I can manage space with "Manage watchers" feature, but that means if i got atleast 200 people in my confluense and 10 spaces - that i need to add a user 2000 times (i can't use groups within "manage watchers feature" it's unavilable, and all will recieve notifications if main page changes).

I doubt that all of them would like to spend their time to add themselves to all my spaces, as well...  
But thanks for an answer.


Tags: blog

notification

watcher