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

Find nearest neighbors in a list

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

@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})

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
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...

67 views 4 3
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