youngmon/atlassian-qna huggingface dataset:
Get all pages for a confluence user via Forge
Asked by shawn:

Here is my current code. It gets the first 250 page records (limit=250.) But it returns a 401 error ({ code: 401, message: 'Unauthorized; scope does not match' }) from the second request for the remaining pages.  

here is my function \`\`\`

async function getAllPages(url: string, allPages: any\[\] = \[\]): Promise\<any\[\]\> {  
const confluenceUrl: Readonly\<string\> = url;  
const routeUrl = route\`${confluenceUrl}\`;  
//@prettier-ignore-next-line  
let pagesFromApi = await api.asUser().requestConfluence(route\`${url}\`, {  
headers: {  
Accept: 'application/json',  
},  
});  
console.log(await pagesFromApi.json(), 'this is pages from api');

console.log(  
pagesFromApi.status,  
pagesFromApi.statusText,  
'this is pages from api',  
);

const res = await pagesFromApi.json();  
console.log(res.results, 'this is res');  
console.log(url, 'this is the url');

allPages = allPages.concat(res.results);

if (pagesFromApi.headers.has('link')) {  
const link = pagesFromApi.headers  
.get('link')  
?.match(/\<(\[\^\>\]+)\>;\\s\*rel="next"/)?.\[1\]  
.replace(/==/g, '');  
if (link) {  
console.log(\`${link}\`, 'this is the link');

allPages = await getAllPages(\`${link.replace(/\\s+/g, '')}\`, allPages);  
}  
}

return allPages;  
}

resolver.define('getText', async req =\> {  
let pages = await getAllPages('/wiki/api/v2/pages');  
// console.log(pages, 'this is pages');  
console.log(pages.length, 'this is pages length');

return 'Hello, world!';  
});

\`\`\`  
and here are the scopes \`\`\`

permissions:  
scopes:  
- read:confluence-space.summary  
- read:confluence-props  
- read:page:confluence  
- read:confluence-content.all  
- read:confluence-content.summary  
- search:confluence  
- read:confluence-content.permission  
- read:confluence-user

\`\`\`  
Please help!


Answers:
author: Alex Koxaras _Relational_
body: Hi [@shawn](/t5/user/viewprofilepage/user-id/5179527)

I would suggest to create a post at the developers' community, since you'll have more chances of getting a proper reply <https://community.developer.atlassian.com/>


Tags: cloud

confluence-cloud

forge
Page Loading Error for specific page
Asked by Jonggab Park:

If I edit the following link, it alwasys shows the page loading error popup.

<https://smartthings.atlassian.net/wiki/spaces/STDK/pages/edit-v2/1794312513>

Other pages have no problem, but only this page has the issue for editing.

This is popup message.

? ???? ???? ?????.  
??? ?????. ? ? ?? ?? ??? ???. ??? ?? ???? Atlassian ??? ??? ??? ????.  
?? ?? ??: TypeError: Failed to fetch  
Plz, check my request.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Jonggab Park](/t5/user/viewprofilepage/user-id/5183361) ,

welcome to the ATlassian community!

Try first to clean your browser cache. If the error still persists try Yto submit a support issue to Atlassian so they can look at this on your instance <https://support.atlassian.com/contact/>

Hope this helps,

Fabio


Tags: cloud

confluence-cloud
Why can?t I import drive files anymore??
Asked by Diego Ante:

Within the last couple of weeks, I've been experiencing problems when I try to import Google Docs, a message pops up saying that Confluence ran into issues because the file may the wrong type, password protected, or read-only. But any of these options apply to my case, everything was working Ok before.

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


Answers:
author: Heather Blue
body: Hi did you hear back about this or figure it out? I'm getting the same message trying to import Gdocs this week


Tags: cloud

confluence-cloud
Table of Contents Macro Not Keeping Settings
Asked by Robert Mullins:

So I've been toying with creating/editing custom templates for our company.  

One of the templates has a 'Table of Contents' macro.

If edit the Maximum heading value, it doesn't save when I save the template.  
It saves the Minimum heading value, just not the 'Maximum' value.

Advice?


Answers:
author: Robert Mullins
body: Nevermind. It eventually started working, but was a bit glitchy.  

Couldn't get 'Exclude' to work, but I have it figured out. Not sure how I fixed it, but it started working.  

Sorry for the distraction.


Tags: cloud

confluence-cloud

table-of-contents
how to retrieve @user on page
Asked by Saira:

Hi,

I want to create an automation to send reminder to the person who is mentioned on a page with [@User](/t5/user/viewprofilepage/user-id/115298) mention. Is there a way to store this in a variable in the automation?


Answers:
author: Trev Angle
body: Hi [@Saira](/t5/user/viewprofilepage/user-id/4179012), this is possible! Unfortunately it is not documented clearly, but the 'User mentioned' trigger does output the mentioned user with the {{user}} smart value. Here is a working example of a rule that adds a user's name to the audit log when they are mentioned somewhere:

![Screenshot 2023-04-03 at 10.00.19 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/249512i15A95D20D7D36BF1/image-size/large?v=v2&px=999 "Screenshot 2023-04-03 at 10.00.19 AM.png")

If your requirement is to send the reminder with some delay, that would be a bit trickier. The 'User mentioned' trigger only acts when the user first gets mentioned. Please let me know if the 'User mentioned' trigger is not sufficient for your use case.

comments: author: Alex Koxaras _Relational_
body: [@Trev Angle](/t5/user/viewprofilepage/user-id/5027568) thank you pitching in with an awesome and unexpected answer!

You know that "they should put it on the box"!! :)


author: Saira
body: This did not work for me. ![Screen Shot 2023-04-03 at 10.31.20 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/249547i6751D77003016DC8/image-size/large?v=v2&px=999 "Screen Shot 2023-04-03 at 10.31.20 AM.png")


author: Saira
body: There's nothing that showed up in the audit logs


author: Trev Angle
body: [@Saira](/t5/user/viewprofilepage/user-id/4179012) Can I ask how you are trying to test the rule? If you are trying to test the rule by mentioning yourself that won't work, because the Confluence backend does not treat these as true mentions (mentioning yourself doesn't generate a notification)


author: Alex Koxaras _Relational_
body: Hi [@Saira](/t5/user/viewprofilepage/user-id/4179012)

Unfortunately I didn't find any proper indication on the confluence cloud documentation about getting the mentioned user as a smart value:

* <https://support.atlassian.com/cloud-automation/docs/triggers-in-confluence-automation/>
* <https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/>


Tags: cloud

confluence-cloud
Confluence Backup File Download / Upload Automation?
Asked by Gail:

Hi Community.

We currently have our Confluence full and partial (attachments - no attachments) backups running on a regular automated schedule. It works perfectly. My dilemma is that when we do a **full** backup, the file is so large that it takes at least an hour to download from cloud to my laptop then 2-3 hours to upload from my laptop to Google Drive.

Does anyone know a tool or process that would do this automatically? I worked with Atlassian Support to see if we can use API to download the backup file only to find that the API has been deprecated.

Thanks in advance!


Answers:
author: Von Bandong
body: Hi Gail,

Seems that this feature has been requested by the community for a long time.

You can vote on the issue here [\[CLOUD-6498\] Automatic Backup generation in Backup Manager.](https://jira.atlassian.com/browse/CLOUD-6498)

Hopefully Atlassian considering including it in their Cloud roadmap.

Cheers,

Von


Tags: backup

cloud

confluence-cloud
External web site pull of Confluence pdf
Asked by Rob St-Germain:

I have a public pdf I created in my Confluence knowledgebase. I can copy the public download link address of this pdf in my Confluence knowledgebase.

I have an external public web site where I would like to display my pdf.

The problem is that the public download link address DOWNLOADS the pdf to my PC. Is there a way to provide the link address of this pdf in my Confluence knowledgebase where it does not DOWNLOAD the pdf to my PC.

The effect I want is that the web site (using the Confluence link address) pulls the pdf to the web site for viewing in a pdf pop-up viewer on the web site.

If anyone can help it would be appreciated. -Rob


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Rob St-Germain](/t5/user/viewprofilepage/user-id/3913646)

To my knowledge, confluence prohibits the Cross-Origin Resource Sharing, meaning that you can't embed a confluence page to another website. You might want to search for pdf viewer. E.g. [this app](https://marketplace.atlassian.com/apps/1225638/adobe-pdf-for-confluence?hosting=cloud&tab=overview), could do the trick, but I'm not 100% sure.

If a browser download or opens a pdf on the browser, I think that it really depends on the settings of each computer and app used.


Tags: cloud

questions-for-confluence
Page information macro with incoming links
Asked by Chantal Saylor:

Hi, we are looking for a no-cost macro that would populate a page with tagged incoming links. Here is an example:

We have a page that lists a metric and those metrics come with adapters. Each metric and each adapter has it's own page. Each metric could have 50 or so adapters and those can change often. Thus we need something like a tag of some kind that can capture everything automatically so that we don't do the process manually.

I hope someone can help with this request.

thanks


Answers:
author: Brant Schroeder
body: [@Chantal Saylor](/t5/user/viewprofilepage/user-id/5178225) You can use labels and the related label macro in Confluence. <https://support.atlassian.com/confluence-cloud/docs/insert-the-related-labels-macro/> This will require you to maintain labels. I would suggest also coming up with a label naming convention so you can easily organize content with labels.

comments: author: Brant Schroeder
body: [@Chantal Saylor](/t5/user/viewprofilepage/user-id/5178225) if this was helpful can you accept it to help others?


Tags: cloud

confluence-cloud
If we are to hide the page in place, is there an API call for that?
Asked by Ritika Saini:

AIM: To automate the documentation cleanup process in the confluence server. There are various outdated and useless pages in a space. These pages will be reviewed by a team and they'll decide whether to keep the page or "hide" them.

Once hidden these pages won't appear on search. Although these can be viewed by admins.

One way to do this is to create archived space and move useless pages to it. But we are trying to avoid the hassle of creating a separate space for archived pages. So instead is it possible to:

1. **Hide** the page in place?

2. If yes, how can it be achieved (is there any option for this manually)?

3. Is there an API to do this? Or automate this?

( I am looking for solutions which preferably do not involve the use of plugins, unless necessary)


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

There is no "hide" in Confluence. You can archive spaces to remove them from general view, but you're not going to be able to do pages without help from an app.

There are some apps that do enable easy page archiving, but there is another option - you could restrict a page away from all the users (restricting "view page" to a group that has no users is the easiest thing). Even admins will still be able to see them in the "restricted pages" part of a space, but they'll have to de-restrict them to see the content.

You'll still need an app to automate restrictions. Blatant advert here - you can write a script that adds restrictions to pages in Scriptrunner. A simple example is at <https://library.adaptavist.com/entity/restrict-page-based-on-user-group>

comments: author: Ritika Saini
body: Seems helpful for my case. Thank you so much!!


Tags: archive

confluence-server

restriction

server
C# API Example
Asked by Glenn Williams:

I know there are many people who have written C# project to interface with the API, but I can't find any good examples. I'm a decent developer, but have not done any api/async work.

Is there anyone willing to share a stubbed out c# does few simple operations? Create a card, get a list of cards... I need some help, paid or not.


Answers:
author: Carsten Berggreen
body: Maybe check out this package:

Manatee.Trello {#toc-hId--498300757}
------------------------------------


Tags: api

development
? poss?vel adicionar membros para ver e editar apenas um ou mais determinadas listas?
Asked by Leandro Fernandes:

? poss?vel adicionar membros para ver e editar apenas uma ou mais determinadas listas dentro de um quadro?

Ou seja, n?o podem ver todas as listas do quadro, queria que apenas as listas que eu quisesse os membros pudessem ver, e n?o eu ter que criar outro quadro pra poder convidar eles.


Answers:
author: Kleber
body: Eu tamb?m estava querendo fazer essa configura??o, ia ajudar muito na agencia, pois temos o cliente como convidado e seria bacana apenas membros da agencia ver algumas lista pra ser aprovadas antes do cliente ver.


author: Lara
body: Hi Leandro,

Thanks for reaching out!

Currently, Trello doesn't support per-card or per-list permissions---once someone has access to a board, they'll be able to see all cards on it. For now, we suggest creating separate boards for different permissions levels.

Alternatively, there may be a third-party Power-Up that'll allow you to do this. You can find those here: <https://trello.com/power-ups/search?q=share>

Please let us know if you have any other questions or concerns, and have a great day.  
All the best,

Lara  
The Trello Team
Trigger from specific words inside a card name
Asked by Alin Atanasoaie:

Hello.

I am trying to create a rule that requires a trigger from specific words that are contained in the card name.

For example:

If card name contains word "X" AND "Y" AND "Z" then action a, b, c

But I am failing to set the correct syntax in the with a name containg "......" box.

I've tried:

X, Y, Z

"X", "Y", "Z"

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


Answers:
author: milynnus
body: [@Alin Atanasoaie](/t5/user/viewprofilepage/user-id/4948708)

Try with separate individual conditions in the same command.   

BTW "when" is the operative word and not "if".

comments: author: Alin Atanasoaie
body: Thanks, with individual conditions works
Where is Actual Trello Support???
Asked by Andrea Rozman:

I need to actually talk to someone. I don't care if it's chat, or email or I have to send a letter in. Someone tell me how I can get some support for this software that has no reporting capabilities and no way to contact anyone. The contact pages just go round and round and stick me in the community. It's like trying to get support from Facebook. It's non-existent.


Answers:
author: Laura Holton _ACE Rotterdam_
body: Hi [@Andrea Rozman](/t5/user/viewprofilepage/user-id/4931588) ?

To contact Trello Support directly you need to raise a support ticket here \>\> <https://trello.com/en-GB/contact>

Unfortunately, there is no way to contact them (e.g. phone number, email etc.). Just make sure to keep an eye on your junk/spam folder as occasionally it can find its way into there.

I hope this helps but if you have any other questions just ask away ?

All the best,

Laura

comments: author: Andrea Rozman
body: [@Laura Holton _ACE Rotterdam_](/t5/user/viewprofilepage/user-id/2568325) I've been to that link and it just takes me back here. It provides no place to send an email or submit a ticket.


author: Laura Holton _ACE Rotterdam_
body: Hi Andrea,

You need to scroll down to the bottom of the page where it shows 'Contact Support' (underneath the Atlassian Community section) and follow the form fill. You can choose to raise a ticket without logging in or if you're already logged in it should pick that up for you in the form. Either way it doesn't stop you raising a support ticket. This is what you should be able to see:

![Screenshot 2022-05-27 at 13.28.31.png](https://community.atlassian.com/t5/image/serverpage/image-id/199592i9390F8EA7036BB94/image-size/large?v=v2&px=999 "Screenshot 2022-05-27 at 13.28.31.png")

It then comes down to what you're looking to raise a ticket about, the options will guide you to which it feels is most appropriate for example billing, reporting a bug etc. all provide options to raise a ticket. However, if you're looking for how to do something within using Trello it will refer you to documentation and the Community for support.


author: Andrea Rozman
body: [@Laura Holton _ACE Rotterdam_](/t5/user/viewprofilepage/user-id/2568325)

It doesn't really allow me to select anything more than "can't log in" but I fudged my way through. Thanks.


author: Brittany Joiner
body: [@Andrea Rozman](/t5/user/viewprofilepage/user-id/4931588) fwiw, i think it offers more support options for premium users, so if you are one and only see the option to log in, choose that and then explain more in the issue!

Also, as far as reporting capabilities, part of the beauty of Trello is that its a standalone tool but is powered up by power-ups. There are tons out there for reporting, and often the power-ups themselves have terrific support staff that are often willing to onboard you with their power-ups in Trello and get you up and running.

You might be interested in Blue Cat Reports cc [@Robin Warren](/t5/user/viewprofilepage/user-id/3553466)
Not Able to Export Excel Report in Trello
Asked by Jasmin Adlawan:

Hi,

I'm not able to export the excel report in Trello anymore.

I have exported the file before however the report seems to be a little messy and the dates are not showing.

Hoping for your assistance in this matter.


Answers:
author: Brittany Joiner
body: [@Jasmin Adlawan](/t5/user/viewprofilepage/user-id/4948222) are you using the default trello export option or a power-up? I just gave it a try on one of my boards and seems to work. What do you mean when you say that it seems to be a little messy? Can you share a screenshot of how it looks and what an old report looked like that was not messy?
how do i convert a guest to a member in trello?
Asked by Diversity Equity Inclusion:

have 2 members who inadvertently are classified as guests. how do I correct so those 2 guests are actual members?


Answers:
author: Hannah Humbert - Simpla Workflows
body: Hi [@Diversity Equity Inclusion](/t5/user/viewprofilepage/user-id/4948014) ! As Brittany mentioned, if these guests have access to more than one board, they get billed the same as a workspace member. However, if you want to make these users workspace members so that they have access to the workspace and can see all boards within that workspace, you'll need to change them from guests to workspace members. You can do this by going to your workspace settings and navigating to "Guests". Here you'll see all your multi-board guests that are billed, as well as your free single-board guests. From there you can turn these guests into workspace members as shown below:  

![add guest as ws member.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/199731iF9691B78051A8266/image-size/large?v=v2&px=999 "add guest as ws member.PNG")  

Also, see <https://help.trello.com/article/715-inviting-people-to-a-workspace> "Converting a board Guest to a Workspace member"  

comments: author: Diversity Equity Inclusion
body: We have the free version. does this information still apply? thanks


author: Hannah Humbert - Simpla Workflows
body: [@Diversity Equity Inclusion](/t5/user/viewprofilepage/user-id/4948014) Yes! Still applies :) you just won't be charged for these members that's all.


author: Diversity Equity Inclusion
body: thank you for response; i do not have the same menu as in your illustration. (and appreciate the illustration because makes so obvious) so how do i access "members menu?"


author: Hannah Humbert - Simpla Workflows
body: [@Diversity Equity Inclusion](/t5/user/viewprofilepage/user-id/4948014) have a look at the guide I linked in my first response. You can find members in the Workspace Overview. Or go to <https://trello.com/{workspacename}/members>


author: Brittany Joiner
body: [@Diversity Equity Inclusion](/t5/user/viewprofilepage/user-id/4948014) welcome to the community! my understanding is that as soon as they are part of more than one board they will become members of that workspace and not just guests. I don't think guests is a "role" so much as a non-billable account. Ie, with trello standard and premium workspaces, you're allowed as many single board guests as you want (ie, users that are only on one board in your workspace), but as soon as they join more than one board, they are no longer guests but become members and you have to pay for them each month.
Power Up that moves cards based on due date range
Asked by Larry:

Looking for a Power Up Automation that moves cards from list to list based on their due date and **includes move cards retroactively**. Essentially try not to have to deal with the warning provided below.

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

++**Example**++ : move/copy cards from *Client* list to list *This Week* that have due dates from now to 5 work days away, *Next Week* 6 work days to 10 work days, and *Month* 11 work days to 30 work days away.

Thank you in advance!


Answers:
author: milynnus
body: [@Larry](/t5/user/viewprofilepage/user-id/4919377)

Take a look at the last action under Cascade. It allows you to collect cards into a checklist and the iterate through the checklist to handle the move. Typically you can use this on a card button. Unfortunately it is not available under Calendar. Try it
Adding new user
Asked by TecFac Service Desk:

Hello,

I am attempting to add a new user who happens to have the same email as an older user. It will not allow me to add them even though I have deleted the old users account. I have tried sending an invite to another email and using an SMTP email, both resulting in a page not found. Any idea how I can get my user added to Trello?


Answers:
author: Lara
body: Hi there,

Thanks for reaching out!

Could you please let us know how you deleted the old user's account? Did you log into their account and delete it following the steps in '[Delete your Atlassian account](https://support.atlassian.com/atlassian-account/docs/delete-your-atlassian-account/)'?

If so, when you request to delete an Atlassian account, the account will be deactivated for 14 days (in case you want to cancel the deletion), and *then* permanently deleted.

If 14 days have passed since you've requested to delete the account, please reach out at <https://trello.com/contact> so we can look into it further.

All the best,

Lara  
The Trello Team