You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building a report using the Trello gem, which is totally awesome! I am trying to find cards in lists that have particular labels, and am having a bear of a time figuring it out. I have lists that are called "sprint" (like agile) and then some cards in those lists have the "project" label.
In other words, among the sprint_lists[1].cards i want to find any card whose card_labels array contains a label with the id of 54d4de9c74d650d5671cb3c7.
The nested enum-y/find-y thing above works, but only returns the first card in the list with that label.
Is there an easier way to find cards in a list with a particular label?
The text was updated successfully, but these errors were encountered:
I'm building a report using the Trello gem, which is totally awesome! I am trying to find cards in lists that have particular labels, and am having a bear of a time figuring it out. I have lists that are called "sprint" (like agile) and then some cards in those lists have the "project" label.
Finding the sprints is pretty easy:
And I will iterate over each list and then try to find its cards... but there doesn't seem to be a way to "find card with label" in any easy way.
So, given the cards in a particular list, eg
sprint_lists[0].cards
I am trying to do something like:In other words, among the
sprint_lists[1].cards
i want to find any card whosecard_labels
array contains a label with theid
of54d4de9c74d650d5671cb3c7
.The nested enum-y/find-y thing above works, but only returns the first card in the list with that label.
Is there an easier way to find cards in a list with a particular label?
The text was updated successfully, but these errors were encountered: