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

@mention the Board admin

Deleted user Oct 22, 2020

I am trying to figure out a way to use a Butler rule to automatically @mention the board admin(s) in a comment when a particular rule is triggered. I want to be able to do this dynamically for any board that the rule is enabled. I also want to avoid using @board so that I don't spam all of the board members... Does anyone have any idea on how this can be achieved with Butler. 

1 answer

@[deleted] 

Probably need to use Butler Http Request to fetch the usernames of admin for the board and output {httpresponse.mention_list} where mention_list is "@admin1username, @admin2username,...etc"

You can embed it with your rules, but not the trigger for comment....since you need to construct the comment ahead of the trigger.

The mechanism to handle the above is here. Just need to finalise my scratch code before writing this.

trello_card = client.get_card(para['card_id'])

board = client.get_board(trello_card.board_id)
mention_list = []
for mbr in board.admin_members():
mention_list.append('@{}'.format(mbr.username))

sp_variables = json.dumps({"mention_list" : ', '.join(mention_list)})

Using a webhook on an update to a comment to inserted the before will probably result in a loop.

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

193 views 10 9
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