youngmon/atlassian-qna huggingface dataset:
Autocomplete
Asked by Onkar Ahire:

Hi All,

I am writing a plugin in which I stuck with autocomplete task.

I am able to execute jquery in jsfiddle but now working in my .vm

.**js**

```
$(function() {    var items = [ 'France', 'Italy', 'Malta', 'England',         'Australia', 'Spain', 'Scotland' ];            function split( val ) {      return val.split( /,\s*/ );     }    function extractLast( term ) {      return split( term ).pop();    }     $( "#search" )      .autocomplete({        minLength: 0,        source: function( request, response ) {          response( $.ui.autocomplete.filter(            items, extractLast( request.term ) ) );        },        focus: function() {          return false;        },        select: function( event, ui ) {          var terms = split( this.value );          // remove the current input          terms.pop();          // add the selected item          terms.push( ui.item.value );          // add placeholder to get the comma-and-space at the end          terms.push( "" );          this.value = terms.join( ", " );          return false;        }      });  });
```

**.vm file**

\<input id="search" /\>


Answers:
author: Shubham Garg
body: Hey,

I am facing the same problem

Were you able to find any solution for this?


author: JulianA
body: Have you something like firebug for firefox? Maybe you can get there any information about the error


author: JulianA
body: try to replace all '$' with 'AJS.$'

comments: author: Onkar Ahire
body: ```
response( AJS.$.ui.autocomplete.items, extractLast( request.term ) ) );
```

I replaced $ to AJS.$ but same error , when I replace AJS.$ to this. it

doesn't threws any exception but autocomplete not works.


Tags: jql
No headings found in .doc
Asked by TurboCAD Italia:

Using Confluence 5.1.2. When importing .doc or .docx using Tools\>Import Word Document, the interface says: "Can't split this document. It contains no Heading styles".

But my doc contains Heading syles, i suppose..

What could be the problem?

thanks

Cristian  


Answers:
author: TurboCAD Italia
body: Hi, i am italian, so the Word is in Italian, so the name of heading is "Titolo 1"..., but they are te standard headings ( for italian version).

EDIT: the problem is the name of headings, in italian the standard headings are renamed in "Titolo n".. and don't works. Simply open file in GDrive and re-save in docx format and it's works.

comments: author: Ersin Gulacti
body: Thanks for this tip. I opened the document in Google Drive and saved it and downloaded. This process fixed the problem.


author: Christian Czaia _Decadis AG_
body: Maybe you have custom headings defined that are not being recognized? Have you tried importing a doc with the standard headings?
Can a single Confluence Wiki instance have spaces physically located in separate countries?
Asked by Martin West:

We have approximately 600 users currently using one production instance of a Confluence wiki 4.2.6.  
However, our users are split between offices in the UK (550 people) and Australia (50 people) and both Groups are interested in developing spaces that include classified material only relevant (and allowed to reside) in their individual country. We also have general help that needs to be shared between both countries.  
Is there a way that we can split the content of a single Wiki instance so that the files relating to spaces that must reside only in the UK are in the UK and those that must reside in Australia are in australia and we have global spaces that our permissions mean anyone can acces the help spaces?  
So this is going beyond LDAP permissions controlling access as some spaces must be also physically located in a particular Country.  
I hope somebody can suggest a solution. Thanks  
Martin West


Answers:
author: Mick Davidson
body: Martin,

You could, on your globally available wiki, edit the welcome message on the dashboard to include links to the country-specific wikis. That way they would all be joined (very simply) and everyone would know where to go to find the links to the appropriate wiki.

And with permissions set correctly, users would only be able to see the wiki they're entitles to.

Otherwise you might have to do some major rebuilding to the dashboard that would disguise what's actually going on.

If you've got the budget and time, the latter option might be the best way to go. If not...

Cheers

comments: author: Martin West
body: Thanks - shame its got to be like this - but this would help the users if we have to go that far


author: Martin West
body: No - for security and export control reasons the pages must be physically located in different countries. The other people answering confirm that a single instance of confluence (even if split into separate spaces) has all the pages located together in one place.


author: Sara Cohen
body: Isn't it possible to just set up different Confluence spaces?


author: Davin Studer
body: Sounds to me like you need three installs. One for shared content, and one for each country.

comments: author: Davin Studer
body: What you are talking about would require a fundamental db/program archetecture change.


author: Martin West
body: Thanks for responding - I was afraid this might be the answer. So we need to buy 2 extra confluence licences and work out how to make each country see their own Wiki and the shared content Wiki appear as if it was one site.


author: Davin Studer
body: Yeah. If you are going that route you may want to look into Crowd as well, so that you can centralize the login porcess ... unless you already have some kind of single sign on set up.


Tags: confluence-administration
How to add a user and allow only WIKI for a specific new space?
Asked by rattles2013:

Hi,

We have atlassian with JIRA \& WIKI (Confluence).

We have a lot of users, JIRA Projects \& WIKI Spaces.

I would like to create a new user (done).

Then create a new space (done) - there is no need for JIRA project with that space.

Then I would like to allow that user to only see that specific space, and not anything else (no other spaces and no projects).

How can this be achieved? I've tried playing with a lot of different parameters \& settings on both the user, group \& space...


Answers:
author: J?rgen M?ller
body: I think the problem is that on all spaces and pages normaly the group confluence-users have rights. And you can not take the new user from this group because you need this group for the login.  

We have solved it, we have created a new group, and this group have the same rights as confluence-users. Anyone with the normal rights was in this group. All others was only in conflunce-users and then we using permissions settings in the space's Admin area.   

We revoke confluence-users group the rights on the spaces.


author: rattles2013
body: I figured it out - I had to add the user to a group that had a global permission of 'Can Use'...

otherwise it wouldn't work.


author: Mick Davidson
body: Rattles,

You should be able to add them to the space as an individual user, using the Permissions settings in the space's Admin area. See Browse/Space Admin.

This assumes you are using download. I don't know if it's different in on demand.

Cheers.

comments: author: rattles2013
body: I am using 'On Demand'.


Tags: cloud

confluence-cloud
Barrier-free access: does Confluence support usage for users with no or bad eyesight?
Asked by Stefan Baader:

does Confluence support usage for users with no or bad eyesight?


Answers:
author: Peter Van de Voorde
body: Hi Stefan,

Can the information on this page answer your question?

<https://confluence.atlassian.com/display/DISC/Confluence+Section+508+Accessibility+Compliance>

Best regards,

Peter

comments: author: Stefan Baader
body: Hi Peter,

thanks f?r the hint.

Stefan
Chart Macro Confluence 5.3
Asked by Clarisse Messey:

I am trying to insert data in the "tables" tab (comma separated) but it does not work... I've got a "no data available" message. I looked at the online documentation but only the result is shown, not the data in the edition window. Thanks


Answers:
author: Bob Swift (personal)
body: Yes, the chart macro operates on tables found within its body. In some cases subsetted by ids.


author: James Langley
body: Think I know what the problem is. The tables have to be in the body of the chart macro. So if you want to display the data in both a table and a chart, you have to duplicate the data. Perhaps there's another way around this.


author: James Langley
body: I have exactly the same problem. My example code that shows the problem is:

```
{table-plus:id=test}|| Component || 05-Nov-2013 || 18-Nov-2013 ||| Component X | 10 | 20 || Component Y | 40 | 50 |{table-plus}{chart:type=line|tables=test}{chart}
```

If I wrap the chart around the table and don't use the id and tables then it works.


author: Bob Swift (personal)
body: If you showed a picture of the edit screen or markup, we might be able to help.
How to decrease line spacing in pagetree in a sidebar?
Asked by Viktor Nemec:

Hello,

I would like to use a pagetree instead of child pages in a sidebar. However, I find the space between the lines in the page tree quite big. What css element do I need to modify to decrease the space between the lines in the pagetree in a sidebar?

I am familiar with using custom stylesheets in Confluence. Neverthless, I was unable to find what element I need to modify to achieve the desired effect. Firefox (Inspect Element functionality) discovered the following element:

.acs-side-bar, .acs-side-bar-flyout, .acs-side-bar td {   
line-height: 12px;   
font-size: 10pt;   
}   

Unfortunatley, this doesn't seem to be the right one and I couldn't find any other element which would affect the line spacing in the page tree.

Thank you in advance,

Viktor


Answers:
author: Viktor Nemec
body: Hi Charles,

you are correct. I am using version 5.3 with the Default theme and with the default site layout. I am using my custom stylesheet (configured in the admin page) for some minor visual improvements.

Thanks,

Viktor


author: CharlesH
body: Hi Viktor,

Can you confirm what version of Confluence you are using, and what space theme is in play here. It sounds like Confluence 5.x and the global look and feel theme, but just wanted to check.

Charles.


Tags: confluence-administration

page-tree

side-bar
User Details synchronization over LDAP
Asked by Jens Wagner:

Hello,

I added an Active Directory for importing all user and this works fine, except for one point. Athought this AD contains many details like phone number etc., Confuence does not import these details for the users. Is there a possibility to get this working?

Best Regards,

Jens


Answers:
author: JohnA
body: Hi Jens,

I don't believe this is possible at the moment, but we do have an open feature request to ask that this kind of functionality is added to a future release of Confluence and therefore I would recommend that you watch/vote/comment on the ticket to encourage our developers to implement it: <https://jira.atlassian.com/browse/CONF-7426>

You might also find the following plugins are of some use for this purpose, although I'm not sure they will pull all the content you require:

* [User Profile Plugin](https://marketplace.atlassian.com/plugins/de.communardo.confluence.plugins.userprofile)
* [Enterprise Directory and Org Chart for Confluence](https://marketplace.atlassian.com/plugins/com.appfusions.confluence.enterprise-directory)

All the best,  
John


author: Sorin Sbarnea (Citrix)
body: There is an open feature request that provides this at <https://jira.atlassian.com/browse/JRA-24332>

Don't forget to vote and to add a meaningful comment explaining why this is important for jira users. This may help Atlassian raising the priority.


Tags: detail

ldap

user
Auto editing user details by groups
Asked by loers:

Is it possible to auto-fill the details of users (Position, Department...) by their assigned groups? Or to set them automatically depending on their groups when they get created?


Answers:
author: Ryan Goodwin
body: It would be possible by querying the database directly. The user profile details are stored in the os_propertyentry table under entity_key columns:

confluence.user.profile.position  
confluence.user.profile.phone  
confluence.user.profile.department  
confluence.user.profile.location

Each of those records will have a value for entity_id which relates to the content table contentid field:

content.contentid

You'll see this record is for a content.contenttype = userinfo type page.

Now the trick here is that the os_propertyentry records do not exist until you add those properties for a given user. So you would need to add that information for each user that is a member of a group.

Groups are stored in cwd_group, memberships are stored in cwd_membership, and users are in cwd_user. You'd need to join the sql statements for those tables to get appropriate memberships.

I believe the userinfo record in the content table is created when the user is created in the database. This would be on ldap sync or first login depending on the user directory type.

Hope this helps!

comments: author: loers
body: First of all thank you for answering,

unfortunately I didn t know that our accounts are linked form the active directory and editing these fields is disabled in confluence :/ . So the best (only?!) way for solving my problem is to maintenance the data in the AD. I have already herad there is an issue for sharing more information between AD and confluence but I could not find it. Is it already possible?


Tags: administration

confluence-administration

detail

group

user
Confluence on Mobile
Asked by HungD:

Hi guys,

I am building a Q\&A system, but it does not look good on mobile. I searched and see that confluence looks really great on mobile like the link below.

<https://confluence.atlassian.com/display/AOD/Using+Confluence+on+a+Mobile+Device>

I wonder if there are settings to make this happen.

Thanks in advance


Answers:
author: darylchuah
body: Hi Hung Dinh

You may read on the following:

<https://confluence.atlassian.com/display/AOD/Notes+about+Confluence+Mobile>

Currently, Conflucen in Mobile is not fully optimize yet as the page will basically display some of the things that won't work or work when viewing Confluence pages via Mobile.
Confluence Upgrade
Asked by AKASH BHARDWAJ:

Hi Geniuses,

I am going to upgrade my Confluence from 4.3 to 5.3/5.0.

So can you all please tell me what all precautionary measures should i take, i have a checklist as:

a) Home Directory

b) Installation Directory

c) Database Backup

Beside this is there anything that i should be taking care of, also should i make a note of Plugins installed?

I am following this site of confluence:

**https://confluence.atlassian.com/display/DOC/Upgrading+Confluence#UpgradingConfluence-UpgradingConfluenceonLinux**

Beside this any other site which will help me while upgrading and roll back if anything

Thanks in advance,


Answers:
author: Davin Studer
body: In our environment we have a non-production copy that we refresh occasionally. We then upgrade that prior to upgrading the procution version and test that plugins work and everything like that. We usually give that a week or so to find any issues. We also have our two enviroments running in virtual machines so that we can snapshot them prior to the upgrade so that if anything fails during the upgrade process we can easily revert the snapshot and be back to the way we were.

This isn't really related to upgrades, but we also backup the database and wiki folders nightly.


author: RambanamP
body: check this post it may help

[https://answers.atlassian.com/questions/200205/confluence-5-x-upgrade-problems](/questions/200205/confluence-5-x-upgrade-problems)

comments: author: AKASH BHARDWAJ
body: @rambanam: Hi,

I have gone through this link, but it no where says the precautionary measures and steps to upgrade. So can you help me out with the link which is more relevant.

Thanks,


Tags: upgrade
How popular is a page by page hits?
Asked by Natalie:

Is it possible to get a 'how many times a page was hit' report in confluence.

We have page titles 'quickfind' and we want to see how many times they have been hit over the last 2-6 months to see if they are adding value to the site.

Thanks


Answers:
author: Josch Bencke
body: Thats a webserver statistics, not a confluence topic. Confluence does not know, for instance, how much your proxy or web accelerator cached the page, if you have something like that.

Immediate: So the best guess would be "analyze your webserverlogfiles" for "List the top 10 pages with URL containing XXX"

More detailed future: Incorporate a tracking cookie and use a webanalytics tool to track siteuseage. Technically, that is rather simple, but you need to get a clear concept on the business side "What do we need to know", "which Key performance indicators are necessary" etc. And there are some plugins to help you with that, but again, the main challenge is businesswise.

For more details on webanalytics :

https://answers.atlassian.com/questions/10736/looking-for-user-access-statistics


author: Natalie
body: We went with the popular content macro and set the output to the total number of pages in that space then ctl F for phase 'quickfind'

The suggestions above look like better options and now we know so we can manage it appropriatly.


author: Davin Studer
body: There are a few ways to do this. You can [enable web server logging](https://confluence.atlassian.com/display/CONFKB/How+to+Enable+User+Access+Logging) for Confluence and then analyze those logs. You could put Google Analytics in the custom HTML section of Confluence Admin so that it shows up on each page and then use Google Analytics to get that information. If you are on 5.3 there is now a SQL table that tracks what pages you go to, so you could get that info with SQL. Bitvoodoo has a [plugin for tracking page hits](https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.viewtracker).

Hopefully one of those options will meet your needs.

comments: author: Pankaj Agarwal
body: What is the name of the table where we can find the view details?
table-data or repeat-data with pre-existing rows
Asked by Wayne Hansen:

I'm trying to create a table that already has rows present when a page is created from a template, or even from copying a page.

ie

on page A I have the following table created with table-data and each cell containing a text-data field (Job1 and Job2 have already been filled in):

\|\| Role \|\| Email \|\| Name \|\|

\| "Job1" \| (blank) \| (blank) \| ?

\| "Job2" \| (blank) \| (blank) \| ? ?

\| "Job3" \| (blank) \| (blank) \| ? +

The purpose is so Job1, Job 2 and Job3 are already suggested, however if they're not needed they can be removed, or changed, as well as the ability to add another row to create a row for Job4.

But when I copy the page, or use a template, the table gets cleared out and I start with:

\|\| Role \|\| Email \|\| Name \|\|

\| (blank) \| (blank) \| (blank) \| +


Answers:
author: CharlesH
body: Hi Wayne,

I think you've hit some limitations of the Scaffolding plugin here. One constraint is that copying a page that contains Scaffolding data gives you a page with blank scaffold fields. This is due to how Scaffold data is stored, and the scope of what Confluence does when you use "copy page". This ServiceRocket support topic will give you more details: <http://community.servicerocket.com/servicerocket/topics/data_lost_from_scaffolding_page_when_page_is_copied>

I've used table-data quite frequently. I am pretty sure it is limited so that you can only express one row with scaffold fields. That would explain why in your test you start with the table headings row and just one additional row.

If you can live with just one row initially, then when it comes to default data (your "Job1", "Job2" values) then again there have been problems with default values for the text-data scaffold field. Details here:

<http://community.servicerocket.com/servicerocket/topics/default_values_for_text_data_half_working_now>

I've not had a chance to check with the latest version of the plugin yet, but perhaps this is solved now.

Sorry I can't offer you a solution in this case, but an explanation of the behaviour you're seeing is better than nothing. You may want to post your question in the ServiceRocket community forum, as their support guys do monitor that.

Charles


Tags: repeat

table
Why do my events move vertically when scrolling left to right on the timeline view in Team Calendars?
Asked by Trevor Hunt:

Any ideas? It's strange behavior. Some issues will "bounce" around while some overlap and lay on top of one another.


Answers:
author: Trevor Hunt
body: It turns out there's an on-going Team Calendars issue that was purportedly fixed in version 3, but I'm running version 4.

We have events mapped on the calendar for projects with extremely long durations which I believe is the cause. Please hop on over to this JIRA issue and vote it up:

<https://jira.atlassian.com/browse/TEAMCAL-1854>


Tags: team-calendars-for-confluence
Sharing files with different project spaces
Asked by Jonah Rivera:

I have 3 projects created in Confluence (project is for 3 site launches). Several files/documents are desgins and copy that need to be used for all 3 site launches. Can i share the files within all three different project/spaces? I don't want to upload new files to different spaces each time. I would like to do it once in one file page and have all the project spaces point to same files page.


Answers:
author: Gorka Puente _Appfire_
body: Yes,

You just need to insert a link (ctrl+k) and search for the file in the "search" tab. So, you create a link to your file, which is only uploaded once


Tags: file

share
Is there a way to modify the logon dashboard in Confluence on-demand?
Asked by Gary Banks:

We use Confluence on-demand as a partner portal. My user wants the initial expericne to look more like a webpage. Can the dashboard be modified? Can it be bypassed?

No problems with the look and feel on Confluence pages after that first dashboard.


Answers:
author: John Masson
body: I'd be interested in hearing a bit more about what sort of replacement you made Gary. If you can spare 30 mins for a chat, shoot me an email - jmasson at atlassian dot com. Thanks!


author: Gary Banks
body: Pointed the URL directly to a partner page. Thanks Bob and Ram.


author: Gary Banks
body: Pointed the URL directly to a partner page. Thanks Bob and Ram.


author: Gary Banks
body: this is what we did.


author: Bob Swift (personal)
body: You can take them directly to the home page of a specific space specified on Admin -\> General Configuration


author: RambanamP
body: i don't think it is possible to modify logon page on ondemand confluence page

submit support request @ <https://support.atlassian.com/customer/home>


Tags: cloud

confluence-cloud
Checking plugin usage
Asked by Rahul Aich [Nagra]:

Hi All

On our wiki instance we have around 70 plugins installed. Now we want to cut down on the plugins.

Is there any easy way of identifying which plugins are being used/ have been used extensively?

The easiest way as an admin would be to simply disable the plugin and se how many people shout. however, i am looking for any better alternative if at all available.

Rahul


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You can find macro usage as described here: <http://ffeathers.wordpress.com/2011/11/04/how-to-search-confluence-for-usage-of-a-macro/>

Might be useful although not all plugins are just macros.

comments: author: Matthew J. Horn
body: FWIW, I created a macro that checks for "user macro" usage. It goes beyond what that blog entry does, at least for user macros:

[https://answers.atlassian.com/questions/59203/find-pages-that-use-certain-macros-plugins](/questions/59203/find-pages-that-use-certain-macros-plugins)

hth,

matt


author: Rahul Aich [Nagra]
body: thanks jobin that helps...


Tags: confluence-administration

confluence-app