youngmon/atlassian-qna huggingface dataset:
Validation rule to check number entered is greater than zero.
Asked by Shakir Islam:

Hi Atlassians,

I new to creating ConfiForm pages and was wondering how I can apply a validation rules to restrict the numbers that can be entered into a field. For instance,

I have an Age field (fieldname = myAge) and I want to ensure values under 0 cannot be entered. I tried adding validation rules to the field, such as the following:

myAge:\>0

\[entry.myAge\]:\>0

Neither have produced the correct results. Whether I enter a negative or positive value, the 'Message to show when validation fails' is shown.

Thanks in advance.


Answers:
author: fbunting
body: I think you want **myAge:\<0** ... this triggers the validation message when that condition is met.

And to be clear, this does *not* go in the "Validation rules" parameter for the myAge field itself. That parameter only provides a very limited set of [validation rules](https://wiki.vertuna.com/display/CONFIFORMS/Automatic+validation+for+your+fields), and in this case can just verify that it is a number.

Instead, add a separate *Confiforms Rules for Field Definition* macro (I think formerly known as *Confiforms Field Definition Rules*), which lets you use the much more versatile [Filters](https://wiki.vertuna.com/display/CONFIFORMS/Automatic+validation+for+your+fields).

Configure the macro as follows:

* **Field name**: Leave blank (this triggers the validation on form submit)
* **Condition** : Set to **myAge:\<0**
* **Action to execute** : Set to **Validation rule**
* **Message to show when validation rule matches**: "My Age should be \>= 0" (or whatever)


author: Ismael Jimoh
body: Hi [@Shakir Islam](/t5/user/viewprofilepage/user-id/2880047)

I believe raising this directly with ConfiForm support would get you the most appropriate answer.

You can contact their support here: [https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows?hosting=server\&tab=support](https://marketplace.atlassian.com/apps/1211860/confiforms-data-forms-workflows?hosting=server&tab=support)

Regards.

comments: author: Ismael Jimoh
body: Going by this sample <https://wiki.vertuna.com/plugins/servlet/mobile?contentId=3670269#content/view/3670269> which I believe is what you were following I will use 2 fields with the startdate replacement field's value set to 1 and then the actual validation matching what is shown in the sample.

why 1? because you mentioned you font want zero included.

Why not enter the value directly?

I am not sure if it's expected to take values directly hence parsing value for comparison via a field as per the linked sample.


Tags: confiforms

confluence-server

new-to-confluence

server
Confluence front end to delivery framework
Asked by Craig rollason:

Hello,

i am administering a project development lifecycle library (similar to PRINCE2 which hows all the various documents and deliverables fit together, templates, training guides, worked examples.

People working on a project will need to refer to this process and deliverables. I like the idea of this being on confluence rather than sharepoint.

any other case studies on this? Or other insights.


Answers:
author: JP _AC Bielefeld Leader_
body: Hi,

is this public facing / anonymous access or an internal site only for project members / partners?

We have our project library (similar to PRINCE2) as a space in Confluence \& an example project template space which is copied if a project is in need for a own space. We manage smaller projects in a single space to keep the administration efforts down.

So you've got a valid use case \& I'm pretty sure many other companies are handling it in a similar way.

Best

JP

comments: author: Craig rollason
body: Thanks Jan. The framework could be used by internal folk and external suppliers and partners. But not public.

how have you tackled predefined work flows and approvals which have to be repeated for each project....have you build that into the template?
Trello Board on Confluence - Not Rendering
Asked by Jesse_Sprague:

Hello,

I have added the link to a Trello board into a macro on a confluence page (with no other macros) and it will not render. When checking my browser's console, I see the following error. (I will attache a screenshot as well)

```
storage.ts:5 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
```

I have signed in Trello, and have added the Confluence powerup to the Trello board just in case but the board still does not show up.

I have seen the bug regarding the interference with other macros but that does not seem to be the case here. Can anyone point me towards a solution?

Thank you,  
Jesse

![Screen Shot 2019-03-16 at 17.44.12.png](/t5/image/serverpage/image-id/48865iF1723837892808F6/image-size/large?v=v2&px=999 "Screen Shot 2019-03-16 at 17.44.12.png")


Answers:
author: Ismael Jimoh
body: Hi [@Jesse_Sprague](/t5/user/viewprofilepage/user-id/2549472)

To my eyes, it seems confluence is trying to open a file it has no access to.

By this, I don't mean the user you use to login but likely the user Confluence is started as. (Directory/File problem).


Tags: cloud

confluence-cloud

trello
HTTP Status 500 - Internal Server Error while setting up Confluence product evaluation
Asked by Vickie Ponder:

Hi there!

Does anyone out there know how to resolve this error?

I was able to install the product successfully but when the instance launched in the web browser, I get the following error:

HTTP Status 500 - Internal Server Error

Thanks,

Vickie


Answers:
author: Rafael Pinto Sperafico
body: Hi [@Vickie Ponder](/t5/user/viewprofilepage/user-id/2879455) ,

Internal Server Error could be caused by several things.

Could you please elaborate on your statement - "*I was able to install the product successfully but when the instance launched in the web browser*" ? When you say "I was able to install the product successfully" it means you were able to set up Confluence from the web (setting up database, adding license, setting up user administrator...) up until creating an Space and after that the Internal Server Error happened?

* If not, when the Internal Server Error happened?
* if so, have you restarted Confluence?

If you are accessing Confluence behind a proxy, could you please make sure the proxy is up and running? The same for the database Confluence is connected to. Not to mention external User Management (e.g LDAP if configured)

I would suggest you on:

* going through Confluence logs (e.g *\<confluence-install\>/logs/catalina.out, \<confluence-home\>/logs/atlassian-confluence.log*) looking for ERROR / FATAL entries so you can review what may have caused the Internal Server Error.
* restarting Confluence and watch its logs (e.g *\<confluence-install\>/logs/catalina.out*) for any ERROR entries as this would provide you with more information to the issue you are experiencing.

Hope the above helps,

Kind regards,  
Rafael


Tags: confluence-server

server
Render page resources (image,js,css,cdn) in Confluence HTML Macro but with limited scope
Asked by Stefan Mueller:

Hallo,  
I use the [HTML Macro](https://confluence.atlassian.com/doc/html-macro-38273085.html) to add some decent visualized object and JavaScript.  
As I added Bootstrap script files

      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>

what makes the standard Confluence buttons not usable.  
Any chance to limit the scope of the above-mentioned scripts to render only a dedicated section of my HTML?

I found [Limiting scope of JavaScript source](https://stackoverflow.com/questions/42217620/limiting-scope-of-javascript-source), could that be a solution?  
I haven't got it to work yet :( .


Answers:
author: Diego
body: Hello there! That is an interesting question, Stefan.

I went ahead and tested this on a local instance running Confluence 6.14.2. Initially, adding only the script lines Confluence does indeed show problems.

The page tree does not work and there are no Space Tools for example.

However, when I add the following after both scrip lines there are no more problems:

```
<script> altjquery = $.noConflict(true); </script>
```

So, in the end you did find the correct solution for this! The HTML Macro content looks like this on my side:

```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> 
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> 
<script> altjquery = $.noConflict(true); </script>
```

Looking forward to your reply Stefan! Let us know your findings.

comments: author: Stefan M?ller
body: hey thx for your answer, will test that :).  
I had the same discussion in a German forum and will add their code here but it isn't 100% clear for me yet but with your input, I'm optimistic to get all clarified and get it running!

stefan


author: Diego
body: Thanks for getting back Stefan!

Let us know if this works for you just like it worked for us. If you still have questions, come ask us!


Tags: atl-adm

confluence-server

html

javascript

macro

server
Where are Confluence Space exports stored on disk?
Asked by Michael Rooney:

Hello there! We are on Confluence 5.10 and would like to export our spaces to XML to import into a different, Confluence 6.x instance. We've already tested this successfully with small spaces, where we can download the export from the web UI from the "Space Tools \> Content Tools \> Export".

However for some of the larger spaces, we'd like to grab these files ourselves from the disk. Where are these stored? I looked through the Confluence Admin guide and couldn't find this mentioned and can't find it myself poking around. Thanks!


Answers:
author: Gonchik Tsymzhitov
body: Hi!  
\&nbsp;  
Please, check {confluence_home}/export directory?\&nbsp;


Tags: atlassian-support
tables on confluence page are they versioned when content changes with the page?
Asked by Carla Ann Rowland:

I have users who want input data changes into the confluence pages via the "static" table (not the live table macro). They want it this way instead of updating an attached excel file. I am concern about audit-ability. So are the changes save in an archive with versions when the page is resaved or lost?

* Did not use live table because it doesn't prevent overwrites if two users edit at same time.


Answers:
author: JP _AC Bielefeld Leader_
body: Yes, each change of a page (doesn't matter if it's a table inside a page) is versioned. One hint:

If concurrent editing is activated, changes of users on the same page at the same time are shown as a single version in the page history, but you can still track who made changes to this version.

Lost pages ( I assume you mean pages being deleted) are first put to a space trash (They can be recovered or purged by a space admin).

Best

JP


Tags: confluence-server

server
How to make JIRA ticket visible in Confluence with REST API
Asked by Orlando_Jurcone:

Hi,

I am creating a new Confluence Page in Python using REST API.

The code looks something like this:

url = "<https://newconfluence.company.org/rest/api/content>"  
data = {"type":"page", "ancestors":\[{"type":"display", "id":2687111}\], "title":"Test", "space":{"key":"WE"},"body":{"storage":{"value":source,"representation":  
"storage"}}}  
headers = {'Content-Type':'application/json'}

r = requests.post(url, data=json.dumps(data), headers=headers, auth=('user', 'password'))

where "source" is a file with the html code.

I tried different html code in source file to make Jira tickets look nicer in the new created Confluence page, but some things are not loading properly.

Below are some examples of html code for Jira ticket:

Example 1 (in this case I get only the text inside \<p\> in Confluence, but the Jira link doesn't appear)

\<p\>  
<https://newjira.company.org/browse/WEL-17779>  
\</p\>

Example 2 (for this case, I took with copy+paste the html code generated by Confluence when the same thing is created manually. Again the link to Jira is not visible in Confluence)

\<div class="content-wrapper"\>  
\<p\>  
\<span class="jira-issue conf-macro output-block" data-client-id="SINGLE_9e98b881-494d-3ae4-bac8-efcab923ca19_28770699_8a79831767658b27016813d1d7ed0006" data-hasbody="false" data-jira-key= " WEL-17779" data-macro-name="jira"\>  
\<a href="<https://newjira.company.org/browse/WEL-17779>" class="jira-issue-key"\>\<span class="aui-icon aui-icon-wait issue-placeholder"\> \</span\>WEL-17779\</a\>  
-  
\<span class="summary"\>Getting issue details...\</span\>  
\<span class="aui-lozenge aui-lozenge-subtle aui-lozenge-default issue-placeholder"\>STATUS\</span\>  
\</span\>  
\</p\>  
\</div\>

This is how Jira ticket looks in Confluence for Example 2(link with Jira is not done)

![Jira.PNG](/t5/image/serverpage/image-id/48835i512AC56A435CACD9/image-size/large?v=v2&px=999 "Jira.PNG")

when it should look like this:

![image.png](/t5/image/serverpage/image-id/48836i11EE7531FC3D8681/image-size/large?v=v2&px=999 "image.png")

Is there a way to make the link between Jira and Confluence using REST API?

Can someone please help me with this?

Thanks in advance!


Answers:
author: Orlando_Jurcone
body: I found the answer. So I need to have "Jira Issue/Filter" Macro imported.

Below is the html code used:

\<ac:structured-macro ac:name='jira'\>  
\<ac:parameter ac:name='columns'\>key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution\</ac:parameter\>  
\<ac:parameter ac:name='key'\>WEL-17779\</ac:parameter\> \</ac:structured-macro\>


Tags: jira
Exporting MediaWiki to Confluence
Asked by Larry nagl:

I've just had a MediaWiki admin ask if they can import their MediaWiki site into our Confluence instance. Has anyone done this recently or investigated this process? Most of the hits from my google search are 3 or more years old.

Thanks for any thoughts


Answers:
author: Maarten Cautreels
body: Hi Larry,

I've found a couple of threads that include answers to your questions:

* [how do I import content from another wiki into confluence?](https://community.atlassian.com/t5/Confluence-questions/how-do-I-import-content-from-another-wiki-into-confluence/qaq-p/10378)
* [Hi, any latest documents for migrating media wiki to Confluence wiki?](https://community.atlassian.com/t5/Confluence-questions/how-do-I-import-content-from-another-wiki-into-confluence/qaq-p/10378)

I've also found this page/space about the Universal Wiki Converter. As far as I read on the other threads the UWC is deprecated and was never officially supported but you can obviously give it a try. (Free tip: try it on a staging environment)

[Universal Wiki Converter Documentation](https://migrations.atlassian.net/wiki/spaces/UWC/overview?mode=global)

Hope this helps,

Maarten


author: Vinish Nair
body: I understand it's an old thread however just to let you know we have built an home grown automation to perform mediawiki to confluence migration. Please reach out to me on vinish.nair@xoriant.com for further details


Tags: confluence-server

server
When I paste a Word or Publisher document into Confluence why does the font color change to black?
Asked by Dawnn Burrell:

My document's font color is blue. When I pasted them in Confluence it turns to black. The blue that I use isn't a option in confluence, so I have to use the closest blue option in Confluence.


Answers:
author: Bill Bailey
body: So you are saying that this range of font colors is not enough?

![Screenshot_2019-03-16 Twst PAGE TWO - test - MarketCom Testing Wiki.png](https://community.atlassian.com/t5/image/serverpage/image-id/48859iF29B6496F0044550/image-size/large?v=v2&px=999 "Screenshot_2019-03-16 Twst PAGE TWO - test - MarketCom Testing Wiki.png")

If you want to reset the default font color for the entire space, you can modify the CSS file:

[styling-confluence-with-css.](https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html)

If you want to change it at the page level or local text only, then you probably need to use a user macro to wrap the text with a class name you can then write a CSS rule for (or include inline CSS).

comments: author: Dawnn Burrell
body: I used one of the above colors that was closest to the color we use.

Thanks for the information regarding CSS and all of your help.
Integrate plantuml-server with Confluence
Asked by andrew.pike:

Hi,

We have our own internal plantuml-server instance.

<https://github.com/plantuml/plantuml-server>

Is it possible to point our Confluence instance to our plantuml-server?

Thanks,

Andy


Answers:
author: Shannon S
body: Andrew,

There's an add-on for this, have you had a look at it?

* [PlantUML for Confluence](https://marketplace.atlassian.com/apps/41025/plantuml-for-confluence?hosting=server&tab=overview)

I haven't personally used it myself, but it appears to have good reviews, so it would be worth having a look at.

Regards,

Shannon


Tags: atlassian-marketplace

confluence-server

server
How do I stop getting emails from Confluence?
Asked by Julie Acker:

I get numerous emails about confluence codes system changes that do not apply to me. I do not want to receive them.


Answers:
author: Thomas Bowskill
body: Hi [@Julie Acker](/t5/user/viewprofilepage/user-id/2876271)

If you look in the Top Right of Confluence, there should be a user icon -- if you click that you should get a drop-down menu with "**Watches**" as one of the options. That lists all the pages that you are subscribed to see updates on -- if this is the cause then you can simply remove yourself as a watcher on the pages / spaces that you don't want to see.

Or it is your email settings, which [you can update with these steps](https://confluence.atlassian.com/doc/email-notifications-145162.html)

Otherwise as [@JP _AC Bielefeld Leader_](/t5/user/viewprofilepage/user-id/1135065) mentioned: your Admin should be contacted as they might have set something up. Worth double checking the emails are directly to do, and not something like an email distribution list


author: JP _AC Bielefeld Leader_
body: Hi,

are you an administrator? If not, I would ask you administrator to switch this off. If you're an admin that might be related to your mail address used as an admin contact somewhere.

Are you using Confluence Server or Cloud?

You might also want to check your user profile email settings. You can switch off most emails there.

Best

JP
In Confluence, how do you get all pages on new Cloud configuration?
Asked by Lindsay Rall:

Right now, half of my pages seem to be using the new cloud layout and half are not. I would like to create a global template with the new cloud configuration/settings but that doesn't seem to be an option. Any new *pages* I create in my Confluence space are in this new format, new *templates* are not. Example of global template I just created:

![Screen Shot 2019-03-15 at 11.12.22 AM.png](/t5/image/serverpage/image-id/48807iD38843DD46B08BCC/image-size/large?v=v2&px=999 "Screen Shot 2019-03-15 at 11.12.22 AM.png")


Answers:
author: Shannon S
body: Hi Lindsay,

Can you reach out to the [Cloud Support Team](http://support.atlassian.com/contact#)? They can have a look at your instance and help get you onto the new editor.

We're slowly rolling it out right now which is why you only see it in certain parts, but if I am not mistaken, they have a way to push it out to other areas of your instance.

Regards,

Shannon


Tags: confluence-cloud

template
In mobile view on a mobile device no pages can be added. Why? How to solve that?
Asked by Stefan Baader:

We are planning to implement a new instance of Confluence available in the WWW. One of the requirements is that users can contribute using mobile devices (tablets, smarthones). Currently I am trying several mobile themes including the default "Confluence Mobile Web Plugin" of Confluence.

We recognize that - even the permissions for the logged in user are set - no pages can be created.


Answers:
author: Shannon S
body: Stefan,

There are two ways to browse Confluence from a mobile device. From the mobile app, or from the mobile web version.

It is indeed not possible to create pages via the web version. See [Using Confluence via your mobile browser](https://confluence.atlassian.com/doc/using-confluence-via-your-mobile-browser-947169262.html).
> On your supported mobile device, you can:
>
> * View the Confluence dashboard, pages, blog posts, and user profiles.
> * Add or reply to a comment on a page or blog post.
> * Like a page, blog post or comment.
> * Watch a page or blog post.
> * See your notifications and tasks.
>
> You can't add or edit pages or blog posts, or edit existing comments, using the mobile interface.

It's possible to switch to the desktop version on your mobile device, but this can cause issues when using the editor since it's meant to be supported mostly on a computer, and you'll find some features don't work as well.

* [Request Desktop Version from an Android Device](https://www.techbout.com/request-desktop-version-website-android-phone-17720/)
* [Request Desktop Version from an Apple Device](https://www.imore.com/how-request-desktop-version-website-your-iphone-or-ipad)

In the mobile app, however, you can create pages, but there are some factors you need to consider. Have a look at the following articles for further details:

* [Confluence Mobile](https://confluence.atlassian.com/doc/confluence-mobile-284365706.html)
* [Using the Confluence Server Mobile App](https://confluence.atlassian.com/doc/using-the-confluence-server-mobile-app-947169252.html)

Let me know if you have any questions!

Regards,

Shannon


Tags: confluence-server

server