The 'card-buttons' not working properly in Trello Power-Ups.

test user October 6, 2024

I had a Power-Up on one of my Trello boards, and it was working fine until about a week ago. This Power-Up used two card-buttons, one of which had a condition: admin, but now it is visible to everyone, even though this issue did not exist until a week ago. Additionally, there was another button that was linked to a URL, but that link has stopped working as well. These two problems have only recently occurred.

2 answers

0 votes
Çiğdem Büyükaşik
Atlassian Partner
October 6, 2024

Hello @test user

Welcome to the community! Is the Power-Up one of those made by Trello? If it's a third party Power-Up, have you contacted the builders/company? 

test user October 6, 2024

Thank you!

it's a custom power-up.

this is code:

window.TrelloPowerUp.initialize({
'card-buttons': async function (t, opts) {
let items = []

if (someCondition) {
items.push({
icon: './assets/images/image.svg',
text: 'X',
condition: 'admin',
callback: (t) => {
return t.popup({
title: 'title',
url: './views/index.html',
height: 400,
args: {APP_URL: 'url'}
})
},
})
}

return items;
},
});

 

Jeff Day
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2024

Hi @test user

Can you check back and see if the issue persists? The Trello team just merged a fix for this.

0 votes
test user October 6, 2024

as you can see i set 

condition: 'admin'

but when try as a regular member i can access the button!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events