youngmon/atlassian-qna huggingface dataset:
Is there a way to create in-page links on the same page for wiki pages?
Asked by Chris L:

Hi -

I'm trying to create a shortcut on a wiki page that would have in-page links to the designated space on the same page. For example, I have the alphabet set as links (A B C D E ....). If I click on 'T', it will take me to the first data element that start with the letter T.

So the benefit of having this in-page linking is so that the user does not have to scroll all the way down to look for their data element; there are hundreds of data elements on this page, thus, this in-page shortcut. Please let me know if there's a way to create this linkage.


Answers:
author: Andrew Frayling
body: Hi Chris, documentation on creating anchor links is available at <http://confluence.atlassian.com/display/DOC/Working+with+Anchors> Hope that helps, Andrew.


author: Mick Davidson
body: The way I do this is:

1. Add a table of contents to the page and save it.
2. Then I click on the heading I want to jump to in the TOC. (In your example the heading is the letter T - so this has to be at a heading level that appears in the TOC).
3. When you do this, the URL changes to include the heading you've clicked on.
4. I copy the URL and then (in Edit mode) select the T and run Insert Link (Ctrl+K) to open the Insert Link window.
5. I then select the Web Link option and paste the saved URL into the Address field, then click Insert.
6. When you save the page the letter T will be a link which you can use to jump to that heading.

Most of our pages have TOCs, so doing this is very easy and takes only few seconds to do.

Cheers.


author: Andrew Frayling
body: Hi Chris, documentation on creating anchor links is available at <http://confluence.atlassian.com/display/DOC/Working+with+Anchors> Hope that helps, Andrew.


Tags: link
UWC conversion of MindTouch anchors
Asked by Ted Huntington:

What is the best way to convert local links in DekiWiki (MindTouch) to anchors for Confluence? Internal links appear to convert correctly when the header title is "linkname" as in this example: \<a href="#linkname"\>, but not when #linkname does not match the header title. \<a name="linkname"\>\</a\> causes an error, \<span id="linkname" /\> doesn't work. What is the easiest way to get the converter to insert a {anchor:linkname} when converting?


Answers:
author: Ellen Feaheny [AppFusions]
body: Hi Ted

AppFusions supports the UWC and migrations as a whole - and have successfully migrated MindTouch to Confluence also before. Please email us at [info@appfusions.com](mailto:info@appfusions.com).

Best,

Ellen

[info@appfusions.com](mailto:info@appfusions.com)


author: Ted Huntington
body: Yes- it's been over a year and a half since I was working on migrating a MindTouch (Deki) Wiki to Confluence, and so I don't remember completely. But I had to use Eclipse to build the UWC tool, and then actually change some of the Java code. A lot can be done in the converter.mindtouch.properties file. Here is a relevant piece:

#Internal links (Anchors) cause the Parser to fail

#not pretty - but remove any rel=".\*?" in an internal link and add it in the next line  
Mindtouch.3448.custom.java-regex=(\<a.\*?href="#.\*?")(.\*?)(rel=".\*?")(.\*?)(\>){replace-with}$1$2$4$5  
#some internal links don't have rel="internal"   
Mindtouch.3449.custom.java-regex=(\<a.\*?href="#.\*?")(.\*?)(\>){replace-with}$1$2 rel="internal"\>

I really learned a lot about Java regular expressions- there are a lot of options. Even then our conversion was not entirely perfect- there were a few garbled page- but most converted ok.

comments: author: Thomas Wendel
body: Thank you Ted.


author: Ted Huntington
body: Thanks Ellen, sorry for getting back to you, but I resolved the issue with anchors. I have your contact info for future reference.

Ted

comments: author: Ellen Feaheny [AppFusions]
body: thanks - sounds good.

Best, Ellen


author: Thomas Wendel
body: Hi Ted,  
Would it be possible that you share your solution here with us? ;-)  
Thanks!


Tags: anchor

mindtouch

universal-wiki-converter
How can I report the security constraints for all spaces and pages in Confluence?
Asked by Ivar:

I would like to get a list of the security constraints in Confluence.

E.g. User A has access to Space A, B and C, but can only view the pages in Space B. In Space C there are 7 pages he cannot view.

User B cannot access Space A and B, but he has full access to Space C.

How can i list this?


Answers:
author: NielsJ
body: Maybe one of those contains a solution for you :-)

[https://answers.atlassian.com/questions/22091/how-can-i-show-the-page-permissions-in-the-page-itself-confluence](/questions/22091/how-can-i-show-the-page-permissions-in-the-page-itself-confluence)

[https://answers.atlassian.com/questions/27698/reporting-user-group-usage-for-page-level-restrictions](/questions/27698/reporting-user-group-usage-for-page-level-restrictions)

comments: author: Ivar
body: I'll check out user macros and come back later :)


author: Ivar
body: Neither of these gave me exactly what I was after :\| I need both infromation about:

* Groups with specific access
* Users with specific access

We are (still) on Confluence 3.5.6. One of the macros showed very little while the other did not show anything at all.


author: David at David Simpson Apps
body: That could be quite a big list. You'll have to start in the space admin on each space and see which group each user is in and also any individual user permissions. You'll also have to traverse the page hierarchy for each space and see what additional permission restrictions have been applied for individual users and groups.

Sounds like a lot of fun, and maintaining this is likely to be unpleasant unless you automate it and cache the results. Don't open up tranversing the whole wiki programatically for everyone as it will likely slow things down.

It's best to keep permissions as simple and open as possible -- this is a collabortation platform after all. Where possible, only add permissions using groups -- this simplifies things substantially.


Tags: report

security
Disable Head Blue panel.
Asked by KrupeshD:

We are about to have our product documentation ready to go online. This documentation can be viewed without any authentication for few months so I have set the privileges accordingly. While anonymous user view the documentation, the Blue head panel should be disabled so he/she can not go to other spaces or can not see browse or administrator option. How to disable that Blue Panel?


Answers:
author: Nic Brough -Adaptavist-
body: A couple of thoughs

1. There's no native option for doing that in Confluence, unless you write your own theme, or hack the code
2. You're using OnDemand, and I don't think that supports code changes like that
3. I'm not sure why you would be that worried about the bar - it's useful for navigation, and if you have your permissions set up correctly, no-one will be able to see the stuff you don't want them to. Removing the bar is not the way to stop your anonymous user from visiting other spaces, because they can get to them in several other ways. The bar is clever enough to hide things you have protected (because giving a link to something a user can't actually use is pointless), but you need to protect them properly irrespective of the navigation options on the header. An example - if your public documentation is at <http://yourspace/display/DOCS,> then I already know I can go to <http://yourspace/spaces/editspace.action?key=DOCS> to see the space admin pages. You need to make sure anonymous can't do that by setting your permissions correctly, and then you'll find the administration link disappears for anonymous users.


Tags: cloud

confluence-cloud
What happened to Atlassian videos hosted at Episodic ? Like AtlasCamp 2010
Asked by Brendan Patterson:

Any idea what happened to the videos hosted at Episodic? Like this one?

<http://www.atlassian.com/en/company/about/events/atlascamp/2010/day3/big-modular-plugins>

Of course I searched Google and YouTube. Google acquired Episodic around last May but I can't figure out where the videos are. I just recommended someone figuring out the OSGi visibility model watch this vid and I wanted to rewatch it myself - this one was pure gold as are many others.

thanks! Brendan


Answers:
author: mhalvorson
body: Episodic shut down last week without notice. We are in the process of getting all the video from them but as you might imagine it is going to be a huge task to upload all of it and gather the embed tags to place in our various web properties and blog posts.

They should be back soon.

comments: author: Brendan Patterson
body: Ah thanks Mark! And sorry about that. What a hassle.

While you're at it, it would be awesome to have a knowledge map of the videos :) I've watched many, but have no idea how many there are or the topics covered. I don't even know how you'd present the map or maybe a faceted search. Just thinking outloud.

If I want to find all the non-dated videos on plugin development any idea how I'd do that?


Tags: atlas-camp

video
Hosting HTML pages (about 1000) and making is searchable
Asked by Chitra Patil:

I have a large number of HTML pages (API reference) that need to hosted and made searchable. I don't have experitise in php or Javascript and am having a hard time converting. I have tried the plugin h2c, but it didn't work correctly.

My HTML pages are grouped and have a collapsible menu.

I am still evaluating Confluence to see if it works for us. Any advise on how to host the html pages without the need of php/Javascript expertise?


Answers:
author: Harry Chan
body: Hi, to host static html files, you simply need a web server, e.g. nginx, apache, IIS or lighthttpd. If you need Confluence along with these html files, you can add another context in Tomcat to point Tomcat that hosts Confluence to these extra files.


author: Radu Dumitriu
body: Use doxygen to generate the files from the Java sources. Doxygen really has some nice features to build an index on those files (static!).

You will have to read the manual, but it's free and has very good results. At least for me, it was great.

You can even take out the generated files and include them in your own javadoc (if you do not like the style, which you can configure, btw).

Doxy rules !


author: Chitra Patil
body: We already generate the files using Doxygen like tool. But we cannot host those files (HTML) generated by doxygen on Confluence. That is why I am having the problem.

comments: author: Radu Dumitriu
body: For static files, you do not need Confluence


author: JamieA
body: Just my 2c, but I don't think confluence is the best place for API docs, eg javadoc or whatnot. You should give something like nexus OSS a try.


author: Jason Huntley
body: What problems did you encounter with the H2C plugin?


author: Jason Huntley
body: What problems did you encounter with the H2C plugin?


Tags: export
American English language pack
Asked by Jonathan Simonoff:

Is there no longer an American English lanugage pack? I haven't been able to find one in the Plugin Repository.


Answers:
author: Mike Osswald
body: here you go: <https://translations.atlassian.com/dashboard/download?lang=en_US>


author: Brad Schoening
body: Really? US English is not Atlassian supported, only a 97% complete community contributed effort?


author: Joshua C Haynes
body: Yeah and the latest version by the community can't even get the "Save for later" item working properly. favorite.png  
[](https://community.atlassian.com/t5/Confluence-questions/American-English-language-pack/qaq-p/147273?attachment-id=12355){#link_118db5f1302e45}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/24549/1/favorite.png){#display_118db5f1302e45_0}


Tags: language
Confluence Tables: > 1 Bullet List Inside A Table Entry
Asked by Gregory Sudderth:

(We are on Confluence 3.5.13)

My user has a tabe, with three columns. Inside the third column, he has multiple bullet lists, but needs to break them up, with spaces between them, but, whenever he puts in a manual space, he breaks the table. When he uses double-backslash, the bullet lists don't separate, but the table is ok.

The idea is to get the If parts to line up...we have tried {html} macros etc.

Here's the page source (obfuscated, duh):

\*Dutyboard\*: When making changes to a record in TBLCHICKENSALAD, the previous information must be written to TBLCHEESE_HISTORY.  

\|\| Column \|\| Value Description \|\| Change to Value \|\|  
\| AREA_ID \| Represents the Area the shoe was worn \| set to value from PITA_ID in TBLCHICKENSALAD record \\\\ \|  
\| TASK_TYPE \| Type of duty performed \| If STATUS in TBLCHICKENSALAD equals 'OP' then:\\\\  
\* Lookup LOTTERYNUMBERS in TBLTEMPOFFICERWORKER and obtain CURJOB, and  
\* Convert CURJOB to series number by concatenating 'AT' + the hundreds value (e.g. 113 would be 100)  
\* Lookup the PROJECT_CODE matching to the derived Series and the STATUS to the corresponding referenced codes below to the CRUTCHES  
\* Set to CRUTCHES associated with PROJECT_CODE\\\\  
{html}\<p\>\<p\>{html}\\\\  
If STATUS in TBLCHICKENSALAD equals 'SN' then:  
\* Lookup LOTTERYNUMBERS in TBLTEMPOFFICERWORKER and obtain CURJOB, and  
\* Convert CURJOB to series number by concatenating 'AT' + the hundreds value (e.g. 113 would be 100)  
\* Lookup the PROJECT_CODE matching to the derived Series and the STATUS to the corresponding referenced codes below to the ART_DUTY_LIST  
\* Set to ART_DUTY_LIST associated with PROJECT_CODE\\\\  

(Sorry, I can't get this editor to do a {code}, I don't get it, sorry, pretend its formatted)

Thanks in advance!

G.


Answers:
author: Thomas Schlegel
body: Hi,

this works:

\* Lookup   
\\\\  
\\\\  
\* Convert

Best regards

Thomas

comments: author: Gregory Sudderth
body: I can't get that to work on this side...I tried it with Firefox (several) and its broken the same as our standard IE8. Thanks for the tip though!

Here's what it looks like, including the source.

![](http://flic.kr/p/biU2kX)


author: mennobb-admin
body: This is how you do it:\| \* Eat fish, \\\\ \* Drink beer, \\\\\* Visit [www.appwards.nl](http://www.appwards.nl) \|


Tags: table
Tricking Pagetree into showing the number of attachements for each page or branch (Newbie Alert, please help)
Asked by Mike Bruno:

Hi guys,

Loaded question here. My company just moved to Confluence 6 weeks ago, and I have little programming knowledge. Having spent the last day and a half researching this, I am at my wit's end. Any help you guys can offer is greatly appreciated.

The goal: Have a Pagetree index that lists the title and the number of attachments each page or branch has.

Example: "The Title" (#)

I am having trouble with the following:

1. Pagetree does not support this. Therefore, I believe the work around (if it is possible) is to directly edit the titles of each page to reflect their number of attachments. The problem is that I have no idea how to do this. I tried using

   ```
   public void setTitle(numberOfAttachments) to no avail.  Is there a way to do this?
   ```

2.

   ```
   I don't actually know how to count the number of attachments.  From another post, a user said that I have to reference attachmentManager and use the following code:
   ```

   ```
   int numberOfAttachments = attachmentManager.getAttachments(page).size(); . The problem is that I don't know how to reference attachmentManager, and all the searching I have done hasn't turned up any info.
   ```

3.

   ```
   Assuming I actually get all of the above, how do I use the variable numberOfAttachments?  I understand parameters, but don't really understand variables in XHTML
   ```


Answers:
author: Mike Bruno
body: \^It's as if someone out there is mocking me. I can't undo the code tags. If a mod could please help me out here, there is no section for HTML markup.


Tags: attachment

page-tree

title
Remote page creation for confluence using jira script runner plugin.
Asked by Nagmani Nagmani:

import org.swift.common.soap.confluence.ConfluenceSoapServiceServiceLocator

def locator = new ConfluenceSoapServiceServiceLocator()

def service = locator.getConfluenceserviceV2(new URL("http://localhost:8090/confluence/rpc/soap-axis/confluenceservice-v1?))

def token = service.login("admin", "password")

def page = new RemotePage (

content: "groovy_working",

creator: "admin",

title: "groovy",

space: "groovy",

homePage: false,

created: Calendar.getInstance(),

modifier: "admin",

version: 1,

modified: Calendar.getInstance(),

)

service.storePage(token, page)

I am using the above code where I need to create automatic page in confluence for a project for any issue created under that project in JIRA.

I have downloaded groovyrunner plugin. and I could use the script runner plugin in my JIRA successfully . But whenever I am trying to run the above code I am getting result as "

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script3.groovy: 7: unable to resolve class RemotePage @ line 7, column 12. def page = new RemotePage ( \^ 1 error "....  
The URL above corresponds the one of the confluence on my local server


Answers:
author: JamieA
body: duplicate of [https://answers.atlassian.com/questions/31213/problem-creating-remote-pages-in-confluence-usin-jira-both-on-my-local-server](/questions/31213/problem-creating-remote-pages-in-confluence-usin-jira-both-on-my-local-server)


Tags: jira

page

scriptrunner
groovy macro startup error
Asked by Mike:

```
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:/var/opt/confluence321/script/temp/groovy/umoja_43681361_1327442504256.class (Not a directory)
```


Answers:
author: Bob Swift (personal)
body: You have a comflicting file in your home directory - see [SCRP-125](https://studio.plugins.atlassian.com/browse/SCRP-125)


Tags: groovy
Confluence 2.2.8
Asked by Milen Dimov:

Hi guys,

I've a Confluence environment, which I believe is

|------------------|-------|
| **Version**      | 2.2.8 |
| **Build Number** | 525   |

My question is how do I get admin access, given that I've full control of the DB and the web server?

I've tried to add a regular user to different groups in \[os_user_group\] or setting up the admin user with same password hash from regular user. None of these has worked. Restarting Tomcat and Apache also did not help. Any clues?


Answers:
author: David at David Simpson Apps
body: Try this: <http://confluence.atlassian.com/display/DOC/Restoring+Passwords+To+Recover+Admin+User+Rights>...or the version for your Confluence version.

comments: author: Milen Dimov
body: Have tried it and stillc annot login with admin/admin.


author: Milen Dimov
body: Thanks for all your suggestions on this. It seems that it is indeed using SSO integration with Jive Forums.


author: David at David Simpson Apps
body: I think you're on your own here. Jive forum integration? Sounds like fun ;-)


author: Milen Dimov
body: I've done that and no meaningful result was returned. As now I'm pretty sure that it is using Domain authentication, managed to find some LDAP settings in Jive database. Table '\[jiveProperty\]'.

Can you provide a link with howto modify the Jive forum -\> Confluense integration in order to achieve the AD authentication?


author: David at David Simpson Apps
body: Hmm. I'd start [grep](http://en.wikipedia.org/wiki/Grep)-ing the filesystem for your AD hostname/IP address at this point


author: Milen Dimov
body: Thanks, but this configuration file is all commented out. Just got \<osuser key="**osuserRepository** " name="**OSUser Repository** " /\>

Any other clues?


author: David at David Simpson Apps
body: Take a look at:  
http://confluence.atlassian.com/display/CONF25/Customising+atlassian-user.xml


author: Milen Dimov
body: Users are using their Windows domain user/passwords, so I'd imagine LDAP is being used

How do I determine it is the case for our environment? It might be a very novice question, but I am a very novice in Confluense with not much information about our install.


author: Colin Goudie
body: Is confluence using its own internal user management or delegating to an LDAP directory or Crowd etc.?? As that may be getting in the way
Can restrict view / edit on confluence page
Asked by lance_lyons:

We are trying to restrict view and edit on a confluence page. We get to the page restrictions page and start selecting users, etc. Everything is going well. Then when we hit save... it never returns. I wait for 10 minutes and still it hasnt returned. I have to press cancel and nothing has been saved in terms of restrictions.

Any ideas?


Answers:
author: Colin Goudie
body: Check if you have customised the layout of your wiki?

I remember having an issue similar to this and it prevented us changing permissions on the pages. Resetting to default layouts for a test removed the issue. Then we were able to narrow it down.

comments: author: lance_lyons
body: Thanks Colin, How did you reset to default layouts?


Tags: administration

permission
Confluence page margins/space between colums/panelboxes
Asked by Cornelius Engelhardt:

1. Is there a way to decrease the space between Panel Boxes which are situated nex to each other using Sections and Columns? I want them to be flush next to each other but there's a big gap between them and I'm trying to figure out how to decrease it.

2. Same question for left/right and top/bottom margins on the page. Any way to decrease the distances to the sides of the page? I feel that I'm wasting a lot of space on my page.

Here's a screenshot to visualize what I'm alking about:

<http://imgur.com/rSjrW>


Answers:
author: Kenric
body: seems the system ignore the percentage or px of the column width :(


author: Courtney Buras
body: I created two tables and have played around with the percentages considerably and still have the giant gap between them. I've put the percentages at both 100%, 70% and 30%, 50% and 50% - there's barely any change in the table sizes and no change in the size of the gap between. How was this a problem in 2012 and it's still not solved???


author: boardtc
body: Tested in Confluence 4.3. Having a calendar in each 50% column looks like there is a big gap between the 2 columns.

However, when I also add team calendars to the columns it becomes obvious that the burndown was not occupying all the space in the column and the gap between the columns is negible.


author: boardtc
body: This is a real issue. I have 2 columns, both set to 50% and the gap is nearly as big as the width of the columns themselves. (Confluence 4.2)


author: Matthew J. Horn
body: I did away with the column/section layout and used DIV and SPAN tags with CSS to define the layouts in Confluence. It was painful, and if the decorators change on an upgrade, I'll have trouble migrating my layouts to the next version, but it gives me far greater flexibility.

hth,

matt


Tags: column

merge

page

section

size