Forums

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

Butler Calendar Command's Trigger, conditioned by "List X is not empty"

Doron_Cohen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 11, 2020

Hi, For a project items I would like to perform this logic 5 minutes before every midnight:

If the list "Done Today" is not empty, rename it to "Current Date", and create a new list "Done Today".

I have this command at the moment:

every day at 11:55 pm, rename list "Done Today" to "{date}", and create a new list named "Done Today" in position 3

Problem is that it fires also in days when nothing was done (completed). In such a day it creates an empty list. I would like to avoid from create empty lists.

It seems a trivial task but I can't see how to create the appropriate Butler rule.
Is this possible?

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Iain Dooley
Community Champion
March 11, 2020

@Doron_Cohen Yeah it looks like the ability to count cards and conditionally take action based on the result didn't make it into the powerup version of Butler, here's a Trellinator command that would do it:

https://gist.github.com/iaindooley/1f0257a436af9bab9efef1ea3ece3328

You can read more about Trellinator here:

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Introducing-Trellinator-Automate-Trello-with-Google-Apps-Script/ba-p/925271

Doron_Cohen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 12, 2020

Thanks @Iain Dooley !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events