youngmon/atlassian-qna huggingface dataset:
choose location of pages created with templates
Asked by Jason Skrzypek:

Hi All,

Im using an add page macro to create a new page in a different space. It works fine but is it possible to choose the location the page is created in? I know you can do it using the edit location, but wondering if there was another option. The users of the system arent the most tech savvy of peope and i was wondering if you can have a dropdown option of 4 page names where the new page could be created. Any ideas??


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

I couldn't find this option in the macro unfortunately. I'm looking to this page, which you could find useful: <http://wiki.customware.net/repository/display/AtlassianPlugins/add-page>

You may want to verify with Customware if that is possible by editing the macro in some way.

I hope this helps!

Regards,

Rodrigo


Tags: page

template
Time management / user time requests
Asked by John-Paul Kelly:

I have a need for a simple to use interface for requesting time of employees and reporting on it. The basics are: Another department (A) requires personnel from Department B. Department A should be able to submit a request for the group belonging to Department B (or on an individual user level) that request should then flow through to the manager, who is able to approve/reject. Approvals should then somehow be able to be A) Tracked through team calendars and/or integrate directly into exchange.

I've considered looking at JIRA and a few plug ins for confluence, but it's really overkill as we are not dealing with software development.

Is there functionality available to accomplish this as a plug in somewhere? Does Team Calendars support this?


Answers:
author: Kevin Buchs
body: You could probably do something simple with Scaffolding and Reporting plug-ins. It would depend on the organization required. However, integration to calendars or, especially, Exchange, may be a challenge. JIRA could give a similar level of capability as using Scaffolding and Reporting in Confluence.


Tags: time-tracking
how to run a jython script - missing modules
Asked by Erik Zaroban:

Hi there,

I have a problem running a jython script with the buildin python modules socket and pickle.

In the shell the script works fine and connects to the daemon on another server. So the modules are installed:

The script lies under \[...\]/confluence-data/script/ and can be executed via confluence with this command

{jython:output=wiki\|script=#script.py}  
{jython}   

For a testing "Hello World" this works fine to call the script, but when I want to use the mentioned modules, they can't be found.

Traceback (innermost last):  
File "\<string\>", line 2, in ?  
ImportError: no module named socket  

Does anyone has a clue how to get it working, how to explicit import the modules in confluence?! It would be nice to have this functionality in confluence.

<br />

Cheers  
Erik


Answers:
author: Bob Swift (personal)
body: See [SCRP-119](https://studio.plugins.atlassian.com/browse/SCRP-119) comments for instance. I think you need to install whatever libraries you want to use in WEB-INF/lib.

comments: author: Erik Zaroban
body: Ok, thx I will try that for the next change.


Tags: jython

module
Is it possible to configure the space dircetory as the site-wide home page?
Asked by Stefan Prenner:

Hello,

Is it possible to configure the space dircetory as the site-wide home page instead of the dashboard?


Answers:
author: Robert Collier
body: You could try extracting xwork.xml out of confluence-x.x.jar and putting an edited version in /WEB-INF/classes/xwork.xml so that it will then supersede the one in the JAR file.

find this entry:  
\<action name="dashboard" class="com.atlassian.confluence.dashboard.actions.DashboardAction"\>  

change the success result to where you would like it go to, such as:  
\<result name="success" type="velocity"\>/users/peopledirectory-results.vm\</result\>
Cli StorePage
Asked by David Soldan:

If i use the the command "--StorePage" the content which i add replaces the old content. Is it possible, that i add new content without replacing the old content?

This is how I use "--StorePage":

confluence.bat --action storePage --space "space" --title "title" --content "\[picture\|pic.png\]"

In this case I wanted to add a link to a existing Attachement, it works but replaces old content.

Would be nice if anyone could help me

greetings


Answers:
author: Bob Swift (personal)
body: Use **getPageSource** to get existing source, modify how you like, then do **storePage**. If you like, create an issue to provide an append capability.

comments: author: David Soldan
body: Ah ok if that's the only way. I thought there is a parameter or sth. else with which you can just append new stuff.

What do you mean with create an issue?

(sorry for my bad english! )

greetings


author: Bob Swift (personal)
body: You can create a improvement request issue for the Confluence CLI tool at [Confluence Command Line Interface](https://studio.plugins.atlassian.com/browse/CSOAP "Browse Confluence Command Line Interface project")


Tags: cli
Trash or Log for deleted Attachments like it exists for Pages
Asked by Dirk_Maucher:

hi together,

we have the following situation: our confluence is not restricted so every user is able to do most things like creating pages/editing pages and delete pages. if a user deletes a page the space admin is able to restore it.

but right now we have a problem with the attachments. the attachments on a page are versioned. thats fine, but: if a user deletes an attachment, this is gone forever. there is no trash where a space admin is able to restore that attachment nore a log that tells me which user deleted this attachment.

my only idea would be: let only the space admins delete attachments. so if a user want to delete a attachment he has to request the space admin to delete this attachment.

does anyone knows another solution that is more user friendly but also lets an admin tell the CEO: hey that attachment was deleted by user xyz?

regards

--dirk


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

Actually it's not possible to move attachments to trash. We have a improvement for that already: <https://jira.atlassian.com/browse/CONF-6824> I suggest to vote and watch.

As for attachments permissions, you can set that in Confluence space permissions and state if a person or group can add or remove attachments for that space: <https://confluence.atlassian.com/display/DOC/Assigning+Space+Permissions>

Hope that helps! :)

Regards,

Rodrigo


Tags: attachment

delete

history
Automatic Login
Asked by Lloyd Kinsella:

We are using Confluence within another web application and would like to automatically sign users into Confluence from within our system, what are the options available?

What we'd like is similar to all the other web applications we use, in that with their API we can just supply a username/password and get back a token we can pass on to the login screen. However there doesn't seem to be such as system for Confluence that I can see?


Answers:
author: Lloyd Kinsella
body: Seraph, which Confluence uses seems to allow multiple authentication methods outside of SSO:-

<http://confluence.atlassian.com/display/CONF256/HTTP+authentication+with+Seraph>

comments: author: Nic Brough -Adaptavist-
body: It does, Seraph is the library for authenticating users. Most SSO options for Confluence are plumbed in via Seraph, it's not SSO in itself.


author: Vivek Shanmughan
body: Is there a better way to do this? I want users to automatically login to confluence from my web application so that they are not prompted with username/password while accessing a confluence link

comments: author: Nic Brough -Adaptavist-
body: This posting is 7 years old, but actually, Seraph is still in use if you want to do it that way.

There are a lot more options now though, but they all boil down to "you need an SSO solution that works for your web application as well as Confluence". (Seraph is one of these, and Atlassian use it for their applications)


author: Nic Brough -Adaptavist-
body: This is "Single Sign On" (which is not quite a username/password token thing - once someone logs into a SSO system, they can log into all the other systems that are in the same SSO setup, but there's no up-front exchange of username/passwords really)

Confluence does work with SSO systems - the most obvious one is Atlassian's own Crowd, but it can be hooked into others. The important thing here is what SSO systems your other web-application can provide or be hooked into?

comments: author: Lloyd Kinsella
body: As far as I understand they don't provide any other mechansim apart from simple API calls, and this is all pretty well integrated now too so moving to some other system would be very problematic, I was hoping Confluence would be just as easy to integrate.

The API does have a login() call but this seems only for API calls :(


author: Lloyd Kinsella
body: Seems Seraph does what I want?

<http://confluence.atlassian.com/display/CONF256/HTTP+authentication+with+Seraph>

If I run login.action?os_username=\*\*\*\*\*\&os_password=\*\*\*\*\* that seems to go through.


Tags: confluence-app

login
Collating Tasks for a user from Confluence Tasklist Macro?
Asked by Jaskirat Baweja:

Is there a way to collate the tasks of a task-list assigned to a particular user on a page/space level?


Answers:
author: Remo Siegwart
body: Take a look at the [Tasklist Suppliers](https://plugins.atlassian.com/plugin/details/13447) plugin. In combination with the [Reporting plugin](https://plugins.atlassian.com/plugin/details/186) you would then be able to create advanced reports.

If you want to get all tasks for the current user from all tasklists in all pages in a space, you can do something like this:

```
{report-table:injected=true}{expanding-reporter:tasklist:@all|as=task}  {local-reporter:content:space > space:all pages}  {date-sort:task:created date}  {boolean-filter:task:is assignee @self|value=true}{expanding-reporter}{report-column:title=Name}%expanded:task > task:name%{report-column}{report-column:title=Assignees}{report-info:expanded:task > task:assignees}{report-column}{report-column:title=Priority}%expanded:task > task:priority%{report-column}{report-column:title=Completed}%expanded:task > task:is completed%{report-column}{report-column:title=Locked}%expanded:task > task:is locked%{report-column}{report-column:title=Created Date}%expanded:task > task:created date > MMM d, yyyy%{report-column}{report-column:title=Completed Date}%expanded:task > task:completed date > MMM d, yyyy%{report-column}{report-column:title=Source}{report-info:expanded:item|link=true}{report-column}{report-empty}_You do not have any tasks assigned to you._{report-empty}{report-table}
```

Find more examples [here](http://wiki.customware.net/repository/display/AtlassianPlugins/Tasklist+Supplier).
Extended ldap attributes from Active Directory?
Asked by moochachos:

We are running Confluence version 3.5 and it integrates with Active Directory nicely to manae users and groups for us. However, it only collects and displays the baisc data, i.e. name and email. How can it be exended to also include the other schema information such as phone number and position to be displayed in the user profile?

Any help appreciated.


Answers:
author: Christian Neureiter-Schneider
body: Isn't there any free plugin available for that?


author: Matt
body: The User Profile Plugin enhances the functionality of Confluence user profiles by allowing you to extend user profiles with additional elements. It supports LDAP-synchronization for any attribute. See:

<https://plugins.atlassian.com/plugin/details/29106>


author: Betsy Walker
body: If you're using Atlassian's Crowd product, there evidently is a way to [extend it to support additional LDAP attributes](https://jira.atlassian.com/browse/CWD-591 "extend it to support additional LDAP attributes").

Also, a [2007 post from Jamie Echlin's blog](http://blogs.onresolve.com/?p=32 "2007 post from Jamie Echlin's blog") describes how to set up a custom field to retrieve values from an LDAP store. It may require updating for the version of JIRA you're using, but perhaps it's worth a look.
CLI command for linking attachments
Asked by David Soldan:

Hello everybody,

Does the Confluence Command line Interface provide a command for setting a link on a page to a attachment??

I tried the "addAttachment" but it just move the attachment to the page.

Greetings David


Answers:
author: Bob Swift (personal)
body: Not sure what you are trying to do, but, if you need to change the page source in any way (like adding links etc...), you need to use **storePage** . You can retrieve the existing source using **getPageSource**.

comments: author: David Soldan
body: Would it be something like confluence.bat --action storePage --space "space" --title "title" --content "\[data.png\|This is a picture\] ??\^\^


author: David Soldan
body: For example i load an attachement on a page with "--loadFiles". This Attachement can be downloaded if you click on the paperclip symbol but i want that the file is linked on that page. You know what i mean?

So how would i use the storePage command in this case? The parameters --space and --title are clear but what do i use for content/file ??


author: David Soldan
body: Ok that would work, but if i use the command --storePage the new content replaces the old one!


author: David Soldan
body: If I use "--storepage" with adding new content, the new content replaces the old one. Is it possible to just attach the new content after the old ??


author: Bob Swift (personal)
body: Use **getPageSource** to get the existing source, append whatever you want, then **storePage**


author: LM
body: You could try <https://github.com/leonardinius/atlassian-rest-cli> to script it, if you are ok to script groovy code around Confluence API.


Tags: cli
How to apply labels to a page tree
Asked by Dave Drexler:

Hi folks - it seems to me that I've seen a plugin or macro that allows one to apply a label or labels to an entire tree of pages. But I've been searching in the Plugins site to no avail.

Did I just dream this up?


Answers:
author: SarahA
body: Hallo Dave

I haven't tried that plugin, nor seen one with the exact solution that you describe. But I do have an idea for a workaround. You could add a page that contains just the {pagetree} macro, limited to the relevant parent page and children. Then you could add the label(s) to that page.

Does that help at all?

Cheers, Sarah

comments: author: Dave Drexler
body: Thanks Sarah - that's a simple idea that will help to some extent.


author: Mert Karada?l? _ K?stebek Teknoloji _
body: Hi,

You could do it with Label Manager for Confluence plug in.[](https://marketplace.atlassian.com/plugins/com.kostebekteknoloji.plugins.confluence.confluence-label-manager)<https://marketplace.atlassian.com/plugins/com.kostebekteknoloji.plugins.confluence.confluence-label-manager>  
You could search for similar labels in a space and then merge them into one standard label.  
You could also do bulk operations like appending , adding and removing labels.  
Documentation is here:[](http://www.confluence.kostebekteknoloji.com/display/PLUG/Label+Manager+for+Confluence)<http://www.confluence.kostebekteknoloji.com/display/PLUG/Label+Manager+for+Confluence>  
Regards,


author: David Dube
body: Another option would be to use the Checklist Plugin from Comalatech. Here's [an example](https://studio.plugins.atlassian.com/wiki/display/CHK/Confluence+Checklists+Plugin#ConfluenceChecklistsPlugin-Example1) of setting up a list of children under a parent and you can select/deselect labels (this could be done on a separate scratch wiki).


author: Nic Brough -Adaptavist-
body: That's exactly the plugin I was about to point you at. I've tried installing it in Confluence 3.4.9 and it was not a happy bunny at all


author: Dave Drexler
body: I think it was this <https://studio.plugins.atlassian.com/wiki/display/LBLMAN/Confluence+Label+Management+Plugin> that I was remembering. So now I have a somewhat different question:

Is anyone out there successfully using this plugin with a recent version of Confluence? (3.2+)


Tags: label

macro
Is there a guide for Confluence data/space migrations?
Asked by Nathan Hopkins:

Is their a guide for Confluence data/space migrations - also does it cover migrations between versions?


Answers:
author: NikE
body: For migrating:

<https://confluence.atlassian.com/display/CONF35/Migrating+Confluence+Between+Servers>

For upgrading:

<https://confluence.atlassian.com/display/DOC/Upgrading+Confluence>

Be sure to select the doc version at the top for the version you are working with.

comments: author: Nathan Hopkins
body: Thanks, what about more granular exports? Say for example one space from an older version of Confluence?


author: Peter Milakovich
body: We're currently preparing to migrate spaces from one instance of Confluence to another (same version, basically merging the two).

The instance that is going away was built when we were first learning Confluence, and due to the nature of work, things change over time. Space Keys on the older instance could use some updating.

Since we're basically exporting the spaces to a file that is then imported into the new instance, I'm wondering if anyone has attempted to change space keys on the export file before importing it into the new instance.

It 'sounds' easy enough, just wondering if anyone has tried it and ran into any problems/difficulties/gotchas.


author: hsuhailah
body: Alternatively, you can [change the version of space backup](http://confluence.atlassian.com/display/DOC/How+to+Change+the+Version+of+a+Space+Backup) in order to import a space backup from an earlier version to a later version of Confluence e.g. importing a space backup from 2.8 to 3.5.13. However this is not recommended for Confluence 4.0 and later as the content type has changed and saved in xhtml.


author: Nathan Hopkins
body: Exports; <http://confluence.atlassian.com/display/DOC/Exporting+Confluence+Pages+and+Spaces+to+XML> This helps with imports; <http://confluence.atlassian.com/display/DOC/Restoring+a+Space> However it seems an upgrade is required if you wish to export and import in higher version


author: Nathan Hopkins
body: This helps with exports;<http://confluence.atlassian.com/display/DOC/Exporting+Confluence+Pages+and+Spaces+to+XML>This helps with imports;<http://confluence.atlassian.com/display/DOC/Restoring+a+Space>However it seems an upgrade is required if you wish to export and import in higher version


Tags: migration

upgrade
Testing upgrade from Confluence 3.4.3 to 4.0beta
Asked by Leo B:

Hello, I'm testing this new version and i'm having some problems. The user macros are not working anymore after the upgrade, i have this message: "There are user macros without any metadata configured in their template. They have been highlighted below."

Also, all the plugins that i have, it seems that i don't have them anymore.

Help, please... Thanks in advance.


Answers:
author: David at David Simpson Apps
body: Plesse add an example user macro that doesn't work on C4

comments: author: Leo B
body: Hello, this is what i'm trying to use:

## General variables needed for this user macro - do not change

#set ($remoteUser = $action.remoteUser)

#set ($staticResourcePrefix = $webResourceManager.getStaticResourcePrefix())

#set ($categCounter = 0)

##==============================================================================

## MODIFY - CUSTOMIZE TO YOUR NEEDS (only 2 variables)

## Enter category names, example: \["Categ 1", "Categ 2"\]

#set ( $categoryNames = \["Public", "AESS Group", "Project", "Archive"\] )

#\*

Enter spacekeys for each category

-\> the number of entries must be the same as the number of categories specified in the var $categoryNames

-\> the keys of the map must be named the same as the category names in the $categoryNames variable

\*#

#set ( $spaceCategories = {} )

$spaceCategories.put("Public", \["SPACE_KEY"\])

$spaceCategories.put("AESS Group", \["SPACE_KEY"\])

$spaceCategories.put("Project", \["SPACE_KEY"\])

$spaceCategories.put("Archive", \["SPACE_KEY"\])  
It created different categories for the spaces on the dashboard. I don't understand why is this not working anymore on this version. Any clue?  
Thanks.


author: David at David Simpson Apps
body: The meta data for user macros is that stuff at the top of the macro in comments. Without the metadata, Confluence 4 does not know how to display the macro parameters in the macro browser

The example macro below has 2 parameters, one of which is optional.

```
## Macro title: My Macro
## Macro has a body: N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: My Name
## Date created: dd/mm/yyyy
## Installed by: My Name

## This is an example macro
## @param Name:title=Name|type=string|required=true|desc=Your name
## @param Colour:title=Favourite Colour|type=enum|enumValues=red,green,blue|default=red|desc=Choose your favourite colour

Hello, <font color="$paramColour">$paramName</font>!
```

comments: author: David at David Simpson Apps
body: BTW: Don't use the **font** tag :(


author: Leo B
body: Hello, thanks for your help but it is not working. I've added those coments at the top of the macro and it's still showing the same message. What i'm doing wrong?
Enable an Speakeasy extention for all users
Asked by Andreas Precht:

Hi there,

we need a way to enable some speakeasy-extentions for all confluence-users as an confluence-administrator or Server-Administor till there is an option to configure this. Our user should have some features with their first login, without to have enable theses by themthelf.

Does anybody knows a workaround?

Cheers,

Andreas


Answers:
author: Don Brown [Atlassian]
body: As I believe you found, there is an open issue for this feature: <https://studio.atlassian.com/browse/SPEAKEASY-101>

Focusing on the transition from user-enabled extension to proper extension/plugin is something I plan on focusing on probably around the October timeframe. In the meantime, you are always welcome to fork and submit a pull request.. :)

**EDIT:** This feature has been implemented in trunk and will be part of the 1.3 release.

comments: author: Andreas Precht
body: October would be a great timeframe. We're going to launch our portal in november, so October is great. Then we're sure that all users can use the pulled the extentions with their first login.

Thanks a lot.


author: JamieA
body: AFAIK the changes required to convert a speakeasy extension to a proper plugin are pretty small. So if you want it available to everyone, sounds like you should convert it to a full-fledged plugin.


Tags: speakeasy