butler automation not working to check item of linked card
Asked by Gain:

Hi all,

I have a "butler" question. I am trying to do task dependencies, as explained in <https://help.trello.com/article/1165-task-dependencies> but the checking the item part when a linked card is completed is not working for me.

![Untitled.png](https://community.atlassian.com/t5/image/serverpage/image-id/82863i9250A2BF0BE9203A/image-size/large?v=v2&px=999 "Untitled.png")

When the card is moved to "Done (...)" the comment is posted in the linked card but the item does not getchecked...

That means that it can find the linked card, but for some reason {triggercardlink} does not get checked

You can see it in the screenshot below

![Untitled 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/82864iAAD10E0923AFEB76/image-size/large?v=v2&px=999 "Untitled 2.png")

Any ideas? Thanks!!!

Cheers


Answers:
author: Richard Nelmes
body: I had the same problem when following <https://help.trello.com/article/1165-task-dependencies>  
Appending {\*} to {triggercardlink} affected a fix. Ticks are now appearing successfully on my dependant cards with the icon turning green once all pre-requisite cards are moved to List 'Completed'.

My rule is -  
when a card is moved into list "Completed" by anyone,  
for each card linked in the attachments,  
check item "{triggercardlink}{\*}"

I found the solution from <https://community.atlassian.com/t5/Trello-questions/How-to-check-items-on-checklist-when-their-card-is-done/qaq-p/1053901>

I would welcome learning why this works and of any issues it could cause.

comments: author: Brian Adler
body: Your solution didn't work for me; Butler was looking for a checklist item with the literal text "{\*}" appended to the end of the card link URL.

[@claudiuskerth](/t5/user/viewprofilepage/user-id/3882262)'s solution worked for me.


author: Aaron Kain
body: This worked for me, thanks!


author: claudiuskerth
body: Hi,

I had the same problem. It turned out to be the creation of the links:

```
when an item is added to checklist "sub-tasks" by me, convert the item to a linked card in list "sub-tasks" using using pattern "[{cardname}]({cardlink})"
```

After I removed

```
using pattern "[{cardname}]({cardlink})"
```

from the rule and recreated the links, then automated checking of the item in the dependent card with the Butler rule works for me.

claudius

comments: author: Brian Adler
body: I had the same problem, and your solution worked for me. Thank you for posting it!

BTW, the in-app help for the Butler action "convert the item to a linked card" \*recommends\* using pattern "\[{cardname}\]({cardlink})" if you want to "...create a link usable from the mobile Trello app."

I've put in a request to support to change that in-app help.


author: Ludo
body: Hi

Execute the rule, then from butler panel, go to Account ??Usage Log. Can you give a screenshot of the log ?

You will see an error, if not, you will see a trace like this

```
I completed item "https://trello.com/c/jZP" of checklist "Sub Tasks" in card https://trello.com...
```

comments: author: Gain
body: thanks for your reply Ludo!

![Screenshot 2020-02-13 at 09.08.40.png](https://community.atlassian.com/t5/image/serverpage/image-id/82940iB6B0191C1364AACC/image-size/large?v=v2&px=999 "Screenshot 2020-02-13 at 09.08.40.png")

it seems that the {triggercardlink} is looking for [https://trello.com/c/KLbcMfaS](https://trello.com/c/KLbcMfaS/28-card-1) instead of <https://trello.com/c/KLbcMfaS/28-card-1>

As a test, I modified the query to manually look for <https://trello.com/c/KLbcMfaS/28-card-1> (not using triggercardlink)... and it worked  

How can I fix this issue and tell butler that {triggercardlink} should be the full URL \[ triggercardlink + triggercardname\] ?  

Thanks  

<br />


author: Ludo
body: According to me, it is a bug.

As a test, you should try just with {triggercardname}

As an another test, try this

```
when a card is added to list "Done", for each card linked in the attachments, check item "{triggercardlink}"
```


author: Gain
body: both tests don't work

I must be a bug so. thanks!


author: Ludo
body: The variable triggercardlink works for me. You should contact trello support to ask if there is a problem with your account settings.


author: Gain
body: I will contact them (sorry, I missed your reply)

Thanks Ludo


author: Ludo
body: Make sure that links between cards are valid.

Check the link parent-\>child on the checklist and link child-\>parent on the attachment section.

Check rule is enabled on the board

Check the usage log, if this doesn't work.


author: Gain
body: Trello support got back to me, and they could reproduce the problem on their side

{triggercardlink} uses the card shortURL (without the card title at the end. So, the checklist item uses the full card URL (including the card title), it won't work

They will contact the Butler team to find out whether that is normal behaviour or a bug

Cheers


author: Ludo
body: Very strange. Maybe, try to create a new account, just with 2 linked cards and one rule with the variable {triggercardlink}.


Tags: butler

dependency