youngmon/atlassian-qna huggingface dataset:
How to sum the true check box on the checkbox field ?
Asked by Saurabh C:

Hi,

So I have create a form to get some assessment for some subjects and have a checkbox field (Subject), It has around 25 options, but I want to restrict the checkbox selection by user to a max of 5, how can I sum up the selected(True) checkboxes and then run a validation.

I have currently used below 3 forms

Registration form

Form definition

Field form definition.

[@Alex Medved _ConfiForms_](https://community.atlassian.com/t5/user/viewprofilepage/user-id/781630) : If you could help, that would be great !


Answers:
author: Alex Medved _ConfiForms_
body: I believe you are talking about a "checkbox group" field, not "checkbox".

As "checkbox" field has only 2 possible values: true or false

For "checkbox group" field (and for any other multi-value holding field) you can always check it's size via asCount or asLength [virtual functions](https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions)

So, your condition for validation will be (in ConfiForms Field Definition Rules macro, action = Validation Rule)

```
Subject.asCount:>5
```

Dont forget to set the "Message to show when validation rule matches"

comments: author: Saurabh C
body: Thanks a Ton [Alex Medved _ConfiForms_](https://community.atlassian.com/t5/user/viewprofilepage/user-id/781630) , was really not able to find asCount variable field anywhere....

You are awesome !


author: Alex Medved _ConfiForms_
body: This is not a field really, but a function ([among other virtual functions we have in ConfiForms](https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions) ) that you can use on a field


Tags: confiforms

confluence-server

server
Automatically add users to the page view permission in Confluence
Asked by Kseniya Krylova:

Good afternoon!  
Suppose we have a field in the confluence page in which a group or username is written, who can see and edit the current page, we have a question whether it is possible to make it so that when we click on the "application of restrictions" button (a lock with restrictions on the page ) the corresponding group or user was automatically pulled in the selection field.


Answers:
author: James Conway
body: Hi [@Kseniya Krylova](/t5/user/viewprofilepage/user-id/4065433)

The ability to automatically pull restriction settings from a page property or other field is not a native capability of Confluence. Fortunately, the Atlassian Marketplace offers a fantastic range of add-ons to customise Confluence to meet your requirements. One option you may want to consider is Comala Document Management. This includes the ability to set restrictions as part of your content management process. You can check out the app in the [marketplace](https://marketplace.atlassian.com/apps/142/comala-document-management?hosting=server&tab=overview).  

You may be interested in our live and recorded [webinars](https://comalatech.com/comala-workflows-webinars/) - please be sure to select the correct platform (Cloud / Server / Data Center) as there are differences between our apps.

You can also contact our support team at <https://support.comalatech.com> if you have any questions.

I hope that helps

James  
Senior Product Manager


author: Kian Stack Mumo Systems
body: Kseniya,  

I don't know of anything like that in Confluence. It's possible that something like [Scriptrunner for Confluence](https://scriptrunner-docs.connect.adaptavist.com/confluencecloud/script-listeners.html#_how_to_use_it) could solve that for you, but you'd need to understand how to write Groovy Scripts. If you do choose to evaluate Scriptrunner and see if it can work for you, don't be afraid to ask for help/support on any issues with it in the community!  

Thanks,  

Kian


Tags: confluence-server

server
JIRA Roadmap view by monthly ..
Asked by Uma Sanjeevi:

HI

How can I setup a the confluence page where i can only slice the roadmap by a certain period.. so for example as the below view from the roadmap - show all EPIC and task that will be happening the month of Dec ?

Outcome - trying to get a 3 mthly view of the roadmap view as a plan (project plan kinda of view)


Answers:
author: Ang?lica Luz
body: Hello [@Uma Sanjeevi](/t5/user/viewprofilepage/user-id/3772592),

Thank you for reaching out to Atlassian Community!

Just to make sure that we are on the same page and that we share the correct information with you, I would like to know what Roadmap you are using in Confluence.

When we search for Roadmap's macro, there are four options, so it would be great if you could share with us a screenshot or more details of which roadmap you are using.

![Screen Shot 2020-11-16 at 13.34.47.png](https://community.atlassian.com/t5/image/serverpage/image-id/118463i03480C600C8FD0B4/image-dimensions/249x300?v=v2 "Screen Shot 2020-11-16 at 13.34.47.png")

Feel free to share a screenshot, just make sure to hide private information.

Regards,  
Ang?lica


Tags: cloud
Getting an error when linking an image URL on a Confluence Page
Asked by Kavika Karshan:

I get this error message after posting an uploaded image as a link

```
{"error":{"code":"JwtAuthoriser:TokenExpiredError","title":"Token verification failed: jwt expired","href":"https://api.media.atlassian.com#UnauthorizedError"}}
```

Any help with this ?

Thanks

Kavika Karshan

The University of Adelaide


Answers:
author: Ang?lica Luz
body: Hello [@Kavika Karshan](/t5/user/viewprofilepage/user-id/4156403),

Welcome to Atlassian Community!

The issue that you are facing was reported as a bug. You can find more details on the link below:

* [JWT token expiring for images on Media Server](https://jira.atlassian.com/browse/CONFCLOUD-58506)

Please, click on "This affects my team" and also watch to receive updates about the bug.

There is a workaround that can be applied by our support team, but it requires a ticket, so please, ask your site administrator to create a ticket on support.atlassian.com/contact and add you as a participant, so you can share with them the details of the issue and the affected pages.

Regards,  
Ang?lica


Tags: cloud

questions-for-confluence
Images Not Displaying correctly in new editor
Asked by Rainee Rohrbacher:

We are having an issue in the new editor pages, where the images are taking a LOOOOOOONG time to show up, if at all. They are coming out like a grey box. It doesn't seem to correlate with file size or type of image.

What we are seeing:

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

Any suggestions / tips?


Answers:
author: Ian Garcia
body: Hi Rainee,

I'm having the same issue when either a page is converted to the new editor, or after creating a new page entirely.

Have you had an answer for this issue or did it just resolve itself?

I'm having this issue since June 2021.


Tags: cloud
Show Jira Issues in Confluence Page for non-Jira users
Asked by Ron Chan:

We have a project planning table in Confluence that contains among other things, Jira issues. The problem is we have stakeholders who often view this page and all they see are error messages from the Jira issues. My question is, is there a way to display the Jira issues as static text for those non-Jira users?


Answers:
author: Davin Studer
body: There are a couple ways I could think to do this.

* If you happen to have the SQL app for Confluence you could directly query the database and put the results on the page in a table.
* You could use the REST api as a service account and then parse that and put it on a page.

comments: author: Ron Chan
body: Thanks for the suggestions [@Davin Studer](/t5/user/viewprofilepage/user-id/781467)

However, those sound like it would involve quite a bit of setup and overhead especially since this table will be updated frequently. The table contains a combination of Jira and other content that are directly entered into the tables, I can't even imagine how pulling from a database solution would look like.

Was hoping for a lighter approach.


Tags: server
Best approach to download all confluence pages in a space and upload it to another conflu instance
Asked by Arun Prakash:

Hi,

1. I don't have admin privilege. Can I download all the confluence pages from a space and upload it to another confluence instance ? Any rest API commands you have handy to download and upload. There are lot of pages in a space...around 100 pages in a space. It will be good if there is way to upload all the pages instead of doing each page one by one.


Answers:
author: rafal.dubel
body: Hi!

Does anyone know if XML export contains all the graphics and documents from exported space?

I've just exported space containing numerous files, graphics and videos and the whole export is just 277mb. It seems surprisingly small.


author: Diego
body: Hello [@Arun Prakash](/t5/user/viewprofilepage/user-id/3959741)!

As I understand, you need to export a whole space from Confluence and then import that very space into another Confluence site.

Since you mentioned that you need to "*download all the confluence pages from a space*" , we will need to use an XML space export. The XML space export exports all pages regardless of access permissions.

You can read more details about it here:
> * ++***[Export content to Word, PDF, HTML and XML - \[Export to HTML, XML, or PDF\]](https://support.atlassian.com/confluence-cloud/docs/export-content-to-word-pdf-html-and-xml/#ExportContenttoWord,PDF,HTMLandXML-ExporttoHTML,XML,orPDF)***++

For you to be able to export spaces, you need the 'Export Space' permission. You can check more details about permissions here:
> * ++***[What are space permissions?](https://support.atlassian.com/confluence-cloud/docs/what-are-space-permissions/)***++

I hope this helps you out!

comments: author: Arun Prakash
body: Hi [@Diego](/t5/user/viewprofilepage/user-id/1188952) thanks for your time.

What will be your advice on importing it back into another confluence instance without admin privilege? Any handy cURL commands ?


author: Arun Prakash
body: Hi [@Diego](/t5/user/viewprofilepage/user-id/1188952) , I hear people in other threads saying they were able to upload / download a page through REST APi calls... Can you please help me with the syntax or cURL command for that ?


author: Arun Prakash
body: I was able to download the conf space from one conf instance through admin. it is around 12GB... can I upload it to other conf space using any commands.... no admin access so I cannot use UI to upload.
About confiforms
Asked by laurent:

Hi

Is it possible to know if an user is member of security group ?

I want to give a page access to an user but I want limite user selection to member of a group or other group. Is there a confirm rule or IFTTT that can test if user I selected is listed (or member) in a predefined security group to valid the entry ?

Thx

Regards


Answers:
author: Davin Studer
body: A thought would be that you could create a web service based drop down that is populated with the people in the group. The Confluence REST api is ...

```
https://{your server}/rest/api/group/{group name}/member
```

That way the only people that are selectable are people in the group.

comments: author: laurent
body: Thanks

I will try that


Tags: confiforms
How I can copy a template
Asked by Karina Magana:

I need to use it in order to creates a report , so I wan to copy in my confluence space


Answers:
author: Diego
body: Hello [@Karina Magana](/t5/user/viewprofilepage/user-id/3602947)!

This necessity has been raised here in our Community in the past. You can take a look here:
> * [++***\[Atlassian Community\] How do I copy a Global template that I created and paste it as a template in a new site space?***++](https://community.atlassian.com/t5/Confluence-Cloud-questions/How-do-I-copy-a-Global-template-that-I-created-and-paste-it-as-a/qaq-p/1259805)

Let us hear from you!


Tags: cloud
Trial Expiry - What happens to all my spaces and pages?
Asked by Francesca Baldwin:

Hi there,

Hope you're all well today!

I'm in the middle of a 30 day free trial for Confluence.

Please can someone advise what happens to all of my Spaces and Pages in Confluence if I cancel my trial / Confluence?

Ideally I need all of this saved, as I might not be in a place to persuade my team to pay for Confluence just yet.

Thanks,

Francesca


Answers:
author: Nic Brough -Adaptavist-
body: Are you on Server or Cloud? You've tagged Cloud, but a 30 day trial sounds like Server.

comments: author: Francesca Baldwin
body: Hi, thanks for your message. I don't think it's on Server, I didn't think I'd set it up in Server, so it must be Cloud. Let me know what you think! Thanks.


author: Nic Brough -Adaptavist-
body: Ok. At the moment, you can easily spot Cloud instances - the url will start with \<something\>.atlassian.net

* If it is Cloud, then when the trial ends, you will not be able to get into your system any more, and it will be deleted a few days later (a week, from memory)
* If it is Server, then the system goes read-only at the end of the trial - you'll be able to do some admin and take backups

In both cases, you can extend trials and continue, and of course, if you buy (before the delete time on Cloud), everything just carries on from where you left off.


Tags: cloud
How to remove a specific e-mail address from "Grant access" list
Asked by Piotr Koszela:

Hello,

Some of the people in our company are getting e-mail when someone click "Grant access" on restricted pages. In the documenation I found:

"Who can grant access: \[...\] people who have contributed to the page in the past, can see the page and have 'Restrict' or 'Admin' space permission (sorted by last edit date)".

So, yeah, there is a person who contributed to the site in past (I think four people), can see the page, has 'Restrict' permission (as all of the employees in the company - because the Confluance portal is mainly for documentation produced by us and available for our customers). That person does not need and does not want to get the emails. Is there a way to exclude the person from the group to which the emails are sent?

Kind regards

Piotr Koszela


Answers:
author: Piotr Koszela
body: Anyone?


Tags: access

confluence-server

server
How do I access the profile information using the Rest API?
Asked by Hugo Balder:

In our user profiles we can add skills that we have and our current and last areas of work to our profile.

My goal is to go over all the user profiles and to extract that information. I can reach my personal site using the rest API quite well, but can't seem to get to the profile site.

I've tried

* /rest/mobile/1.0/profile/"username"
* /rest/api/user?username="username"

But it does not give me every information on the site.

Name, department, mail adress is all there, but that's about it. No expertise sections. Is there any way to do this?

Or are those fields somehow blocked by default?


Answers:
author: Julia Grie?bach [Communardo]
body: Hi Hugo,

I think the REST API built into our app User Profiles for Confluence.  
It gives read-only to all profile elements.

With our app it is possible to create all kinds of profile fields which can also be synchronized using LDAP.

We tried to keep as close as possible to the [REST-Guidelines of Atlassian](https://developer.atlassian.com/display/DOCS/Atlassian+REST+API+Design+Guidelines+version+1). So if you are familiar with the REST API of Confluence, it should be quite easy for you to consume our API.  
With it, you can get information about a specific element or even the list of options available in that element.   
And you can also get the data from the profile element of a specific user.  
For more information see [our documentation on it](https://communardo.atlassian.net/wiki/spaces/upp/pages/347767264/REST+API+Documentation+v+3.3).

If you have any question or need help feel free to [contact us](https://jira.communardo.de/servicedesk/customer/portal/2).

We hope to hear from you soon!

Kind Regards

Julia  
Communardo Support


author: Davin Studer
body: An expertise field is not a default part of user profiles in Confluence. Do you by chance have an app that is adding that functionality? If so, you would need to see if the app has a REST APIthat exposes that data. Atlassian released APIs will not include data from third party apps.


Tags: confluence-server

rest-api

server
Is anyone else experiencing issues with Tasks on Page Copy?
Asked by Bridget Maloney:

I noticed this yesterday - whenever I copy a page that had tasks on it, the old tasks are continuing to show in my task reports.

This is happening even if I remove all of the tasks, add new ones in a separate area, or change the dates on those tasks.

They are all showing up in the task reports with the new page, but the old task content. Clicking through to the page is *only* showing the new tasks and not the old ones.

Is there a cache that I might need to clear or something?


Answers:
author: Bridget Maloney
body: It looks like this is a bug affecting others as well.

Please check it out here and Vote or mark it as Affects my team: <https://jira.atlassian.com/browse/CONFCLOUD-71132>


Tags: cloud
Script Runner Create Page and Page Macros
Asked by Blake Ward:

I'm attempting to use the Create Page macro from the Script Runner plugin to create a page from template and all of my in page macros on the template seem to be broken in the created page.

To reproduce create a template with an Attachments macro on it and use the Create Page macro from Script Runner to create an instance of this.


Answers:
author: Thiago Ribeiro [Adaptavist]
body: Hi Blake!

<br />

Thanks so much for taking the time to report this.   
It sounds like you are describing an issue that we have an open development to address: [SRCONF-1511](https://productsupport.adaptavist.com/browse/SRCONF-1511)  
The team are hard at work to get a fix out for this as soon as possible so please watch this ticket if you would like to be notified when this is ready!

Kind regards,

Thiago Ribeiro


author: Nava Bar-Sagi
body: Hi,  

I am trying to add the macro based on 'current page'- I see no button or title I added to notify the users that they can create page- can you send an example incluf=ding usage of aui-button?


Tags: adaptavist

addon-com.onresolve.confluence.groovy.groovyrunner

confluence-server

scriptrunner

server
How to remove users as administrators in a space
Asked by Bingwei Lee:

I am trying to set permissions for the different spaces but it seems like everyone that is on confluence is an administrator in all of the spaces. I am unable move users to just be users. How do I set proper permissions?


Answers:
author: Nic Brough -Adaptavist-
body: Look at the space permissions under "space settings" to see how they are getting admin - you'll need to look at all the lines with a green tick mark in the rightmost column.

Once you know how they're getting the admin rights, you can work out how to remove it from all spaces.

I suspect it's probably a group, and one that is named in the default permissions (a global admin setting) for new spaces, so I'd check that as early as possible as you'll probably want to get rid of it - that won't change existing spaces, but it'll stop new ones picking up unwanted defaults.


Tags: cloud
Reset Confluence Page to set version
Asked by RobinD.:

Hello,

Is there any way, to rollback a page to always the same version (let's say V4, so the 4th edit of the page) with only one button (not necisarrily on that page) or automatically at a set time?

My use case would be that there is a page where text (questions/answers) are inserted at a certain time, but after some time, that page should be reset to being empty again, so it can be reused without always having to either clear it manually (as some parts of the page need to stay, so that would be a cumbersome process) or scroll through the (ever growing) version list to find the right state to roll back to.

KR

RobinD


Answers:
author: Davin Studer
body: You could use the REST API to get the data with a cron/scheduled task job and then write over the existing page. This solution would require someone who can do a bit of programming.

**Get a specific historical version**

You can get the page storage format for a specific version below. Specifically in the JSON it is the body.storage.value node.

```
http(s)://{yourserver}/rest/api/content/{page id here}?version={page version here}&expand=body.storage
```

**Update a page's body**

You can do a PUT to this REST endpoint using the below JSON payload to update a page

```
http(s)://{yourserver}/rest/api/content/{pageid here}
```

**JSON Payload (replace the stuff in \*\*\*????\*\*\*)**

```
{    "id": "***Page ID***",    "type":"page",    "title":"***Page Title***",    "space":{"key":"***Space Key***"},    "body":{        "storage":{          "value":"***Page Body in Confluence Storage Format***",          "representation":"storage"        }    },    "version":{        "number":"***New Page Version***"    }}
```


author: tokcum
body: Hi Robin,

why would you like to "delete" raised questions and their answers to it? Have you thought about just creating a new page (maybe from a template) to provide a new "blank" page for new questions and answers?

Kind regards,

Tobias

comments: author: RobinD.
body: Hi,

well, the "questions" are a bit more complex pieces, possible requests would be a better term, and there is a set timeframe, (repeating every month or so) where this exact page (so that the link always stays the same) is used for these. The end result is then exported to pdf and saved elsewhere where it is actually needed to be archived, so it does not need to clutter up the confluence space and the page is reusable. And to save on time doing things manually, (because creating the page new, resetting it manually or with the version history) would take about the same amount of time. So if there is no automated way, that will be what I have to do anyway, but I hoped a more automatic way with page-link persistence would exist.


Tags: confluence-server

server
Looking for a URL/vidoe using Confluence
Asked by Arthur Roumimper:

Who can advice me about a Youtube on tips \& trucks of Confluence to get users starting,


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Arthur Roumimper](/t5/user/viewprofilepage/user-id/3588903) ,

You may also try YouTube courses from our company:

* [Quick Start with Confluence](https://www.youtube.com/playlist?list=PLRpx9wuFqlzHWzFNthGvASXGzEKAjXYGb) (for novice Confluence users, 8 videos, 15 min avg. each)
* [Advanced Permission and Security Management in Confluence](https://www.youtube.com/playlist?list=PLRpx9wuFqlzFokAJdzlLM-1t7SMiwcO96) (for power users, space admins and novice Confluence administrators, 6 videos, 20 min avg. each)

Hope this helps!

comments: author: Arthur Roumimper
body: Thanks I will have a look at it


author: Alexis Robert
body: Hi [@Arthur Roumimper](/t5/user/viewprofilepage/user-id/3588903) ,

you can have a look at Atlassian Youtube channel for Confluence videos : <https://www.youtube.com/c/Atlassian/search?query=confluence>

You'll have a lot of content here to get started with Confluence.

Let me know if this helps,

--Alexis

comments: author: Arthur Roumimper
body: It is nice to get some tips out of all the information on Internet, Thanks


Tags: cloud