Forums

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

Butler rule to copy new assigned due date to copied card does not work

Carla Ruhl August 13, 2020

I have the following butler rule:

when a due date is set on a card with custom field "Roadmap" checked, find a card titled "{cardname}" on board "Tape Interop Roadmap", move the due date by the same amount of time, and move the card to the top of list "{triggercardduedatequarternumber}Q{triggercardduedateyear}" on board "Tape Interop Roadmap"

The problem is that if the card does not already have a due date assigned (i.e. I'm adding the due date after the copy to the other board), the date is not updated on the copied card.

I'm looking for an option in butler to use the {triggercardduedate} variable.
Any suggestions?

2 answers

0 votes
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 Leaders.
August 13, 2020

@Carla Ruhl sorry I have to ask as I have not use Butler enough and no quota left. In fact I am looking out for what Butler cannot easily do to build a list add-on via HTTP REQUEST “as a service” Are you saying that the due date of the originating card is not available when using the FIND?

It would be easily to add as you would still have {triggercardidlong} and put that in the {httpresponse.triggercardduedate}. The unknown would be format Butler need of the date. 

Vongsawat
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 Leaders.
August 13, 2020

Retrieving due date is easy enough with Butler variables.

The limitation is in setting a due date to an arbitrary number. Butler only allows things like "Tomorrow", or "the 2nd Friday of Next Month" etc. You cannot set it to {triggercardduedate} or {foundcardduedate} etc.

Like Carla Ruhl likes this
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 Leaders.
August 13, 2020

Given @Vongsawat  reply and programming with dates in Trello, it likely that my add on will have add the date for the user instead. In python, to update the date in Trello I have to pass a datetime object and not a string. 

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 Leaders.
August 13, 2020

@Carla Ruhl @Vongsawat using my Butler add on I can effect the transfer of due date from one card to another. In the example below it is from the trigger card to the found using a Lookup. If it is Find it will just be {cardidlong}. I am unable to test it on Butler because of quota issue but the http request and return is proven. The return date field is actually not required but provided to give some assurance of change done.

 

{"from_card_id" : "{triggercardidlong}", "to_card_id" : "{foundcardidlong}" }

Superhero Power Output:

{"due_date": "2020-08-26 04:45:00+00:00"}

Carla Ruhl August 14, 2020

@Vongsawat, why not allow the use of {triggercardduedate} or {foundcardduedate} ?  This should be a highly used variable and would be an enhancement to butler.

Vongsawat
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 Leaders.
August 14, 2020

@Carla Ruhl 

? As I said, those are existing variables that you can certainly use, yes. They are listed in the Variables help page even.

The limitation is the Set Due Date command, not the variable.

Like milynnus likes this
0 votes
Vongsawat
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 Leaders.
August 13, 2020

I've yet to find a way to set an arbitrary due date via Butler :(

That said, you could make an "Add New Due Date" Card Button that makes both cards due tomorrow.

Then modify your existing rule so it only triggers when you move a due date (instead of set).

It'll be janky though, as setting the due date normally would break the system...

That said, if you are doing card mirroring, have you looked in to powerups like Unito? I've never used it myself, but it specifically does card mirroring, so perhaps it could solve the due date portion of your problem

Carla Ruhl August 14, 2020

I did look at Unito, but this was so overloaded for my simple case.  Also, it seemed to not be allowed by my company, so I was not able to install and try.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events