youngmon/atlassian-qna huggingface dataset:
Macro default values not being passed
Asked by Stuart Bennett:

It appears that when using the user macro browser, default parameter values are not being passed to the user macro.

For example, when using the following:

## @param locations:title=Locations\|type=string\|required=false\|default=all\|desc=The locations to report on.

If the parameter value is left as the default all by the user, an empty/null value is passed to the user macro instead of the expected all.


Answers:
author: CharlesH
body: This is an issue in Confluence 4.2 as well.

As a workaround, you can check each parameter for a null value using Velocity, and in that case apply your chosen defaults. From an end-user perspective things work as they should like this.

Example:

```
##Check default values (bug in Confluence - https://jira.atlassian.com/browse/CONF-23704)#if(!$paramoddcolor)#set($paramoddcolor = "ffffff")#end#if(!$paramevencolor)#set($paramevencolor = "ededed")#end
```

comments: author: childnode
body: still in 5.2 :(


author: Andrew Frayling
body: Hi Stuart,

I think you're hitting this reported bug <https://jira.atlassian.com/browse/CONF-23704>

I'm seeing the same behaviour as well, but have observed that if the value a user provides is the same as the default value then the value is not passed to the macro. If the user provides anything that is different to the default value then the user provided value is passed to the macro.


author: Stuart Bennett
body: Just to add to this, an example of a macro that shows this problem is:

```
## @param myname:title=myname|type=string|desc=descy|required=true|default=MY DEFAULT VALUE  &lt;div id="$parammyname"&gt;  $parammyname  &lt;/div&gt;
```


author: Stuart Bennett
body: **Atlassian didn't understand my problem here, so this may help to explain it:**

<br />

The problem occurs when creating and using a User Macro. At the top of the macro code I define a parameter in the following way:  

## @param locations:title=Locations\|type=string\|required=false\|default=all\|desc=The locations to report on.  

The User Macro browser then understands that this particular macro can accept a parameter called "locations". As I have set a default value of "all" in the line shown above, the User Macro browser shows that "all" value by default in the field for that parameter. The problem occurs at this point if the user decides to go with the default value of "all" for this parameter. I am finding that in that case, the "location" parameter's default value of "all" is not being passed to the User Macro code. The value of the "location" parameter is only passed to the User Macro code if the user decides not to use the default value and gives their own value instead.  

If predefined default values are not being sent to the User Macro code then what is the purpose of setting them?  

Thanks


Tags: custom-field

default

parameter

user-macro
3.5 vs 4.0 Links to LAN locations
Asked by simon roberts:

Hi

Confluence 3.5 i used to enter

+\[Question Tracker\|\\\\van.com\\root\\IS_Documents\\Business Analysis\\Business Requirements\\Question Tracker\\Question Tracker POS_net.xls\]

And it linked directly to a document on our local server/folders.

in 4.0 it does not work.

Any ideas why?

Thanks


Answers:
author: Christoph Giess
body: The new editor does not understand all of the old Wiki markup. To create such a link you have to do the following:

1. Type \[  
2. Choose "Insert Web Link"  
3. Enter "\\\\van.com\\root\\IS_Documents\\Business Analysis\\Business Requirements\\Question Tracker\\Question Tracker POS_net.xls" in field Address  
4. Enter "Question Tracker" in field Link Text

It could be possible that you have to enter the address as "file:///van.com/root/.../Question Tracker POS_net.xls". Have also a look at <http://confluence.atlassian.com/display/JIRA/Linking+to+local+file+under+Firefox>

comments: author: simon roberts
body: Thanks. I did this exactly per above, but it does not create a link, just displays the name, cannot click on it. Any ideas?

Thanks
tooltip on images with link on confluence 4 - Documentation Theme
Asked by Fabian Lopez:

I am not able to find the tooltip functionality when I add a link to an image **\[!image.png! \| linkhere \| tooltip \]**, when I hover it shows the name of the file ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad") instead of the text indicated as tooltip

How can the tooltip be added to the image that acts as a link?

I found this today :(

*[Sherif Mansour \[Atlassian\]](https://jira.atlassian.com/secure/ViewProfile.jspa?name=smansour) added a comment - 02/Aug/10 2:01 AM*

<https://jira.atlassian.com/browse/CONF-18668>

<br />

Hi All,  
We have had a lot of discussions about tooltips for links over the last couple of weeks. Upon speaking to some of our customers it appears the main use case this is used for is to display additional link information. An example would be for an abbreviation: A user could hover over an abbreviation link and get a description of what the abbreviation was. A large majority of our customers don't use this feature at all.

<br />

With this in mind, we don't believe this is the right solution for what most users are after. Users are after a similar solution to the [PopView Tooltip Plugin](http://www.appfusions.com/display/DIST/PopView+Tooltip+Plugin). We recommend users try this plugin, or consider raising new feature request for a similar macro.

<br />


Answers:
author: Fabian Lopez
body: I got a workaround from Bill Arconati today and it works fine.

I have to insert the image using wiki markup as follow (insert -\> wikimarkup)

!picture.png\|title=text for tooltip!

so the link will looks like

\[!picture.png\|title=text for tooltip!\|link url\]

that solve the issue and when we have mouse hover the "text for tooltip" is shown instead of the picture name.

Thanks!


author: Fabian Lopez
body: CONF-24161 <https://jira.atlassian.com/browse/CONF-24161>

I created an issue as bug in Atlassian Confluence to attach a screenshot
Confluence 4 - CSS not included on all themes?
Asked by Dan Hawke:

I've just completed the upgrade to 4.0.5, and have discovered that non-standard themes no longer get the global CSS changes.

Here is a page using the default look and feel:

However, here is a page from an Easy Reader theme:

It isn't including custom.css, therefore our site-wide customization is not being included. This is affecting several of our spaces, causing display issues. How do we get custom.css to include in the Easy Reader theme, or is there somewhere I can replicate the global CSS changes into Easy Reader?


Answers:
author: David at David Simpson Apps
body: Host your custom CSS elsewhere and add a link to it using Confluence Admin \| Custom HTML \| At the End of the HEAD.


author: Bruna Griebeler
body: Reagrding EasyReader, since it's not the default theme, we suggest you applying the CSS at the space levels for all spaces that use the Easy Reader.

Cheers!


Tags: css

easy-reader-theme
Confluence as an Inventory System
Asked by Alison Kendrick:

This may seem pretty vague, but I have been asked to convert an inventory written in an Excel spreadsheet to Confluence and I need some ideas on how to do this. It needs the ability to manage and update the inventory, and also needs to include a search option. Is there any way to import a Microsoft Access database into Confluence?

Again, I know this is vague, but any ideas would be much appreciated.


Answers:
author: Nicolas POUYMONBRAT
body: Hi,

I'd like to come back to your suggestion, Niels, about integrating an inventory list in Jira. We're looking for an option for doing just that, but it seems that the appropriate plugin, Warehouse AutoMate, isn't supported for newer version for Jira anymore, so we'll have to think of some round-about way of doing it (developing our own plugin isn't an option since we don't have resources for that).

How would you suggest creating an inventory list in Jira, which would be linkable to issues and to the salesforce plugin?

Thanks,

Natalia

comments: author: Nic Brough -Adaptavist-
body: I've done some simple stuff similar to inventory management in Jira.

Essentially, each "asset" was created as an issue in a project. We had different issue types, leading to different fields. For example, the "server" issue type would have fields like memory, cpus, host name, and "disk array" would have disk-types, number of disks, and so on. There were common fields like serial number and business owner

They set up some simple workflows for them, like requisitioned -\> under installation -\> installed -\> actively running -\> planned decommission -\> decommissioned. Links were immensely useful to draw up relationships between them, and Jira is very searchable if you're careful with fields.


author: Alison Kendrick
body: Unfortunately, JIRA is not an option. It has to be Confluence. I need an idea for how to search and manage hardware requirements and how to update/add to/ search.


author: NielsJ
body: Hi Luxanais,

I would say that Confluence is pretty inadequate for that purpose. What about using JIRA? There you can filter adjustable, sortable lists what seems to be an important feature for an inventory system for me, isn't it?

Regards,  
Niels


Tags: asset-management
Possible to view page as XML?
Asked by Aaron Cohen:

Is there a way to view a page in confluence as XML by passing a url parameter or the like? I am not interested in exporting as XML to an archive, I just want to be able to view the page in XML live from the server.

I could of course write a script that gets the page content and create xml out of that, but would rather not.


Answers:
author: Remo Siegwart
body: You could use the [REST API](http://docs.atlassian.com/atlassian-confluence/REST/latest/) for that. To get a single page as XML use the following URL: <http://path.to.your.confluence/rest/prototype/1/content/12345> (replace **12345** with the id of the page)

Hope this helps

comments: author: Aaron Cohen
body: yes that's wonderful. Thanks.


author: Robert Lauriston
body: The Tools \> View Storage Format command does that.


author: Robert Lauriston
body: The Tools \> View Storage Format command does that.


Tags: cloud

confluence-cloud
Is the onDemand version old?
Asked by RobWilson:

Hi,

I am working through a trial of Jira + Grasshopper, it would seem that onDemand is currently at version 4.4.1 (<http://confluence.atlassian.com/display/AOD/Atlassian+OnDemand+Application+Versions>), yet the documentation hints that a much higher version of 5.8 is available (<http://confluence.atlassian.com/display/GH044/Using+Task+Board+Modes+to+View+Issues>).

It seems that some options I am looking for are missing and I suspect that I need to keep to the older version 4.4.1 set of documentation?

Is there a list to highlight what's I'm missing between 4.4.1 --\> 5.8 and when is onDemand going to be brought up-to-date?

Regards,

Rob.


Answers:
author: NikE
body: You are correct - the newest versions of the applications are not yet running in OnDemand. The full list of application versions is: <https://confluence.atlassian.com/display/AOD/Atlassian+OnDemand+Application+Versions>

The notes for the new version of JIRA (5.x) are here (but may change when it comes out of beta):

<https://confluence.atlassian.com/display/JIRA/JIRA+5.0+Beta+3+Release+Notes>

and when you say version 5.8 - I'm guessing you are taking about Greenhopper which will be upgraded from 5.7.4 to 5.8. The release notes for Greenhopper 5.8 are here:

<https://confluence.atlassian.com/display/GH/GreenHopper+5.8+Release+Notes>

I will check to make sure we start sending out the correct links and when using our documentation (via email/Google search/etc.) always check to make sure the version listed at the top is the one you are using. If it isn't, there will be a link in the yellow banner, or you can select the version on the left hand side and then search for the same doc name. Also we are working on putting a notice on pages when they do not apply to the OnDemand version of the service to further clarify the docs.

Finally, we do not have a date or window for when OnDemand will be updated to JIRA 5 (or any other version updates) but the process is seamless and no action is required on your part.


author: RobWilson
body: I can now see that v5+ is RC / Beta, so this explains why perhaps onDemand is 4.x.

However, when all the emails sent through from Atlassian take you to the latest documentation, even though the onDemand is on the previous major version, it adds to confusion.

How long before onDemand is on the 5+ branch, will it be a seemless transition as it's hosted (I don't want to worry about the hasstle of upgrading/patching etc).

Thanks,

Rob.


Tags: cloud

jira-software

jira-software-cloud
I can't nest versions as detailed in the documentation
Asked by RobWilson:

Hi,

I have signed up for a Jira + Grasshopper trial (on demand), one of the things I want to do is to work in a Scrum way. The first thing I'd like to do is create a few 'versions' and nest them, (i.e. version 1 with sub-sprints). However, I do not see the 'configure' link from under the agile 'tools' menu as detailed in the documentation <http://quickstart.atlassian.com/ondemand/jira/get-started/agile-planning/set-up> (under the heading 'Setup the planning board').

If I go directly to the versions screen (via projects, \<click project\>, versions), then I can add / re-order versions but can't nest them).

The project has been enabled for Scrum support.

Regards,

Rob.


Answers:
author: Wojciech Seliga
body: Have you read <http://confluence.atlassian.com/display/GH/Setting+Up+a+Version+Hierarchy> ? Versions tab in Project Configuration screen allow you to manage just a flat structure. From GreenHopper Planning Board you can manage the hierarchy by clicking on Parent field in Version box and setting it to your parent version.

comments: author: RobWilson
body: Hi,

Thank you for your reply, whilst in the Greenhopper planning mode (version view), I can see my three versions listed, all have Parent: None, but when I move my mouse over I do not get the pencil/modify icon. I am an administrator, so it shouldn't be anything to do with permissions.

Any thoughts what I might be missing?

Thanks,

Rob.


author: Wojciech Seliga
body: Please make sure that you have project adminstrator permissions too. Being global JIRA admin does not mean you have this right.

Just check first which permission scheme your project uses, note who (groups, project roles) has the permission to administer project and then make sure to add yourself to appropriate project role or user group.

That should help.


author: RobWilson
body: Hi Wojciech,

Thank you, that now works. It's not immediately obvious that an 'administrator' doesn't have all the permissions required, it is possible that I missed a step somewhere, but I do not recall reading anything related to GreenHopper that made it explitly clear to do that step.

Thanks again!

Rob.

(I'd like to add your comment as the 'correct answer', but unfortunately I can only do it on the original response).


author: RobWilson
body: I have since found this link <http://confluence.atlassian.com/display/GH044/Setting+Up+a+Version+Hierarchy,> but unfortunately I can't see the 'Master' field, so I still can't create the hiearchy :-(


author: RobWilson
body: (Although I did set the project template as 'scrum', each time I go back to look at the settings they have reverted back to 'default' - this I will raise as a separate question, but I wanted to clarify that the project is using the 'default' template; just in case this affects what I am seeing?).


Tags: cloud

jira-software

jira-software-cloud
Is it possible to hide the "Page History" for all pages of one Space in general?
Asked by Bodo Br?ckner:

Is it possible to hide the page history for all pages of one Space in general?

I know how to hide Pages by defining restrictions for pages and subpages.

Do I have to define restrictions for the history of each and every page or can I just disable the page history function for a complete Confluence Space?


Answers:
author: NielsJ
body: Hi Bodo,

I am not aware of any feature regarding a possibility to hide or deactivate page histories. This is an important feature of a wiki in general ;-)

For some customers we already developed plugins that remove single versions from the history. In general it is possible to write a plugin that deactivats the page history or hides it from unprivileged users. With Confluence features you could only apply a page restriction.

Another possibility is to deactivate the specific URL pattern on your webserver or via a Servlet plugin module.

Regards,  
Niels


author: Puj?n Z
body: Dissapointing that this is not possible, especially on the Cloud version where you want anonymous users to see your pages, but don't want them to view the whole history.

comments: author: Pablo Cholaky
body: Fully agree on this.


author: Deividi Luvison
body: Hey Bodo,

I came across your post due a similar request on a support case, due to that I raised feature request [CONF-34041](https://jira.atlassian.com/browse/CONF-34041).

So in case you are still interested in this make sure to vote for the feature and add your thoughts in there to increase it's relevance.

Thanks and Regards,  
David\|Atlassian Support


author: david_parry
body: Or if you really don't care just delete the version history. Did this for a Q\&A test we setup where users had put the answers in with the questions (obv appears in the page history). of course you end up with no change history available at all.


author: R Donato
body: Here is a link to the article on hiding Page History from Anonymous users: <https://confluence.atlassian.com/x/TwjoEg>.

As of 5.6.1, this code still works.


Tags: hide

page-history
Drag and drop and Tasklists Stopped Working
Asked by David Arlow:

The drag and drop facility and tasklist features have stopped working on my Confluence instance.

As the System Administrator I've not disabled or changed any settings to to prompt the above changes.

Would anyone know what may have prompted these features from working and if so, is there a solution?

Confluence Version: 3.5.2


Answers:
author: Mark Hrynczak
body: If you are using Firefox, and you have recently updated to v7 or v8, then that would explain the drag and drop problem. See <https://jira.atlassian.com/browse/CONF-23360.> This should be fixed in an upcoming release.

I'm not sure what's happening with the Tasklist - it works fine on <http://confluence.atlassian.com>, however I found a bug report which sounds similar to your problem: <https://jira.atlassian.com/browse/CONF-24051>. If you can provide any further details, please add them to that issue.

Cheers,  
Mark
Connected through Cisco SSL VPN to our internal Confluence Wiki it is not possible to edit content.
Asked by Sascha Eisenbl?tter:

When i logon to confluence through ssl vpn tunnel i am able to create a new page with title. But i cannot create a body text content. When i am hitting "s" key a pop up is coming which asks which content i am working on.

The ssl portal is Cisco ASA based so it seems like i have to configure port mapping, opening a port - something else, but i cannot find any hints for this.

What is the action expecting? Which funcionality is recommended for <http://xxx.xxx.xxx.xxx:8090/pages/editpage.action?pageId=xxxxxxxx> ?

Is there a javascript function, a special placeholder???

The active link through SSL VPN looks like (for loginpage)<https://xxx.xxx.xxx.xxx/+CSCO+c0756767633A2F2F31302E39352E32342E3133313A38303930++/login.action?os_destination=%2Fhomepage.action>

In our LAN the system is working well.

Please support me.


Answers:
author: Dennis Kromhout van der Meer
body: To fix this you probably have to edit the [Confluence Base URL](http://confluence.atlassian.com/display/DOC/Configuring+the+Server+Base+URL)to reflect your SSL address. If that doesn't fix it, please review the following documentation: [Set the URL for redirection](http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy#UsingApachewithmodproxy-SettheURLforredirection).  
I know this page specifically mentions Apache, but this piece of configuration is the same for most SSL environments. Be sure to add **proxyName="www.example.com"** ,**proxyPort="80"** and **scheme="https"** to the Connector.

Good luck!


author: Nader William
body: we are having the same issue, but using Algo VPN, none of the atlassian.net pages are loading while behind VPN, all other URL are working and resolving just fine


author: Jeff Little
body: I know this is an old post... but is anyone else in this situation?


author: Randall Fisher
body: I'm having this issue with Jira as well, specifically the Agile boards in Jira Agile. Did you find a solution?


author: greganth
body: To fix this you probably have to edit the [Confluence Base URL](http://confluence.atlassian.com/display/DOC/Configuring+the+Server+Base+URL)to reflect your SSL address. If that doesn't fix it, please review the following documentation: [Set the URL for redirection](http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy#UsingApachewithmodproxy-SettheURLforredirection).  
I know this page specifically mentions Apache, but this piece of configuration is the same for most SSL environments. Be sure to add **proxyName="www.example.com"** ,**proxyPort="80"** and **scheme="https"** to the Connector.

Good luck!


Tags: content

edit

ssl

vpn
Force registration to use an e-mail address as a username
Asked by Bartosz Czerwi?ski:

Hi all,

Is there any way to use user provided e-mail address as a username in the registration process?


Answers:
author: Sherif Mansour
body: No there isn't. This sounds like a new feature request. There is, however, lots of very closly related feature requests:

\* <https://jira.atlassian.com/browse/CONF-663>

\* <https://jira.atlassian.com/browse/CONF-4591>


author: Bartosz Czerwi?ski
body: Thank you for your response. Provided issues are somehow related to my problem, however, I think this should be a new feature request.


Tags: crowd

jira
Can I set the __ATLASSIAN_BASE_URL__ variable ? If so, how can I configure it?
Asked by enrique Kim:

I configured the context path of JIRA \& Confluence.

But the Gadget's URL did not include that context path.

So when I add the Confluence Gadget to JIRA's Dashboard, the error occurred.

All of the Gadget's URL is set by the variable __ATLASSIAN_BASE_URL__ .

Can I changet or set this variable or not ?

If it is possible, How can I do it?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Change the Base URL of JIRA to include the context path. It is under Administration \> General Configuration

<http://confluence.atlassian.com/display/JIRA/Configuring+JIRA+Options>


Tags: base-url

configuration

jira
Auto expand the Navigation Panel menu
Asked by Dan Moran:

I was able to automatically expand the Navigation Panel menu for a Space by selecting Browse / Space Admin / Themes / Configuration theme, and then entering the following code in the Navigation window: \>{pagetree:startDepth=2}

This worked very well except for one thing: my Navigation panel Search window (and the Search button itself) no longer display.

Can I auto-expand the menu and retain the Search field and button?


Answers:
author: Remo Siegwart
body: Yes, you should be able to display the search box by just setting the parameter **searchBox** to **true**:

```
{pagetree:startDepth=2|searchBox=true}
```

Learn more about the parameters of the pagetree macro [here](http://confluence.atlassian.com/display/CONF35/Pagetree+Macro).

Hope this helps

comments: author: Dan Moran
body: Hi Remo,

Thanks! That works perfect.

With your help, I'm getting the doc wiki in shape.

And with your advice, hopefully I'll get to the point where I can figure more of this out on my own.

Dan