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

How to create a reminder (butler, Zap or any) for a due date in a checklist task

tamara I'm New Here Sep 15, 2020

Hello everybody

 

I would like to set a reminder for due dates set within the checklist (similar to the way we can set reminders for a card due date (in the card on via butler). Any ideas?

Thanks

1 answer

0 votes
Iain Dooley Community Leader Sep 15, 2020

@tamara this isn't available yet, either as a native notification nor as a Butler command. I would expect more developments in this area though, since checklists with due dates are a relatively new feature.

@Iain Dooley  Sounds like a good hack to work on with my new found favourite of using {$report_variable}

@Iain Dooley this is my hack. Use calendar command to trigger daily to find list of cards with incomplete checklist. Feed this to an endpoint using Http Request. For each checklist item with due - now <= 1 write comment to card.

Question : is this sufficient to activate a notification of some kind?

Scratch code below using Card due date to test instead of item['due'] since I do not have advanced checklist.

para = {
"report_variable": "5f263e1...d1612d396\n5f56131..b1cd6930b\n5f5611df4.....33e95c05\n"
}
sp_variables = ""

item_list = para['report_variable'].split("\n")
item_list.pop() #remove last element

format = "%Y-%m-%dT%H:%M:%S.000Z"
time_now = datetime.utcnow()


for item_id in item_list :
trello_card = client.get_card(item_id)
for cl in trello_card.checklists:

for item in cl.items :
if item['due'] == None and item['state'] == 'incomplete': #this and few lines will be changed for deployment with advanced checklist
#pass
#else:
item['due'] = trello_card.due

datetime_obj = datetime.strptime(item['due'],format)
difference = datetime_obj - time_now
if difference.days <= 1:
if item['idMember'] != None:
assigned = client.get_member(item['idMember'])
trello_card.comment('''@{} Checklist item {} due on this card'''.format(assigned.username, item['name']))
else:
trello_card.comment('''Checklist item {} due on this card'''.format(item['name']))

 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,631 views 15 7
Read article

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