youngmon/atlassian-qna huggingface dataset:
User Profile supplier for Reporting Plugin?
Asked by ITops123:

We have installed the [User Profile Plugin](https://marketplace.atlassian.com/plugins/de.communardo.confluence.plugins.userprofile) (UPP) from Communardo and would like to use the Customware [reporting plugin](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.reporting) to report out on fields created using the UPP.

This information is stored in a different part of the database than the standard Confluence profile fields, so we aren't able to use the standard User Supplier for querying this information.

Sure, we could run a SQL query, but we want this to be part of a larger report and using the reporting plugin would streamline the effort.

**Does anyone have an idea of how we can address this issue?**


Answers:
author: CharlesH
body: Customware have made their supplier architecture open to the extent that other plugin providers can develop suppliers for use with the Reporting plugin. See this link for further details: <http://wiki.customware.net/repository/display/AtlassianPlugins/Suppliers#Suppliers-ProvidingyourownSuppliers>I'd suggest approaching Communardo with the idea of creating a supplier, as in the longer term, this would make sense as they know best how they are using Confluence storage, and in case they change this, could make the necessary updates to the supplier.Hope this helps,Charles


author: Martin Cleaver
body: Ok - I found <http://www.communardo.de/home/techblog/2011/08/01/user-profile-plugin-formularbasierte-suche-fuer-das-profil-erstellen/> which leads to <https://jira.communardo.de/browse/UPP-73> which I can't see.


author: Martin Cleaver
body: Michael - we need this too. Did you approach Communardo?


Tags: communardo

customware

reporting-plugin

user
Using string replacement ($& and $+) with findReplaceRegex (Confluence CLI tool)
Asked by Maarten van Hees:

Hello!

I've been using CLI for a few days now and it has greatly sped up the wiki migration i'm doing. Today i've been doing a lot of findReplace and findReplaceRegex to replace common things throughout very similiar articles, but i ran into a little problem wich i can't seem to figure out.

What i'm trying to achieve is this: i need to find strings that start with '@' and have all capital letters and then, with the match, i want to put \<span class='myclass'\> \</span\> around it to get some simple syntax highlighting. I'm not a big expert on regular expressions, but from what i can remember shouldn't it be possible to use string replacement on the right hand part of the findReplaceRegex action call parameter in order to re-use the matched string?

I've found this example at the documentation:

--findReplaceRegex "(a )(test)(.\*):\\$1\\$3#\\$2#"

Which seems to be doing something similiar to what i want, using the matched strings again to replace the existing ones. However, i can't get this to work. When i do it like this it just prints \\$1\\$3#\\$2# as string in my article.

Any idea if it's possible to get it working? Would again be a great time saver. This is what i have so far:

--findReplaceRegex "(@)(\[A-Z):\\$\&"

Thanks in advance!

<br />


Answers:
author: Bob Swift (personal)
body: 1. It helps a lot to get your regex working using this tool: <http://www.regexplanet.com/advanced/java/index.html>
2. You need to watch out for special characters (command line and regex) - it can get confusing when you have to escape things and it depends on your OS what needs to be escaped (the example \\$ is an escaped $ on unix)
3. Quick look at your regex shows a few problems
   1. Don't you want \[A-Z\]\* ? You are missing the closing \] and the \* (0 or more characters)
   2. You need $1 on the replace
   3. I suspect you need some like:

      ```
      (@[A-Z]*):some text\$1some other text
      ```

comments: author: Maarten van Hees
body: Thanks for your answer, i've checked it out and i managed to get it working! Seems i wasn't far off, i kept using \\$1 but it started working when i stopped using the backslash. This works for me:

--findReplaceRegex "(@\[A-Z0-9\]\*):\<span class='quaestor_syntax'\>$1\</span\>"

Thanks again for your help!


author: Bob Swift (personal)
body: Good, for Windows, you don't need to escape the $ like for unix.


Tags: cli

regex

replace

search
Is it possible to change the creator of a page in Confluence 3.5?
Asked by David A:

We need to do this because of security changes made by Atlassian since Confluence 3.2.


Answers:
author: Matthew J. Horn
body: Sure it's possible, especially with Bob Swift's SQL Plugin.

Here's the relevant query (this is for Confluence 4.1.2, so it might be different from 3.5 -- just check the schema):

update CONTENT set CREATOR="\<new creator name\>" where CONTENTID="\<your content id\>"

You can get details about installing, configuring, and adding permissions for this plugin here:  
<https://bobswift.atlassian.net/wiki/display/SQL/Confluence+SQL+Plugin>

hth,

matt

comments: author: David A
body: Thanks for your answer.


author: Michael Benoit
body: I'm using Confluence 4.3, and this solution doesn't quite work. The suggested SQL command does change the creator displayed at the top of the page, but the author of the page that comes back in an RSS feed is still the old author. The same is true for the REST API. Also, after editing the page, the author somehow gets reverted back to the original author.

If you modify the update statement a bit, the above problems go away:

```
update contentset creator='CONTENT_ID'where contentid = CONTENT_ID or prevver = CONTENT_ID
```


author: Denise Unterwurzacher [Atlassian]
body: Hi all, the way this is done has changed somewhat in recent versions. Please see this page for detailed instructions: <https://confluence.atlassian.com/display/CONFKB/How+to+change+the+creator+of+a+page>

comments: author: Erin Brusnahan
body: Hi everyone,

We used the instructions on that page and found that Confluence ***++must++*** be restarted after the queries are run, otherwise the "Created By" name displayed will revert as soon as the page is edited.


author: acastner
body: +1 from me. Its weird/startling to see people from so long ago...


author: Doug Meisner
body: Is there still an active feature request to allow this to be done in the UI? That I can vote for?

Seems ridiculous to need to do it via SQL. I saw a post requesting this in the UI back in 2013 - it really hasn't been done yet??


author: Matthew J. Horn
body: Do you mean within confluence (such as in a macro) or by modifying the database? If the latter, then change the value of the CREATOR field within the CONTENT table. You just need to identify the page by its CONTENTID.

comments: author: David A
body: Thanks Matthew. We would preference to change it within Confluence. Is that possible?

If not, do you know of any Atlassian documentation that would give some more detail on how to build the relevant SQL query?
confluence only works on localhost ?
Asked by Pierre NOEL:

Hello,

I've installed the trial version of Confluence on <http://localhost:8080>, and when i try to access it from another computer with using my computer name : [http://my-pc:8080](http://my-pc:8080,), it loads, loads...and nothing is displayed.  
It works only with on my computer ( <http://localhost:8080> or [http://my-pc:8080](http://my-pc:8080,))

It it normal (ie. the trial limits the display to localhost) ?  
Otherwise, i've modified anything (config files or admin parameters).

Thanks !  
Pierre


Answers:
author: Nic Brough -Adaptavist-
body: This is a network question rather than Atlassian - you're getting nothing on the other machines because something in your network is stopping access. If you can access an Atlassian web service locally, then there's nothing in the service that would stop it being accessible from other machines.

The main culprit is often a firewall on the local machine. It's quite common for machines intended for desktops (i.e. single user, mostly a client) to be firewalled to prevent other machines trying to connect to them. If it's not that, then it's a firewall and/or router issue on your broader network, and failing that, the most unlikely scenario is that the remote computer is running something to block access.

Problem is, it could be almost anything in the network. So start with the basics - can the remote machine "ping" your machine? Can you try it using the raw IP address instead of the remote name? Does tracert or nslookup tell you anything?

comments: author: Pierre NOEL
body: You were right, Nic. It's Windows 7 Firewall that blocked   
C:\\Program Files (x86)\\Atlassian\\Confluence\\bin\\tomcat6.exe

After having added a rule in the windows firewall, it's now OK.  
In fact, i didn't see tomcat6.exe in the Task Manager of Windows, i had to clic "Show all process from all users" to see tomcat6.exe process.

Thanks for your answer !  
Pierre
How to hide the project list from a user group
Asked by Szer?my Tam?s:

I'd like to hide the project list (dropdown contents) from a group of users. Now they see the contents of the list even if they don't have acces to those projects.


Answers:
author: Szer?my Tam?s
body: I managed to attain the original goal, altough wasn't straightforward:

- create a new group, eg. Test

- remove the user from the Users group, add it to Test

- Administration/Issues/User Settings/Global permission: add "Jira Users" permission to Test

- Administration/Wiki/Permissions/Global Permissions: add Test to Groups as Can Use

- Administration/Wiki/Permissions/Space Permissions: add permissions to the space as needed


author: Szer?my Tam?s
body: I managed to attain the original goal, altough wasn't straightforward:

- create a new group, eg. Test

- remove the user from the Users group, add it to Test

- Administration/Issues/User Settings/Global permission: add "Jira Users" permission to Test

- Administration/Wiki/Permissions/Global Permissions: add Test to Groups as Can Use

- Administration/Wiki/Permissions/Space Permissions: add permissions to the space as needed


author: Szer?my Tam?s
body: I managed to attain the original goal, altough wasn't straightforward:

- create a new group, eg. Test

- remove the user from the Users group, add it to Test

- Administration/Issues/User Settings/Global permission: add "Jira Users" permission to Test

- Administration/Wiki/Permissions/Global Permissions: add Test to Groups as Can Use

- Administration/Wiki/Permissions/Space Permissions: add permissions to the space as needed


author: Jobin Kuruvilla [Adaptavist]
body: They shouldn't be seeing the spaces if they don't have access. Are you sure the permissions are set correctly?


author: Matthew J. Horn
body: You can hide any thing in a template from a user or group of users with the PermissionsManager. I would start by looking here:

<https://developer.atlassian.com/display/CONFDEV/Confluence+Permissions+Architecture>


Tags: cloud

confluence-cloud
Upgrade issues from 3.5 to 4.2.2
Asked by MPal Pal:

I recently ugraded confluence from 3.5 to 4.2.2 and now I cannot edit or copy pages of spaces which were originally done in 3.5.

**When I try to copy, following error is thrown:**

*java.lang.UnsupportedOperationException: The body of this ContentEntityObject ('Service Management') was 'BodyType:WIKI' but was expected to be 'BodyType:XHTML'*   
*at com.atlassian.confluence.core.ContentEntityObject.getBodyContent(ContentEntityObject.java:201)*

**When I try to edit, only the page title shows. Content is not visible for edit.**

This doesn't apply to pages created in 4.2.2 itself.

Any idea what could have happened in the upgrade to cause the issue please?


Answers:
author: Andrew Frayling
body: Hi,

It sounds ike the migration from wiki to xhtml didn't complete properly. Have a look at Re-running Migration at <https://confluence.atlassian.com/display/DOC/Migration+from+Wiki+Markup+to+XHTML-Based+Storage+Format> for details on how to manually run the migration process again.

Hope that's of some help?

Andrew.


author: MPal Pal
body: Thanks Andrew. It works :)


Tags: copy

edit

page

upgrade
if the page name includes a german umlaut, the page url will create a page id instead of a standard page url
Asked by anaelle chaperon:

if the page name includes a german umlaut like ? ? ? the created page become an url like confluence/pages/viewpage.action?pageId=7045219.

How can I solve it?


Answers:
author: Joerg Bencke
body: Hi Anna,   
it seems to be the correct behaviour. Links do still work all the same like

```
[?berraschung]
```

Just some Usermakros and plugins sometimes forget to handle umlauts well.

Josch
Confluence reporting System Error following upgrade to Ubuntu 12.04
Asked by Filip Lundgren:

Following having upgraded the server Confluence is hosted on to Ubuntu 12.04, Confluence refuses to function.

See the error here: <http://docs.inkdev.net/>


Answers:
author: Michael Brinson
body: If you have gotten it would be awesome if you could add a comment here Filip. Just a little direction for those of us who are in the same boat.


author: Nic Brough -Adaptavist-
body: Um, I take it you've fixed this?
Many issues due to no title for a page in confluence database.
Asked by Nawaz Quadri:

I received few issues from many users about some of the behavior of our upgraded confluence 4.2.1. The issues reported by them are as follows.

?Not able to set home page for a space

?Tree view of the pages not working for many spaces

?Page Index macro showing Null pointer exception

\*Root Cause\*

Exploring all these issue I conclude only one reason for all these issues. There are many entries in the confluence database for the pages with no title. Although Confluence does not allow creation of pages without a title but somehow these entries exist.

\*Reason for creation of pages without title\*

To explore this, I tried many things and was able to reproduce this scenario. It looks like, there is a bug in confluence in creating/editing a page template. If we are creating a page template and if there is an issue in using a macro (it can be incorrect parameters or anything that prohibits the macro used in the template to render it correctly), and if we save it without correcting the issue, there will be a page created in the confluence database without a title. The same is true when we are editing a template containing macro issues. Please note that templates in confluence still use wiki markup style and not a rich text style. The pages without the title can be listed in 'orphaned pages' section.

\*Workaround Solution\*

If we change title of these pages containing no title to some title (example -- 'Blank Title') through following database query directly in the database, and flush the cache of the confluence, all these issue will be resolved without restarting the confluence instance.

{code}

update CONTENT set TITLE = 'Blank title' where TITLE is null AND CONTENTTYPE = 'PAGE';

{code}

Please confirm it as a bug and provide a fix in the future releases


Answers:
author: Nic Brough -Adaptavist-
body: If it's a bug, you need to raise it in Atlassian's bug tracker at [jira.atlassian.com](http://jira.atlassian.com) - here, at Answers, is a user community. Atlassian lurk here and often post, but bugs need to go directly to them.

From memory (and in Confluence 3.4) there are some pages which legitimately have no titles, so a blanket "fix" for all the untitled pages might not be the correct answer. Also, in my test Confluence 4.2, I don't see this behaviour, so you probably need to do some more diagnosis with Atlassian. Before raising a bug, it may be better to raise a proper support issue with them for your installation.
Changing text in child pages of a certain page in Confluence using the CLI
Asked by Maarten van Hees:

Hello!

I'm migrating an old wiki system to a Confluence system and i'm very happy with the standard possibilities Confluence offers. But i've run into a problem while migrating lots of similiar articles.

I have migrated a list of function descriptions into Confluence and now i wish to add a quick links bar to each of these function description articles. First i looked for a macro or plugin of any kind, but no dice. Next i tried the Confluence CLI to make a batch find and replace thing, but i can't get it to work.

I am certain i can achieve want i want with the CLI. I can change a single article just fine, but i will need some kind of query to select all child pages of an article, i've seen an example wich changes everything in a space, but thats not specific enough for me. I'm not familiar enough with the querying mechanism to force anything out of it, so any suggestion is very welcome!

Thanks in advance!


Answers:
author: Bob Swift (personal)
body: [modifyPage](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-modifyPage) action can be used to do the modification and [How to automate adding text to Confluence pages](https://bobswift.atlassian.net/wiki/display/CSOAP/How+to+automate+adding+text+to+Confluence+pages) shows how to do this across a selection of pages. The latter requires access to the database which you do not have with OnDemand. So, you will need to do something similar using the [runFromPageList](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-runFromPageList) action which can select direct children or all descendents from a specific page.

comments: author: Maarten van Hees
body: Awesome, thanks for your answer! I will check it out today.


author: Maarten van Hees
body: Thank you very much Bob, this is exactly what i need. Saves me a lot of time.


Tags: cli

cloud
Retreiving deleted attachments
Asked by Sourish Ghosh:

We are using Confluence version 3.4.2. We find that certain attachments in a Space are missing.

When we tried to access them, an error message:

"The attachment you were trying to download could not be found in the attachment file store. Either the file has been removed manually or there was an error in removing the record of the attachment from Confluence.  

If this attachment is no longer required you can remove it from Confluence on the attachments page. Otherwise, you will need to attach a new copy."

popped up.

Please let us know how to retreive and restore them back.


Answers:
author: Thomas Schlegel
body: Hi,

is there something special with the name of the missing attachments ? We had a strange problem with attachments that have non-ascii-values in their name (German Umlauts).

They were definitely there, but could not be found by the application. The problem was a language parameter in the profile of the Solaris User.

You should check the attachments folder on the file system. If the missing files are definitely not there, it cannot be retrieved by any admin panel at all.

Best regards and good luck

Thomas


author: Jobin Kuruvilla [Adaptavist]
body: That's od. Someone surely might have messed up with the file system? If you don't have a backup of the folders or the VM, you can't retireve it!

comments: author: Sourish Ghosh
body: Hi,

We dont keep daily backups for attachments as it eats away a lot of space.

Is there no way we can retrieve it from the admin panel or something?


author: Nic Brough -Adaptavist-
body: I think you're misunderstanding what Jobin is trying to tell you. The error you have means that the file that Confluence thinks is attached is no longer there. It's either been deleted, renamed or moved. There's no file recovery option because that's a function of the operating system, not Confluence.

If it's been renamed or moved, then you need to find it and undo the change. If it's been deleted, then you need to restore it from a backup (although some file systems allow an undelete if the disk area hasn't been overwritten, you're deep into "do stuff in the operating system")
Error while trying to create a new space in confluence
Asked by Athira K P:

Hi, I tried to create a new space in confluence but I am getting the error in screenshot attached below.

![](../../upfiles/space.png)

Can someone please tell me how to fix this...:-(


Answers:
author: Matthew J. Horn
body: Long shot, but do you have permissions to create a space?

comments: author: Athira K P
body: I am having admin rights but still not able to create a space
Unwatch part of page family
Asked by Kenneth Holter:

Hi,

I've added a watcher to the top level of our space, but would like to unwatch certain pages (and their children). Is it possible to unwatch a specific page and its children by unwatching just the specific page, or must I manually unwatch each page?

We're using Confluence 3.1.

Best regards,

Kenneth Holter


Answers:
author: LuizA
body: Hello Kenneth,

Actually this is not possible, but if you want to see a feature/improvement like this one implemented I would suggest you to raise an improvement request at our [Jira.atlassian.com](http://Jira.atlassian.com), but just as a side note, this feature probably would be developed (if approved) for new versions (Confluence 4.3.x onwards).

For more information on how Atlassian implements new features and improvement please see the following link:

<http://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy>

Best Regards,

LJ.


author: Catherine Z
body: Hi,

Do you know if this feature has been implemented since?

Thanks.

Catherine


author: Jacob Prather
body: It is not possible to remove certain pages after watching a space. However, that is a good idea and you should contact Atlassian to implement that feature in the future.

<br />

<br />

Good Luck,

Jacob
How do I modify the text color on hover in the "Browse" and "User" menus?
Asked by Ashton Treadway:

Hi:

Confluence 4.2.4, standalone.

When someone hovers over "Browse", we want the highlight to change to white, with blue text.

When they pull down the menu, we want the menu text to be blue, on a white background, but change to white on a blue background when hovered over.

The menu is working correctly; what I can't get working is the color inversion on the menu itself.

HERE HAVE A PICTURE.

![](../../../upfiles/wtf-menu-omg_1.png)


Answers:
author: Matthew J. Horn
body: Have you checked the Administration panel's Color Scheme settings? I think this is one of the settings you can change there. Log in to Admin Console, click Color Scheme, and click Edit. I think the style you want to change is "**Top Bar Menu Selected Background".**

**hth,**

**matt**
On Demand Jira + Confluence - how to make Confluence the system default homepage
Asked by Peter Wachtel:

Iam working my way through a new on demand install of both Jira and Confluence.

The system dashboard shows the Jira home page, from whence you can click the wiki tab to go to the Confluence home page.

Is there any way to make the Confluence home page the default view after logon? That is, as a global default.


Answers:
author: Gary
body: Hi,

You will need to create an account first by going to [https://jira.atlassian.com](https://jira.atlassian.com/browse/HS-478#comment-335900) and clicking the "Sign Up" link.

Thanks,

Gary


author: Karie Kelly
body: Does anyone else have an issue access that URL? I'm logged in to the site, but receive a permission violation.


author: Gary
body: Hi Peter,

Unfortunately, the Jira Dashboard will always default as your homepage for the OnDemand platform. However, we do have a curent improvement request open for this:

<https://jira.atlassian.com/browse/HS-478#comment-335900>

Feel free to update the request with your feedback, and votes.

Thanks,

Gary


Tags: cloud