Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get checklist name?

Hello,

I'm new at building Power-Ups for Trello. I've followed this tutorial (https://www.youtube.com/watch?v=G9SCcfaOMqM) to learn something about this.

To get started, I just want to show the checklist's names as a card badge. I've built the card-badge but I don't know  how can I get the cheklist's names.

Thank you very much for your help !

1 answer

@Emilio Pardo 

It did this sometime back. This is part of the JS client in which I have in an iframe a list checklist names for the user to select. The endpoint has a python program that looks at the card using card.id to populate the HTML with the checklist names.

From documentation t.card()

Allowed Fields

id, name, desc, due, dueComplete, closed, cover, attachments, members, labels, url, shortLink, idList, idShort, dateLastActivity, badges, customFieldItems, coordinates, address, locationName, pos

So I can't get it directly.

 

var cardSuperCLSelect = function(t){

return t.get('member', 'private', 'token') .then(function(token) {
if (!token) {
console.log('No token found')
}
return t.card('id') .then (function(card) {
return t.popup({
title: 'Superhero Checklist - Select',
url: `/?action=select&card_id=${card.id}&token=${token}`,
height: 200,
});
})
})
};

Thank you for your response!

I'm sorry but I don't understand what that piece of code is doing if you could explain it a little bit it would be helpful. I'm not familiar with tokens or that url in t.popup.

I've read the documentation and I found that t.card() and t.cards() functions have no values to things related to checklists so I don't know what can I do next.

@Emilio Pardo 

Basically it meant that you cannot get to the checklists as it is not supported. 

There should be an alternative

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

155 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you