youngmon/atlassian-qna huggingface dataset:
Toggle 'Required' field tag based on ConfiForm Rules for Field Definition
Asked by Tanmay Gadkari:

So I have a pretty large form with several fields and this form integrates perfectly with JIRA, sends out emails etc.

A recent requirement needed me to add a new field (Field A) which would be made visible only if a particular value (e.g. Value 1) was selected in the previous dropdown field (Field B).

Field A is a checkbox field and I marked it as 'Required'.

It does not show up if Value 2 and Value 3 is selected in Field B or if Field B is left blank. If I select Value 1 in Field B, Field A shows up correctly as expected.

The problem I'm facing is this - since I marked it as a 'Required' field, I get a form error when I populate Field B with Value 2 or 3 or leave it blank. This is because Field A won't show up in these scenarios and obviously won't be checked/unchecked.

Is there another validation or rule that I can apply on this field to ensure that it doesn't give me a form error in case I select Value 2 or 3 in Field B?


Answers:
author: Alex Medved _ConfiForms_
body: Have not seen the original question earlier, sorry about that.

But the problem is that hiding the field doe snot make it not required if you set it as required in the ConfiForms Field Definition macro settings

So it must have a value.. or it should **NOT** be set as required in the configuration

Alex


author: Tariq Khatri
body: Did you get an answer to this Tanmay

comments: author: Tanmay Gadkari
body: It seems the field should be set to not being a mandatory field. There doesn't seem to be a workaround as Alex pointed out above. Sorry for the extremely late response here. Just getting to a bunch of older posts.


Tags: confiforms

confluence-server

rule

server
can't use contentPropertyManager anymore in user macro since 7.0.3
Asked by Hauke H?rhold:

Hi,

I can't use contentPropertyManager anymore in user macros since i updated Confluence to 7.0.3.

Why?

I'm accessing contentPropertyManager like this:

```
#set ($containerManagerClass=$content.class.forName('com.atlassian.spring.container.ContainerManager'))
#set ($getInstanceMethod=$containerManagerClass.getDeclaredMethod('getInstance',null))
#set ($containerManager=$getInstanceMethod.invoke(null,null))
#set ($containerContext=$containerManager.containerContext)
#set ($contentPropertyManager=$containerContext.getComponent('contentPropertyManager'))

$contentPropertyManager.setStringProperty($content, "myProperty", "Stuff")
```

what i get is the plain line of code "$contentPropertyManager.setStringProperty($content, "myProperty", "Stuff")" as a string... in earlier versions it rendered the contentPropertyManager value i was asking for...


Answers:
author: Hauke H?rhold
body: if someone have the same issue, you should use ContentProperties now. See <https://community.developer.atlassian.com/t/cant-use-contentpropertymanager-anymore-in-user-macro-since-7-0-3/32956/3>

comments: author: Dominic Lagger
body: Thanks a lot! It helped me!


Tags: confluence-server

server
How can I set an own space home page on cloud deployment?
Asked by fortuneNext:

So I just created a space for a fresh Confluence Cloud deployment. It had a default page I didn't like, so I deleted it and created an own page I want to be the space home page.

When I navigate to the space, it says something like 'Awww, missing space home page. Set it up now!' but when I click the button, it says I don't have permission.

I can't find another way to set the space home page - all guides apparently are written for server deployment using space tools which I can't find at the cloud deployment.

Greetings!


Answers:
author: Diego
body: Hey, thanks for sharing with the Community, [@fortuneNext](/t5/user/viewprofilepage/user-id/1958983) !

I have never experienced this situation before. With this in mind, I would like to understand a little bit more about your situation. So, may I ask you some questions?

Here they are:
> 1. *Are you still able to create new spaces?*
> 2. *Are there other spaces within your instance?*
> 3. *Are you able to create a new user as admin?*
> 4. *Is the recently created user able to add a space home?*

Further, would you mind ++*sharing a screenshot of your affected space settings page*++ ? We wanted to look at ++*who is listed as the creator in the **Created by** field*++ . Just be sure to ++*censor sensitive information*++ that the screenshot might contain! The community is open and everyone can see everything here.

Let us hear from you! Looking forward to your reply.

comments: author: fortuneNext
body: Hi,

1. I am able to create new spaces!

2. There are no other spaces within my instance!

3./4. Im not sure on how to do that without an email invite?

![Unbenannt.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/71220i97DA1AFAABA3BDF3/image-size/large?v=v2&px=999 "Unbenannt.PNG")

As it is my full name, the CREATED BY field seems sensitive information; anyhow, it's me (altough it shows my full name instead of username "fortuneNext")!

Greetings

Tim


author: Stephen Sifers
body: Hello Tim,

Thanks for reporting this issue and providing detailed steps as to what you've done which resulted in the issue. The issue looks to be similar to a Cloud free bug which is preventing users (Admins) of a newly created space from being able to administer said space. Further information on this bug may be found at [CONFCLOUD-68319](https://jira.atlassian.com/browse/CONFCLOUD-68319). We ask you to please vote and watch this bug to receive updates on its status.

Thanks again for reporting this issue within Community!

Regards,  
Stephen Sifers


Tags: new-to-confluence
Retrieve last modified date information of a page
Asked by Lakshmi Priya:

Hi,

I am looking for a REST API that would return last modified date of a page. Input to the API will be page URL.

I got this information

http://confluenceurl/rest/api/content/search?cql=lastModified\>=now("-1d")

but this is listing all page details, not the last modified date

Regards,

Lakshmi


Answers:
author: Pavel Potcheptsov
body: It looks like you've chosen wrong way to get what you need.

From the documentation LastModified is for
> Search for content that was last modified on, before, or after a particular date (or date range).

But you need to get specified property of page.

I expect that you need to query for page content and filter output to get UpdatedDate field.


Tags: cloud

confluence-cloud
What are the Namespaces for Labels for in Confluence?
Asked by Lukas Gotter _ Meetical:

Hi,

I'm developing a Confluence App and noticed that the Label class in Confluence does have a property "namespace". I've digged into that in the code and saw that there are some methods checking if the namespace is set to "public" or "owner".

I can't see any options in the Confluence UI related to this. Do namespaces affect labels in some way? If yes, how do namespace affect labels?

Thank You!


Answers:
author: Vero Rivas
body: Hi [@Lukas Gotter _ Meetical](/t5/user/viewprofilepage/user-id/3431324)

Look at this post, maybe can help you

<https://docs.atlassian.com/DAC/javadoc/confluence/4.0/reference/com/atlassian/confluence/labels/Namespace.html>

Cheers


Tags: confluence-server

server
Confluence-cloud Rest API returns 401 Unauthorize while fetching space with access token
Asked by kuldeep kushwaha:

Hi,

I have created an access token using the below-mentioned link

<https://developer.atlassian.com/cloud/jira/platform/oauth-2-authorization-code-grants-3lo-for-apps/>

When I use this access token along with confluence REST API to ge space data the error I receive is

{ "statusCode": 401,

"data": { "authorized": false, "valid": true, "errors": \[\], "successful": false },

"message":"com.atlassian.confluence.api.service.exceptions.AuthenticationRequiredException: Authentication is required"

}

below mentioned is request object

{

method: 'GET',  
url: 'https://\<domain\>.atlassian.net/wiki/rest/api/space',  
headers: {  
Accept: 'application/json',  
'Content-Type': 'application/json',  
Authorization: 'Bearer \<access_token\>'

}

}

Can some one please help me with this.


Answers:
author: Warren
body: Hi [@kuldeep kushwaha](/t5/user/viewprofilepage/user-id/2143186)

In the authorization section, you need to be using both the token and the user e-mail address that the token was created with. That seems to be missing in what you've given above. You need to pass in a 64 bit encoded version of the e-mail / token pair.

comments: author: kuldeep kushwaha
body: Hi [@Warren](/t5/user/viewprofilepage/user-id/26839)

I am trying to make an API call using OAuth token and we encode email/API-token in basic authentication.

<br />

<https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-basic-authentication/>

<br />

As you said tried passing 64 bit encoded version of the e-mail / OAuth token in header got the following response.

<br />

Status: 403 Forbidden.  
{ "error": "Failed to parse Connect Session Auth Token"}


Tags: cloud

confluence-cloud

oauth
Unable to view excel file in Confluence
Asked by Ranganath HV Gowda:

I am using confluence 6.13.4

I have excel file of size 38MB attached to confluence page. Filename :- XYZ.xlsx

When I click on View from attachments section, it gives me error message

viewfile: com.atlassian.plugins.conversion.convert.ConversionException: Cannot convert XYZ.xlsx, this file exceeds the maximum file size for xlsx files of 2MB.


Answers:
author: Thomas B
body: Hello [@Ranganath HV Gowda](/t5/user/viewprofilepage/user-id/609543) - please see this article. This explains how to change this limit.

<https://confluence.atlassian.com/confkb/viewing-excel-error-with-the-message-error-rendering-macro-viewxls-com-benryan-conversion-conversionexception-com-benryan-conversion-conversionexception-cannot-convert-spreadsheet-744327791.html>

Edit - The larger images can take time to convert and may cause server timeout/system issues depending on your system properties.

Thanks


Tags: confluence-server

server
Unable to view excel file in Confluence
Asked by Ranganath HV Gowda:

I am using confluence 6.13.4

I have excel file of size 38MB attached to confluence page. Filename :- XYZ.xlsx

When I click on View from attachments section, it gives me error message

viewfile: com.atlassian.plugins.conversion.convert.ConversionException: Cannot convert XYZ.xlsx, this file exceeds the maximum file size for xlsx files of 2MB.


Answers:
author: Thomas B
body: Hello [@Ranganath HV Gowda](https://community.atlassian.com/t5/user/viewprofilepage/user-id/609543) - please see this article. This explains how to change this limit.

<https://confluence.atlassian.com/confkb/viewing-excel-error-with-the-message-error-rendering-macro-viewxls-com-benryan-conversion-conversionexception-com-benryan-conversion-conversionexception-cannot-convert-spreadsheet-744327791.html>

Edit - The larger images can take time to convert and may cause server timeout/system issues depending on your system properties.

Thanks


Tags: confluence-server

server
How can I access and affect Host's DOM (parent DOM) from add-on app's iframe?
Asked by kaqiu pi:

I'm developing a add-on app that can dynamically change confluence cloud pages' background by different conditions.?insert a background image into cloud confluence pages ).

I have investigated that I can't use a Web Resource module to introduce JavaScript files to run on pages?So I want to use Macro Modules or something else to insert iframe and run its JavaScript Code to change page background , But Because of Same Origin Policy I cannot access and affect it's parent DOM.

What am I supposed to do?

Thank you


Answers:
author: Sven Schatter _Lively Apps_
body: In the Cloud you're not supposed to access the parent DOM or run any JavaScript on the parent page. That's one of the reasons why in the Cloud apps are inside iframes in the first place. So, I'm sorry but what you want to do isn't technically possible right now.

By the way, if you have questions regarding the development of apps you should know about the [Atlassian Developer Community](https://community.developer.atlassian.com/). :)


Tags: cloud

confluence-cloud
Missing Warning icon file from confluence page
Asked by sc:

Dear all,

When we start how confluence app, we notice from the log file that we get a FileIOEx eption on a missing file warning.png at location :

**/opt/atlassian/confluence/confluence/images/icons/macrobrowser/dropdown**

See below the full exception :

===\>

javax.servlet.forward.request_uri: /plugins/servlet/confluence/placeholder/error

javax.servlet.forward.context_path:

javax.servlet.forward.servlet_path: /plugins/servlet

javax.servlet.forward.path_info: /confluence/placeholder/error

javax.servlet.forward.query_string: i18nKey=editor.placeholder.broken.image\&locale=en_GB\&version=2

javax.servlet.forward.mapping: org.apache.catalina.core.ApplicationMapping$MappingImpl@41d6b755

javax.servlet.error.status_code: 500

com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@1d145116

com.opensymphony.sitemesh.APPLIED_ONCE: true

__cleanup_recursion_counter: 0

javax.servlet.error.message:

javax.servlet.error.servlet_name: servlet-module-container-servlet

com.atlassian.confluence.util.message.MessagesDecoratorFilter_*already_filtered*_: true

com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true

atlassian.core.seraph.original.url: /500page.jsp?i18nKey=editor.placeholder.broken.image\&locale=en_GB\&version=2

com.dynatrace.oneagent.sensors.uem: com.compuware.apm.agent.introspection.uem.UemAttribute@5af2ae07

com.atlassian.labs.botkiller.BotKillerFilter: true

com.atlassian.gzipfilter.GzipFilter_already_filtered: true

Confluence-Request-Time: 1568886975983

com.ruxit.sensors.servlet.exception: true

B3-TraceId: 6ebfa50b947735

loginfilter.already.filtered: true

javax.servlet.error.request_uri: /plugins/servlet/confluence/placeholder/error

com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true

com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true

com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true

javax.servlet.error.exception: java.io.FileNotFoundException:  
**/opt/atlassian/confluence/confluence/images/icons/macrobrowser/dropdown/warning.png** (No such file or directory)

\<=====

Users seems not complaning about this because otherwise they would get an error page but I was wondering why this icon is missing since it seems to be part of confluence itself

What should I do, ignore the error or copy the file from an old installation version ?

Thanks for your help


Answers:
author: 5140883
body: same issue +1


author: Gary Rogers
body: Seeing the same issue.


Tags: confluence-server

server
Comala Approvals vs Comala Workflows
Asked by Bhakti Paranjpe:

Hi All,

We are a small startup company with \<100 employees, but soon looking to expand. We have our technical documentation on Confluence Cloud.

As our documentation base grows, we want to have a review and approval workflow. Please help me choose between the following:

* Comala Approvals
* Comala Workflows

What are the differences between the two? Which one is better for our needs?

Any other considerations?

Thansks,

Bhakti


Answers:
author: Daryl Karan
body: Hi Bhakti,

My name is Daryl and I manage Pre-Sales here at Comalatech. I appreciate your interest in both Comala approvals and Comala Workflows Lite. To get a better understanding of your business needs, can you tell me:

* What business problem are you solving with the addition of Comala Approvals or Comala Workflows Lite?
* Is your company looking to satisfy any compliance regulations?
* Does your documentation have certain time limits, for example the documentation is valid for 11 months until its expired or needs to be reviewed again?
* Do you require your approvers/reviewers to be automatically set rather then having document creators assign their approvers/reviewers?
* Do you require more then the standard 3 phases (review, rejected and approved) to be part of your document management process?

I look forward to your reply and have a great weekend.

Daryl Karan  
Sales Engineer  
Comalatech


Tags: cloud

confluence-cloud
3-4hr delay between updating documents in Confluence and new version being created.
Asked by Derek McGarrity:

When uploading documents there is no lag time.

When updating a document you recieve notification saying a new version has been uploaded to confluence but it takes up to 4hrs to appear?

Is there a setting that needs to be changed or is this a known bug?


Answers:
author: Jack Brickey
body: Hi [@Derek McGarrity](/t5/user/viewprofilepage/user-id/3611919) , I personally have never experienced any sort of delay like this. However I am on cloud and I'm unsure if that is your platform. As this is a very old post I am assuming that this is no longer an issue? If it is I certainly would report to your administrator and if you are the administrator then report to Atlassian support.
I wondered if it was possible to link to a file system file from Confluence
Asked by Allan Ford:

I wondered if it was possible to link to a file system file from Confluence.

I tried

file:\\\\hmb-fps-001\\common\\Application Services\\Requirements Management\\Standards, Procedures and Guidelines\\Development\\Your guide to SQL Standards and Features.docx

but this doesn't seem to work.


Answers:
author: Allan Ford
body: Seems this question has been struggled with before ..

<https://community.atlassian.com/t5/Confluence-questions/Confluence-How-to-place-a-link-to-a-file-on-a-server-share-in-a/qaq-p/258790>

comments: author: Mikael Sandberg
body: Hi [@Allan Ford](/t5/user/viewprofilepage/user-id/3599743)

Welcome to the Atlassian Community.

It is possible, but your browser has to support it, only IE/Edge support it natively, and for Chrome and Firefox you need an add on. Your link in Confluence has to look like this, file://///unc/path/file.name


author: Allan Ford
body: Hi Mikael,

Thanks for your reply !

I've tried the five / approach without any luck also. and also within \[\] square brackets ..

e.g.

\[file://///hmb-fps-001/common/Application Services/Requirements Management/Standards, Procedures and Guidelines/Development/Your guide to SQL Standards and Features.docx\]

Hmmm .. Maybe wanting to do this is not desirable anyway ?


author: Mikael Sandberg
body: What browser are you using? The link only works if you are using Microsoft Edge, Chrome and Firefox does not allow it by default since it is considered a security risk. There are add-ons for both Chrome and Firefox to bypass this. I found these two add-ons when one of my users asked about it:

Chrome: <https://chrome.google.com/webstore/detail/locallinks/jllpkdkcdjndhggodimiphkghogcpida> This plug-in only works in ++non++-incognito mode.

Firefox: <https://addons.mozilla.org/en-US/firefox/addon/noscript/?src=search>, <https://addons.mozilla.org/en-US/firefox/addon/locallink/>


author: Allan Ford
body: Thank Mikael,

Have tried, with no luck, in both Edge and Chrome ..

This link gives me 404 error:

<https://chrome.google.com/webstore/detail/locallinks/jllpkdkcdjndhggodimiphkghogcpida>

cheers, Allan


author: Mikael Sandberg
body: It's been awhile since I got the request internally from my users to be able to link to file system, so maybe Microsoft removed that feature in Edge.

Here is another addon for Chrome to allow local file links: <https://chrome.google.com/webstore/detail/enable-local-file-links/nikfmfgobenbhmocjaaboihbeocackld?hl=en>
In Confiforms, is there a way to disable or hide individual checkboxes?
Asked by Fred Bunting:

In Confiforms, is there a way to disable (gray out) individual checkboxes in a checkbox group, based on the value of another field?

E.g., imagine I have a checkbox group *mycbgroup* with checkboxes *cb1* , *cb2* , *cb3* , *cb4* , *cb5*.

Based on the value of another field, I want to be able to selectively gray out (say) *cb2* and *cb3*, while leaving the others enabled.

Is there a way to use the 'Confiform Rules for Field Definition' macro (or any other macro) to change the appearance of individual checkboxes (say set the CSS to display the checkbox as gray text)?  

Or alternatively, to show/hide the checkboxes individually? (I know how to show/hide the entire field, such as the entire checkbox group ... but can one show/hide individual checkboxes?)


Answers:
author: Alex Medved _ConfiForms_
body: You can hide choices in multi-value fields by using ConfiForms Rules for Field Definition macro with action set to "Apply filter"

Some docs to look at <https://wiki.vertuna.com/display/CONFIFORMS/Using+filter+based+on+criteria+rule>


Tags: confiforms

confluence-server

server
Is anyone using Confluence to build a "web site" that can promote a producct or service?
Asked by Mark Smith:

Confluence generates key word tags which allows a page to be found. I was just wondering if this would be the best way to start a site to promote.


Answers:
author: JimmyVanAU
body: Hi Mark,

Welcome to the community.

There are a few ways to skin this cat.

1. Many Atlassian partners use a raw Confluence instance to promote their products. e.g. <https://wiki.resolution.de/doc/saml-sso/latest/jira>
2. You can use an app like [Refined](https://www.refined.com/) to skin Confluence and style it to your liking, allowing you to build a proper web site to promote said product/service.
3. Thirdly, you can use something like [Instant Websites](http://help.parkassist.com/) to generate a static website which you can customise with css to your heart's content - e.g. <http://help.parkassist.com/>.

In terms of generating keyword tags, while I'm not an SEO expert, I believe Confluence does a reasonable job of generating these tags. Atlassian's documentation is based off Confluence and it is well indexed by Google.

Cheers, Jimmy


Tags: cloud

confluence-cloud
JQL Query to add Kanban Board to Confluence page
Asked by Cassie McQuiggan:

I am trying to use the Jira Issue/Filter plug in within Confluence to show a Kanban board (there are two other pods that use a regular Agile board and I was able to work out that query). Is there a way to do this?


Answers:
author: Stephen Crandell
body: If you are a board admin for the Kanban board, go to the board config. This shows the actual query used to populate the board. Use the same filter in the Jira Issue/Filter plugin.

comments: author: Cassie McQuiggan
body: I am not a board admin but I was able to get to the configuration and get this query. Thank you for the help!!


Tags: cloud

confluence-cloud
I can no longer edit articles
Asked by Stephan M:

After updating from v6 to v7, and migrating Confluence from our local server to AWS, we can no longer edit any articles.

We have looked at quite a few KB articles, but have not found a solution.

Please let me know if you have any suggestions.


Answers:
author: JimmyVanAU
body: Hi Stephan,

Can you tell me more about not being able to edit?

I'm assuming you're logged in. Please double check it's not an authentication problem, where you have Confluence accessed anonymously, but no edit privileges for users who aren't logged in. This may have been caused by networking changes when going from your own server to AWS, where Confluence can no longer connect back to your AD domain controller.

Otherwise, if you are logged in, by not being able to edit, I'm guessing that you see a spinning throbber on the edit page. Is this correct?

Can you confirm your collaborative editing settings? I'm guessing it's on. Does editing work if you turn collab editing off?

It might be an issue with your ELB/ALB on AWS not having Websockets enabled. Follow the troubleshooting steps here <https://confluence.atlassian.com/doc/troubleshooting-collaborative-editing-858772087.html>

Let us know how you go :)


Tags: confluence-server

server