youngmon/atlassian-qna huggingface dataset:
Integrating Script Runner with Confluence 5.7
Asked by Swarna Radha:

Good day,

We are currently using confluence 5.7, we would like to know if there is any latest script runner version that we can integrate with the current confluence version we are using. So far, the one we found online is not compatible.

Kindly advise.

Thanks and regards,

Swarna Radha

Team Lead Agile

Rubric Quality Consultants


Answers:
author: Steven F Behnke
body: ScriptRunner can easily be installed in Confluence, it just has a few extra steps to install it. The documentation for the installation is located here: [ScriptRunner for Confluence](https://jamieechlin.atlassian.net/wiki/display/CSR/Script+Runner+for+Confluence+Home) It includes the following built-in scripts, as well as a Script Console to run arbitrary scripts.

**Built-in Scripts**

* Copy a tree of pages
* Switch user identity
* Copy user permissions, watches, network etc to another user
* Delete tree(s) of pages
* XPath search in pages

It does NOT include a Groovy page macro, unfortunately.

**Installation** **process**

1. You MUST install the Groovy Runtime **FIRST**
   1. <https://marketplace.atlassian.com/plugins/org.codehaus.groovy.groovy-all-atlassianplugin>
2. Install the Script Runner package
   1. <https://jamieechlin.atlassian.net/wiki/pages/viewpageattachments.action?pageId=11567119>

You should read the documentation here completely FIRST, it's not long. <https://jamieechlin.atlassian.net/wiki/display/CSR/Script+Runner+for+Confluence+Home>

comments: author: Swarna Radha
body: Hi Steven,Thank you for your help. It seems that Groovy Runtime does not support Confluence 5.7. When i have installed the jar successfully, i got a message "This add -on is not compatible with your Confluence instance"Could please advice me if there is any Groovy Runtime for Confluence 5.7Thanks and Regards,Swarna


author: Steven F Behnke
body: I have Groovy Runtime 2.1.3 installed in my Confluence 5.7.4 instance with no issues. It isn't warning me about anything. Are you using the same version of the runtime as me?I noticed that the one on the marketplace is 2.1.3.1 but the one on the Confluence page is 2.1.3.


author: Mark McCormack (Adaptavist)
body: Hi Swarna,

If you are after [ScriptRunner for Confluence](https://marketplace.atlassian.com/plugins/com.onresolve.confluence.groovy.groovyrunner/versions) then it is not currently compatible with Confluence 5.7 sorry. How long before you anticipate your instance being upgraded to 5.8 or above?

regards, Mark.


Tags: atlassian-marketplace

scriptrunner
is there a way to have a message pop up when an anonymous user clicks on a link to a restricted page that says something like "This Training Manual is under construction and as a result, this link does not currently work"?
Asked by DebbieR:

Hi,  

I am part way through completion of a Training Manual. Some of the pages have been published for our customers (anonymous users) to view, some haven't as they are still a WIP (they are restricted to internal staff). As a result when anonymous users click on a link to a restricted page, nothing happens. I don't want to remove all the links to the restricted pages, then reapply them once the page has been unrestricted/published.  

Just wondering, is there a way to have a message pop up when an anonymous user clicks on a link to a restricted page that says something like "This Training Manual is under construction and as a result, this link does not currently work"?  

<br />

Thank you,  
Debbie  


Answers:
author: Robert Reiner _smartics_
body: I do not know of a solution to show a popup on a link, but dependent on your use case (especially the number of links and it's representation on the page) you may choose to hide the link with a macro. That is the user won't see the link (or anything that is inside) according to their permissions.

There are a couple of plugins you may choose from to get this functionality:

* <https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility> (haven't used it by myself)
* <https://marketplace.atlassian.com/plugins/de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros> (I'm one of the authors here, you may show an alternative text: <https://www.smartics.eu/confluence/display/CONFMAC/Hide+From+Anonymous+User+Macro>)


Tags: confluence-administration
Why am I getting different url's in Confluence (one includes a page title, the other a page id)?
Asked by DebbieR:

Sorry for a dumb question, but can someone explain to me why urls in Confluence differ? I don't think I'm doing anything differently.

ie: Why does this url contain the title of the Confluence page (<http://skb.sterland.com/display/FRAM/Payment+Selection+Batches>), yet this one contains a pageid and not the title (<http://skb.sterland.com/pages/viewpage.action?pageId=106201209>)?  
Is there anyway to update the url and how?  
Thanks very much,


Answers:
author: William Scarce
body: Not a dumb question and honestly you'll be trying to fix these as long as you work with Confluence. Problem here is that the page that has the padid in the URL most likely has a special character in the title. Special characters = {}\&\*#$(), etc. Almost anything except the dash. To fix remove (or have the author remove) the special character. Doesn't seem like a big deal, but with a pageid in the URL they won't resolve and can cause problems if/when a page moves.  

Hope this helps.  

William


author: Steven F Behnke
body: Very common question: https://confluence.atlassian.com/display/CONFKB/Confluence+Page+URL's+Contain+pageId+Instead+of+The+Page+Title


author: DebbieR
body: oh wow, I have no idea how many pages I have with special characters in the title, hoping it's no where near 800!. Thanks so much for your help.


author: William Scarce
body: Unfortunately there's no way to allow special characters (at least as of on prem 5.4.4) Seems to be something quirky with how Confluence was engineered. More puzzling is the fact that personal spaces have an apostrophe in the home page by default. Not sure how big your community is, but we had about 7% of our pages using special character (3500) and through education and reminders have fixed about 800 of those.


author: DebbieR
body: Thanks so much William. You were spot on. I had a backslash in the title. Is there anyway to still have special characters in the title, or they're simply a no go?

<br />

Thanks again,


Tags: confluence-administration
template
Asked by Karen Whitwell:

I am testing Confluence with the aim of purchasing. I am currently trying to set up a Confluence Global Template, but the TEMPLATE drop down box is not on my toolbar, so I have hit a dead end.

Is someone able to tell me why the TEMPLATE drop down box is not on my toolbar, and inform me how I can get it on there so I can continue assessing Confluence?

Many thanks.


Answers:
author: rrudnicki
body: Hi Karen,

When you created a global template, this appears on Confluence Admin \> Global template and blueprints list?

Can you let us know if you clicking on Create button, you can find the template? As Joe said, a screenshot would be useful for us understand the dropdown box which you are mentioning.

Regards,

Renato Rudnicki


author: Chii
body: can you put in a screenshot of what the problem is? What's the TEMPLATE dropdown box that you're referring to?


Tags: cloud

confluence-cloud
How to find the creator for a calendar event?
Asked by Thomas Berger:

Is there a way to see the event creator / organiser for calendar events in the UI?

I found that the AO table _TC_EVENTS actually contains the 'organiser' but I don't see it in the calendar UI.

Cheers,

Thomas


Answers:
author: Manuel Kummerl?nder
body: There is a field "who", but the user(s) mentioned there are not necessarily organizers. The only thing I could find is a parameter "person" that holds a userkey and is maybe the REST-field that is saved in the organiser-field you mentioned? But maybe it is only the userkey for the "person", I'm not sure.

However, this is nothing you see in the UI, so I guess the answer is "no".
Confluence Backup Error
Asked by Frank Vierling:

Hi, our confluence stops the backup with an error and I don't know what's to do.

Log:

Can somebody help me?  
atlassian-confluence.log  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/54406/1/atlassian-confluence.log){#display_11884c59ffe297_0}


Answers:
author: Guilherme V.
body: Hello Frank,  

This could be related to the JDK version, plugin, or available memory.  

I would suggest first:

* Update your plugins or Enable the safe mode(in the Manage Add-ons page)
* Increase your memory, you see more information in here -\> <https://confluence.atlassian.com/display/CONFKB/How+to+fix+out+of+memory+errors+by+increasing+available+memory>
* The last of all, update your JDK to the latest 1.7 version.(1.7_79 i guess).  

*I noticed that you use a low amount of memory. Try upgrade them to xms 1024 and xmx 1024 and maxpermsize 512.*

*I noticed as well the following error:*

* *caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter*

However I couldn't find why this error is occurring.

*Cheers,*  


Tags: confluence-administration
Diagramly (draw.io) drawings under draw.io gives Not Permitted errors -solved-
Asked by tolga ulas:

Hello,

I've moved my site data having a diagramly module to a new server having the most recent draw.io module.

When I click "edit" in the sites having diagramly diagram, confluence returns "Not permitted" errors, regardless of the presence of any restriction.

Is there a way to export and import the diagramly data to the draw.io module inside a page?


Answers:
author: tolga ulas
body: Ok this issue is solved : There are two reason of this issue:1a- In import, the backed up spaces permissions are also imported. If the backed up servers's security groups do not present in the imported server then one should manually remove/add them into the imported server1b-the site admin (with admin account, not an account with admin rights) should manually gives confluence-admin groups rights for full access. The import gives only the right for admin account. 2a- The attachements xml settings in the imported files stays at application/diagramly. The page editor should go and change each attachement properties with application/drawio. 2b - The page editor should then edit the draw.io module, by clicking on it, the module does not see the attachement, therefore the page editor should manually select the right attachement to relink the attachement and the module. Then the files are displayed.If there is a faster way, please comment. Thank you.


author: Boris
body: Can you confirm the attachments exist in the file system of the server?What version of draw.io add on are you using?What version of Confluence are you using?


Tags: addon-com.mxgraph.confluence.plugins.diagramly
In the cloud version, how do I remove a group from the space permissions page?
Asked by Jeremy Chen:

In the cloud version, how do I remove a group from the space permissions page (e.g.: <https://validatis.atlassian.net/wiki/spaces/spacepermissions.action?key=SDBCE>)? The intent is to have one of those groups have the same permissions as confluence-users.


Answers:
author: Nic Brough -Adaptavist-
body: Edit the permissions and remove ALL of their access ticks and save the change.

comments: author: Jeremy Chen
body: Thanks!


Tags: cloud

confluence-cloud
Numbered List style
Asked by David Darbinyan:

hi all

is it possible to change Numbered list style in a way where sublist are numbered as child of parent, in decimal with dot separator, i.e.

1

1.1

2

2.1

2.1.1

Thanks


Answers:
author: Steffen Heller
body: What do you want to change: The wiki page or the PDF export of it?

For the wiki page:

* Click Edit
* Include the {style} macro (start typing "{sty.." and it should automatically complete it to "CSS Stylesheet")

* Enter CSS code

For PDF export:

* Go to PDF Export Stylesheet
* Enter CSS code

For the CSS itself check pages like <http://stackoverflow.com/questions/4098195/can-ordered-list-produce-result-that-looks-like-1-1-1-2-1-3-instead-of-just-1> to get an idea what it needs to make it work (if it does at all!)


author: David Darbinyan
body: hi Steffen

yes, CSS, but where? in some macros ?

When I enter "Edit" mode there's on place to change it.

Or I have to have admin privileges to see hidden place in confluence ?

Regards

David


author: Steffen Heller
body: Hi,

yes, it is possible.

You have to write your own CSS where you redefine the ol and li definitions with your own customized [counters](http://www.w3.org/TR/CSS2/syndata.html#counter).

If you are familiar with that you can give it a try. Otherwise it is probably much too much hassle.
changing server OS?
Asked by Minuk Mark Choi:

I have an instance of Confluence running off a CentOS 5 OS. I am looking to switch to Ubuntu 12.04(same HW, just an OS change).

How would I go about doing that? I am thinking of exporting the Space to a zip file and restoring that once the new OS is installed, but how would I go about backing up the users? Should I just backup the DB?

Finally, will this affect licensing? A license was purchased when the server had CentOS5, will it be different if I change the OS?

Thanks in advance!


Answers:
author: Minuk Mark Choi
body: Guys, thank you all for your answers!


author: rrudnicki
body: Hi Minuk,

Just answering your question about license.

The Server ID is related to your hardware and this is generated on the installation process. Basically, if you don't change this ID, your Confluence still run fine. However, the correct would be you generate a new license with the correct server ID. Please take a look on this link:

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

Regards,

Renato Rudnicki


author: Jobin Kuruvilla [Adaptavist]
body: You can pretty much follow the instructions at <https://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers#MigratingConfluenceBetweenServers-TransferringConfluenceToAnotherServerUsingaDifferentOperatingSystem>


author: Nic Brough -Adaptavist-
body: Have a read through <https://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers>

You should find most of it to be a doddle though, as you're sticking with Linux based things.
Button Based Filter?
Asked by Michael Bond:

Can content be filtered based on a button selection? I'd like to create a page with 5 selection buttons, and have the visible content filtered based on the button selected.


Answers:
author: Gert Kuivenhoven
body: Hi Michael,

Is it an idea to use both "[Choose Label macro](http://www.adaptavist.com/doco/display/LTP/Label+Tools+Documentation+for+Confluence+5.x+versions+onwards)" to address content with specified (unique) label, followed by the [Include Content by Label](https://marketplace.atlassian.com/plugins/com.tngtech.confluence.plugins.includecontentbylabel) (TNG Technology Consultant GmbH).

The first to select a label, the second to display this content in the required page using the Include by Label macro.

Regards,

Gert

comments: author: Michael Bond
body: Great thank you, I will give it go
I want to create a test Confluence Environment
Asked by Kathy Plamann:

Hi

Has anyone ever created a test Confluence Environment using a sql database copied from production-Then install the application and have it point at this copied database?

Thanks

Kathy


Answers:
author: chucktalk
body: Hi Kathy,

I would suggest that you read both [Restoring a Test Instance From Production](https://confluence.atlassian.com/display/DOC/Restoring+a+Test+Instance+from+Production) and [Migrating Confluence Between Servers](https://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers) for a thorough and detailed explanation of the process to do this. This is a well documented and often used procedure for doing exactly what you wish to do. I do hope that is helpful for you.

Sincerely,

Chuck


author: Luiz Maia
body: Hi Kathy,

Yes, it is possible! You can create a snapshot of your production instance in a different server.

Please refer to [this guide](https://confluence.atlassian.com/display/DOC/Migrating+Confluence+Between+Servers) for all instructions on creating a test environment.

Let us know should you have any questions. Thanks!

Kind regards,

Luiz Maia  
Atlassian Support


author: Chris Gillatt
body: How does this affect the licence? Can you have more than one machine on one licence for this purpose?

comments: author: Thomas Arndt
body: <https://confluence.atlassian.com/confkb/how-to-get-a-confluence-developer-license-152044449.html>


author: Gerri Urban
body: The short answer is yes. What I ended up doing is duplicating the VM that my confluence is running on and using that. But you can do a full new install, then just shut it down, go into the SQL database and import the production DB in. I do that on my test system now to refresh the data on it so it's more current. Or if I have to restore a page from a previous backup. You will also need to copy the confluence data directory to the new server so the DB and the attachments/files are all in sync


Tags: confluence-administration
How to remove a user's profile avatar from profile and attachments?
Asked by Stephan Eisvogel:

When employees leave, data protection laws in the EU demand cleaning out personal info, including pictures of users. In Confluence 5.7.4 there appears to be no way to "unset" a user's profile in the GUI, other than overwrite it with a dummy image. Older versions had a button to delete one's own pictures. Also it appears that previous versions of uploaded avatars accumulate in attachments/ver003/nonspaced/.. and are possibly unreferenced and lost disk space.

How to reset a user's avatar to at least show the default dummy icon again? Deleting a user is not an option, because information entered by the user needs to stay in place for a while. The workflow needs to be an "anonymization" of the user at first.


Answers:
author: Davin Studer
body: I created a utility to allow administrators to upload a picture to a user's profile. Check out the link below for the bitbucket repository.

**Instructions**

<https://bitbucket.org/fredclown/confluence-profile-photo-uploader>

**Binary Download**

<https://bitbucket.org/fredclown/confluence-profile-photo-uploader/downloads/ConfluenceProfilePhotos%20v1.3.0.0.zip>

comments: author: Stephan Eisvogel
body: Thanks, and I am aware of this tool, but that was not what was asked.


author: Davin Studer
body: Could you not use it to upload a different user pic?


author: Davin Studer
body: A blank one perhaps.


author: Stig G
body: The bitbucket link is not working. Is it possible to get the script anywhere else? That would help me a lot.


Tags: confluence-administration
How do I insert all issues or stories from a Sprint (in Jira) in my Confluence page?
Asked by arturvt:

I want to do something like the "Updates and Fixes in this Release" located here: <https://confluence.atlassian.com/display/DOC/Confluence+5.4.4+Release+Notes>

in my Release Notes page on Confluence. How can I do that? I currently have several sprints on Jira.


Answers:
author: childnode
body: Just use the JIRA Issues Macro (<https://confluence.atlassian.com/x/dCAC>)

BUT: both have the same drawback: it saves / uses a fix list of issues from the sprint at the time you create the link / macro. So: it doesn't react to sprint changes. But, in most cases that's ok, even for documentation. because perhaps you want to document that change too? Yes, you might have a different opinion :wink:

BTT: JIRA Issue Macro usage:

you might write your own - very simple - query like

```
project = AGILETST AND sprint = "Sprint 1"
```

JRA-confluence.png

if you don't want to see subtasks, just filter them or deselect them manually:

```
AND issuetype != Subtask
```

++**OR**++

1. you go to your currents sprint agile board
2. tap "reports"
3. then "Sprint Report"  
   and
4. copy the link for "View *Sprint 1* in Issue Navigator"  
   (where "sprint 1" is indeed your currents sprint name)
5. just paste the link in confluence, it will auto-expand to the JIRA Issue Macro itself

additional drawback: it just shows you stories, no subtasks (if it's relevant to you)

P.S: I'm not sure if what is described on [Linking a Confluence page to a Sprint](https://confluence.atlassian.com/display/AGILE/Linking+a+Confluence+page+to+a+Sprint) (<https://confluence.atlassian.com/x/AwBcGQ>) does some trick to get this link, but it propably will not show you data from jira, so ... needless to your answer  
[](https://community.atlassian.com/t5/Confluence-questions/How-do-I-insert-all-issues-or-stories-from-a-Sprint-in-Jira-in/qaq-p/264226?attachment-id=7215){#link_11884d0da43157}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/44611/1/JRA-confluence.png){#display_11884d0da43157_0}
How to create a page with a table using REST API?
Asked by Paul S:

I currently have the task of importing a large body of text with many notes and ids and descriptions and would like to represent it in a more readable format of by placing all of these into a series of tables.

Reading the text, extracting information, making connection between data in the text was straightforward enough, as was converting this information into an HTML table.

The problem lies with the actual creation of a page with this table in it, as I cannot send a POST request to create a new page with the raw HTML table as content

```
$data = array("type" =&gt; "page", "title" =&gt; "testings".time(), "space" =&gt; array("key" =&gt; "$uploadSpace"), "body" =&gt; array("storage" =&gt; array("value" =&gt; "$htmlTable", "representation" =&gt; "storage")));
```

because the html wouldnt be properly 'escaped' in PHP I would do this with htmlspecialchars() but sending this up simply shoots up my text with the tags in view and no actual table.

One solution I have found for this would be to contain the entire table in a html macro. This allows viewing of the table, but makes it difficult to edit in the WYSIWYG editor for the people using the wiki, which would make this entire exercise fruitless and I wouldnt like to rely on the macros as much.

```
$data = array("type" => "page", "title" => "testings".time(), "space" => array("key" => "$uploadSpace"), "body" => array("storage" => array("value" => "<ac:structured-macro ac:name=\"html\"><ac:plain-text-body><![CDATA[$htmlTable]]></ac:plain-text-body></ac:structured-macro>", "representation" => "storage")));
```

Would appreciate any help thank you.


Answers:
author: Andy Kruta
body: I'm not sure what language you were attempting this with, but here's a simplified python example:

```
import datetime
import requests
# Just creating a simple table that looks like thus:
# ||One||Two||
# |OneA|OneB|
pagecontent = '<p class="auto-cursor-target"><br /></p><table><colgroup><col /><col /></colgroup><tbody><tr><th>One</th><th>Two</th></tr><tr><td>OneA</td><td>OneB</td></tr></tbody></table><p><br /></p>'
reportobj = {}
reportobj["type"] = "page"
reportobj["title"] = "Your Page Title"
reportobj["space"] = {"key": "YOURSPACEKEY"}
reportobj["body"] = {"storage": {"value": "%s" % pagecontent, "representation": "storage"}}
url = 'https://your.wiki.address/confluence/rest/api/content/'
headers = {'Content-Type': 'application/json'}
wikiuser = "Your User Name here"
wikipasswd = "Your Password"
response = requests.post(url, data=json.dumps(reportobj), headers=headers, auth=(wikiuser, wikipasswd))
# response.status_code should equal 200
```

comments: author: Cameron Harper
body: Works beautifully, thanks!!!


Tags: confluence-administration