Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I'm developing a Butler report for our weekly check-in meeting, and I haven't found a way to sort the order that my cards are displayed. I want to sort by the card's Due Date. Is this possible?
@Daniel Morrow sounds like an interesting hack to work on with my Superhero Power
https://www.notion.so/Superhero-Power-ac42df32932f423fbbe2d60cf2d0dbab
Thanks @milynnus , I'll investigate this solution as well.
As a former coder turned podcast producer, this is giving me a chance to dust off those old skills.
Thanks guys!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Morrow completed code and test. Will update my Notion pages by EOD
Append the sort parameter to each line of report. For dates like due date you need to format it using cardduedate~YYYYMMDD. The program will strip the sort parameter and return {httpresponse.sorted_report} and you can mail it out.
every day at 10:40 pm, create a report in variable "report_to_sort" with all cards with a due date using pattern "{cardduedate~YYYYMMDD}^{cardname} was created on {cardcreationdate}", post to url "https://25368.wayscript.io/butler/?registry=<registry ID>&module=5f8e4ccf1787ba5a284d5f5a" with payload "{\"report_variable\" : \"{$report_to_sort}\", \"reverse\" : \"Yes\"}", and send an email notification to "sgi.collective.sg@gmail.com" with subject "Sorted Report" and message "From\n{$report_to_sort}\n\nTo\n{httpresponse.sorted_report}"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Morrow you could have another Butler command that sorts lists by due date and execute that prior to the report being generated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, @Iain Dooley . That would work but I'm grouping in the document on something other than what list they're in. And I don't want to modify the board at all when generating the report.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Morrow hmmm might have to go with a custom API call then, for example this Trellinator code gives me date ordered list of cards in my "Coming up" list on my "iaindooley" board:
https://gist.github.com/iaindooley/dd42ccef801e4b14daf13e14005e62c3
You can execute Trellinator code via BenkoBot:
or you can set it up under Google Apps Script:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.