youngmon/atlassian-qna huggingface dataset:
Can I set multiple permissions in a single API call?
Asked by Nicholas Shaw:

I am attempting to set permissions for spaces, and want to use a single API call to set all the permissions I want at once.

[Space Permission API](https://developer.atlassian.com/cloud/confluence/rest/api-group-space-permissions/#api-wiki-rest-api-space-spacekey-permission-post)

Whenever I try building my payload though, only one permission is set, and it's always the last permission in the list.

I've tried both the below method, and just using multiple operation objects, and both have the same problem.

I could of course use a single call per permission, but I have hundreds of spaces, and want to set 3-5 permissions per space, that's a \*ton\* of calls.

Here's the python I've got:  

```
  payload = json.dumps({

    "subject": {

      "identifier": <GroupID>,

      "type": "group"

    },

    "operation": {

      "key": "read",

      "target": "space",

      "key": "delete",

      "target": "space",

      "key": "create",

      "target": "comment",

      "key": "create",

      "target": "attachment"

    },

    "_links": {}

  })

  response = requests.request("POST", url, headers=ConfluenceVars.headers, data=payload, verify=False)
```


Answers:
author: Pramodh M
body: Hi [@Nicholas Shaw](/t5/user/viewprofilepage/user-id/4623915)

It's only one permission as per the documentation

![Space.png](https://community.atlassian.com/t5/image/serverpage/image-id/179348iEDED0AEC9A0E4C53/image-size/large?v=v2&px=999 "Space.png")

in this doc

<https://developer.atlassian.com/cloud/confluence/rest/api-group-space-permissions/#api-wiki-rest-api-space-spacekey-permission-post>

**Call multiple API to set multiple permissions for either user or a group**

Thanks,  
Pramodh

comments: author: Derek Adkins
body: "At least one" implies that I can send more than one if I wanted to.


author: Sharang Shrivastava
body: You can not set multiple keys with same string in dictionary object , it will overwrite and use only one unique. In order to send multiple operation calls in one , just pass multiple operation dictionary object in the same call using "list of dictionary". Please refer below.

operations": \[ { "key": "read", "target": "page"},

{ "key": "create", "target": "page"}

\]

Same has been described in the docs also , although you need to use different endpoint also.

[Add new custom content permission to space](https://developer.atlassian.com/cloud/confluence/rest/api-group-space-permissions/#api-wiki-rest-api-space-spacekey-permission-custom-content-post)

comments: author: michali.tsompanoglou
body: This doesn't work right?


author: Nadim96
body: don't think this works, any update?


Tags: api

cloud

confluence-cloud

permission

space
How can I have my "other" option which has a text box, populate to my table view?
Asked by Nicholas Green:

Hello! I have created a point of contact list and have set up rules to populate a text field if an individual selects "other", however when I am viewing the results on the table view, it just shows the name of the selection, which is Other (please specify).


Answers:
author: Alex Medved _ConfiForms_
body: Hi

ConfiForms TableView shows what is stored in each field. For your dropdown field it will show what you have stored - which is "other"

And the actual value will be store the field you have set up to capture that value. So you need to add this field to the TableView as well

This is the easiest

The other option is to play a bit with formulas: <http://recordit.co/DWGyjLZXmj>

Alex


author: Fabian Lim
body: adding [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) who is the expert.

Thanks


Tags: cloud

confiforms

confluence-server
Customer User Manual
Asked by Krista Phillips:

I would like to create a user manual for our software product. I would like to embed a link in our product that directs to the user manual in confluence. I cannot find any guidelines for doing this. Can somebody please point me in the right direction?


Answers:
author: Sven Schatter _K15t_
body: Hi [@Krista Phillips](/t5/user/viewprofilepage/user-id/4660110),

Can you share a little more on what exactly you are trying to do? As far as I understand, you'd like to create your user manual in Confluence, and then make that accessible to the users of your product. Is that correct? If that's the case, you'll want to create a [public space](https://confluence.atlassian.com/doc/make-a-space-public-829076202.html) for your manual. You could then share the link to this space in your product, which will look like this:

```
https://<your-confluence>.atlassian.net/wiki/spaces/YOURSPACE/overview
```

However, this will of course still look like Confluence to your users, and not so much like a professional user manual. Another option would be to look at apps like [Scroll Viewport](https://marketplace.atlassian.com/apps/1211636/scroll-viewport-for-confluence?tab=overview&hosting=cloud), which allows you to publish your Confluence Space / User Manual to a real website. This website could then also be running on your own custom domain.

Hope this a pointer in the right direction for you. If you have more questions, let me know! :)

Cheers,  
Sven

Note: I work for K15t which is the company behind Scroll Viewport.


Tags: cloud

confluence-cloud
How to use/install "Content by Label Macro" on confluence cloud?
Asked by Goddijn:

i wanted to use the "Content by Label Macro" but it seems its not in the standard installation of confluence cloud, or i cant find it.

is there a easy way to use or install this?

or am i just not looking in the right spots?


Answers:
author: Goddijn
body: my collegue just found it, i was searching for macro, but should just use "content by label"


Tags: cloud

confluence-cloud
???????? ? ??????? (Search problems)
Asked by ????? ????????:

Sometimes, when entering in the search, it does not find 3 letters and with 4 it does not find it, and only starting from 6-7 can it find. And sometimes it finds with 2-3 letters in a word.

What you need to do to offer options after entering 3 letters?

(??????, ??? ????? ? ?????? 3 ???? ?? ???????, ??? 4 ?? ??????? ? ?????? ??????? ? 6-7 ????? ?????. ? ?????? ??????? ? 2-3 ????? ? ?????.  
??? ????? ??????? ????? ????????? ???????? ????? ????? 3 ?????)


Answers:
author: Brant Schroeder
body: [@????? ????????](/t5/user/viewprofilepage/user-id/4659866) Welcome to the Atlassian community

It should start most searches at 3 letters. I know that some require more because of special characters or reserve characters. Do you have an example of some of the searches that are not working?


Tags: server
Display who is editing page right now
Asked by Igor Zhabrovsky:

Is there a way to display on the page that page is being edited and by which user via macro or something else?


Answers:
author: Bill Bailey
body: If you want to view that information while viewing the page, you would need to create your own user macro that runs custom javascript on the page.

But as [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) suggests, seems like a lot of effort that won't provide a lot of detail to the user. The user could always just edit the page to see who is editing, and the close out when they are done. Much easier and less time to implement a procedure than develop a macro.

comments: author: Igor Zhabrovsky
body: I see, thx for reply


author: Nic Brough -Adaptavist-
body: Ok, a step back. Why? What would this tell the user viewing it that would cause them to change what they are doing?


author: Dave Mathijs
body: Hi [@Igor Zhabrovsky](/t5/user/viewprofilepage/user-id/734390) , when collaborative editing is enabled and you are in Edit mode on a page, you can see who's currently editing the page by the avatars in the above right corner. Or would you like to see this when you're viewing the page?

comments: author: Igor Zhabrovsky
body: Yes, i would like to see it when viewing page


Tags: confluence-server

server
I am having issues with editing a page on confluence
Asked by Audrey Opoku:

I am unable to do the work of completing minutes on confluence page, the error message above appears.


Answers:
author: Audrey Opoku
body: I have posted the image![confluence error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/172186i4F77C528B40F27B4/image-size/large?v=v2&px=999 "confluence error.PNG")This is the error message that comes up.

comments: author: Andy Gladstone
body: Thanks. Sorry I am not familiar enough with this issue to assist. Hope someone else in the community can!


author: Andy Gladstone
body: [@Audrey Opoku](/t5/user/viewprofilepage/user-id/4659830) there is no image of the error, can you please paste it in this post so I can try to assist?


Tags: confluence-server

server
How to configure sidebar for default spaces template?
Asked by Diana Gridina:

Hi,

I'd like to change the default list of pages in the sidebar for a blank space. Meaning - when a person creates a new blank space they don't need Overview, Blog, Analytics, Calendar in the sidebar. Is there a way to configure this list?

(so people would not have to delete it in every space manually each time)

Thank you!


Answers:
author: Dave Mathijs
body: Hi [@Diana Gridina](/t5/user/viewprofilepage/user-id/4659836) , welcome to the Atlassian Community!

Confluence Cloud doesn't offer the "Space Blueprint" functionality.

The suggestion for this request was rejected.

Please note that page and space blueprints for Confluence are plugins and require development skills to produce.

Have a look at this page for more info: [Creating blueprints with Confluence Connect](https://developer.atlassian.com/cloud/confluence/multi-page-blueprints-with-confluence-connect/)

I do understand your request, but I don't think there's an easy way to create a space without these default functionalities.

I hope this answers your question, please accept the answer if it does.

comments: author: Diana Gridina
body: Thank you for the answer!


Tags: cloud

confluence-cloud

side-bar

space
How to enable HTML for my confluence page design?
Asked by mohan.setiawan:

Hi Guys,  

I am really new to this Confluence page thingy.  
My question is how can I input HTML in my page confluence page for designing the page and create some HTML elements such as buttons?  

I really appreciate it if you can help me on this matter...  
Thank you.


Answers:
author: Bill Bailey
body: Yes, as [@Vikrant Yadav](/t5/user/viewprofilepage/user-id/1801711) suggest, the insert HTML macro is the way to go. BUT be advised is that you will need to use inline CSS styling. THere is no way to modify the CSS at an space or instance level. A big limitation of the Cloud.

But I am going to assume that you will want the button to do something. However, you cannot write your own macro for Cloud easily. THere is an app available that would allow you to trigger javascript with your button:

[html-macro-for-confluence-cloud](https://marketplace.atlassian.com/apps/1212279/html-macro-for-confluence-cloud?tab=overview&hosting=cloud)


author: Vikrant Yadav
body: Hi [@mohan.setiawan](/t5/user/viewprofilepage/user-id/4445040) You can use "Insert Markup" to put HTML. ![markup.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/172112iE998668919CF82C5/image-size/large?v=v2&px=999 "markup.PNG")

Thanks

V.Y

comments: author: mohan.setiawan
body: Hi Vikrant,

Thank you for your help.

I've tried yesterday. Unfortunately, I can't find the Markup that you mentioned.  
Is there anything that needs to configure before we can access it?

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


Tags: cloud

confluence-cloud
script runner multiple condition
Asked by Spam Petya:

Hello,

I am using on premise confluence server, and using script runner. I have set up a custom event listener and I am lintening for LabelAddEvent. But it should only do things when the added label is a newly created. You can ask why am I not using the LabelCreateEvent. Because I need informations like the label name ( event.getLabel()), and the page name (event.getLabelled() as Page), where the label were added. These informations I can only get from the labeladd event.

So my solution is working but it is fireing in every labeladd event insted of label created. How could I modify this?


Answers:
author: Brant Schroeder
body: [@Spam Petya](/t5/user/viewprofilepage/user-id/4659772) Welcome to the Atlassian community

I would recommend submitting an issue to support here: <https://productsupport.adaptavist.com/servicedesk/customer/portal/13/user/login?destination=portal%2F13>


Tags: confluence-server

scriptrunner

server
$content.lastModificationDate.getTime() does not returning timestamp
Asked by Nallusamy Narayanaswamy:

I am trying to write a user macro which will return difference days between current date and last modified date.

But, $content.lastModificationDate.getTime() does not returning anything.

Can someone please help?


Answers:
author: bill_bailey
body: Yeah, some of the methods are a bit funky. Here is code I have used to get the year for a copyright

```
#set ($year = $lastModificationDate.getYear()+1900)
```

But I think what you need to do is use the date formatter. For example,

```
$action.dateFormatter.formatDateTime($page.getLastModificationDate())
```

And then work your magic from there.

And here is another example that might help you:

```
#set ( $dateInfo=$action.dateFormatter.formatGivenString("yyyy-MM-dd HH:mm:ss Z", $content.lastModificationDate) )
```

comments: author: Nallusamy Narayanaswamy
body: Hi [@bill_bailey](/t5/user/viewprofilepage/user-id/4421243)

Thanks so much for the response. I think, I need to timestamp.

\`

```
$action.dateFormatter.formatDateTime($page.getLastModificationDate())?
```

This returns date Dec 13, 2021 16:25 Mon .

If I get the timeStamp, then I can find the difference between last modified and created.

Do you know how to get it?


author: Bong Chit
body: [@bill_bailey](/t5/user/viewprofilepage/user-id/4421243)

$action.dateFormatter.formatDateTime($page.getLastModificationDate())


Tags: confluence-server

server

user-macro
I?ve set up the basic for an online course with only four students and they are unable to connect.
Asked by Marlene:

I have enrolled in the basic feature with 4 students and they are unavailable to communicate with me on the board.


Answers:
author: Michael Pryor
body: Hi Marlene,

Have you gone through our getting started guide here: <https://trello.com/en-US/guide>

It could help uncover the problems you may be having.

I'm not sure why they are unavailable to communicate, but if you invite them to a board and they sign up and join your board, they should be able to leave comments and make new cards on your board.


author: Marlene
body: Please help!
How to delete a board you did not create
Asked by Whitney_Schoenfeld:

Several members of our staff use Trello. We have had some staff leave and no longer work for us, but we seem to have no way to delete their boards because we did not create them. These staff no longer have access to their email accounts even if we reached and asked them. I'm an admin of everything else but not these boards that were created before my time. Any tips or tricks on how to delete these boards? "Close Board" is not an option for me. I can only "Leave Board." Thanks!


Answers:
author: Iain Dooley
body: [@Whitney_Schoenfeld](/t5/user/viewprofilepage/user-id/3902847) if you no longer want or need the boards then leaving the board is no different from closing it really.

Also, do they have email addresses in your domain? If so you can just recreate those emails, gain account access and go about it that way.


author: Michael Pryor
body: Hi Whitney,

I think you are looking for the Admin privileges in our Business Class product: <https://help.trello.com/article/714-business-class-user-guide#Admin-Privileges>
Copying Tasks to a list automatically
Asked by Christine_Barbacki:

New to Trello!

I just started with the "Work from Home Planner" and the tasks on the "To-Do This Week" list are supposed to auto-copy to the day of the week lists. But they're not, even though I put in a due date for each item. What do you think I'm doing wrong?


Answers:
author: Iain Dooley
body: [@Christine_Barbacki](/t5/user/viewprofilepage/user-id/3902785) where did you see the "work from home planner"? Is it a board template? or a blog article or something?

comments: author: Christine_Barbacki
body: Yes it's a board template by TalentHub - just saw it on the top of the template section.


author: Iain Dooley
body: [@Christine_Barbacki](/t5/user/viewprofilepage/user-id/3902785) I can't see anything about auto copying tasks in the "how to use this board" card:

<https://trello.com/c/aEN18ncW/4-how-to-use-this-board>

I think they're just using passive voice instead of active voice, it would be clearer if they said "Copy cards from To-Do this week here".

You could, of course, use Butler to automate the copying of cards according to your requirements though.


author: Christine_Barbacki
body: Ok I'll try that thanks!
En la versi?n gratuita. ?Existe un l?mite de almacenamiento total por usuario?
Asked by Gabriel Mart?n:

No me refiero al peso m?ximo de 10MB por fichero sino si existe alguna limitaci?n global de peso por Tarjeta, Lista, Tablero o Usuario.


Answers:
author: Soumyadeep Mandal
body: Hi, [@Gabriel Mart?n](/t5/user/viewprofilepage/user-id/3878165) ,

There are no limits on Boards, Cards \& Lists in Trello.

Visit the below link for more information in pricing and features!

<https://trello.com/en/pricing>

comments: author: Gabriel Mart?n
body: Muchas gracias!


author: Soumyadeep Mandal
body: You're welcome!
I entered the wrong user name
Asked by Eak@2016:

Hi

I entered the wrong user name. Can I change this please.


Answers:
author: Eak@2016
body: Thanks but i can't change the username I login with right?


author: Monika Rani
body: Hi [Eak@2016](/t5/user/viewprofilepage/user-id/3902632) ,

Welcome to the community! please check in this link to know how to change the username.

<https://help.trello.com/article/728-changing-your-username>

comments: author: Monika Rani
body: [Eak@2016](/t5/user/viewprofilepage/user-id/3902632) you can change the username that you already login with.

Please click in this URL and change it: <https://trello.com/my/profile>

You need to choose the unique name which is not owned by others.


author: Iain Dooley
body: [Eak@2016](/t5/user/viewprofilepage/user-id/3902632) yep, you just go to Profile and Visibility:

![2020-05-05 at 4.14 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/93444i33D410AB57AE7742/image-size/large?v=v2&px=999 "2020-05-05 at 4.14 pm.png")
Report Building for weekly summary
Asked by Pamela_Agada:

> I used this article below to build my reports for different team members. My goal is to have a weekly summary of ongoing and completed tasks but nothing came up. This is how I received all the emails. Can anyone help with building a command for weekly summary that will have the information attached to the card? The source i used for the current report <https://community.atlassian.com/t5/Trello-articles/Writing-your-first-Report-with-Butler-for-Trello/ba-p/1238685>![Geoff.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/93369i6C91D0E37EB517D2/image-size/large?v=v2&px=999 "Geoff.PNG")![Hakan.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/93370i7CB14CFE48C2317E/image-size/large?v=v2&px=999 "Hakan.PNG")


Answers:
author: Iain Dooley
body: [@Pamela_Agada](/t5/user/viewprofilepage/user-id/3902532) can you please post screenshots of your Butler commands?

comments: author: Pamela_Agada
body: It's pretty much the same command i use for each team member, the card names are different on each board but same command![hakan board commands 1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/93507i5041ECC2CCE0977F/image-size/large?v=v2&px=999 "hakan board commands 1.PNG")![jay board commands.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/93508i99256CF3102690A3/image-size/large?v=v2&px=999 "jay board commands.PNG")


author: Iain Dooley
body: [@Pamela_Agada](/t5/user/viewprofilepage/user-id/3902532) okay so the issue as far as I can see is that you're not assigning the report content to a variable. See how your report email message has that "{$Due_Today}" in it? You either have to use the default {$report} variable OR you have to specifically assign your content to a variable:

![2020-05-06 at 11.01 am.png](https://community.atlassian.com/t5/image/serverpage/image-id/93575i183D54FAC740B950/image-size/large?v=v2&px=999 "2020-05-06 at 11.01 am.png")
Card Repeater - after dragging card into DONE want card to repeat and add 1 month from current date.
Asked by Marco_Nieto:

Hi, I want to use trello for maintenance of refrigeration and HVAC equipment. The frequency varies as to when I need to service a particular unit. In a perfect world I would complete the task on the date specified on card. However, sometimes I can be a week or two behind. So if I set a card/task for the 1st of a month but don't actually complete it until the 15th I would like the next card generated to add one month to the date the task was completed instead of saying due date is on the 1st again. Is this possible? Thanks


Answers:
author: Iain Dooley
body: [@Marco_Nieto](/t5/user/viewprofilepage/user-id/3901982) I created this exact same thing for my house: things have maintenance periods, and if you don't get to it right on the due date, the next maintenance period should be X days away from today, not from the previous due date. You can use Butler for this:

![2020-05-05 at 4.22 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/93446i269121F395B08FD2/image-size/large?v=v2&px=999 "2020-05-05 at 4.22 pm.png")