The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

@mention the Board admin

Deleted user
October 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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
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 Champions.
October 22, 2020

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

TAGS
AUG Leaders

Atlassian Community Events