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

Find nearest neighbors in a list

d0plr-Xfct January 5, 2021

My trigger is a card moving into one of three lists and I want to determine it's nearest neighbors.  How may that be don?e

2 answers

0 votes
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2021

@d0plr-Xfct just (like minutes ago) developed a module to return the leftmost and rightmost list names using. It is not difficult to locate the list before (left) and after (right) of the current list based on a card id. If this is mission critical, you can reach out to me  (see my profile)

 

list_lists = client.get_board(para['board_id']).list_lists()

sp_variables = json.dumps({'leftmost' : list_lists[0].name, 'rightmost' : list_lists[-1].name})
0 votes
Soumyadeep Mandal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2021

Hi @d0plr-Xfct ,

Welcome to the community! We are glad to have you here! Wish you a very happy new year!

Please read these articles/documentation and learn how butler works

https://help.trello.com/article/1198-an-intro-to-butler

https://help.trello.com/article/1181-butler-features-and-quotas

https://blog.trello.com/butler-power-up-trello-automation

https://blog.trello.com/five-easy-butler-rules

Regards,

Soumyadeep (SaM)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events