Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

CANT_PARSE_COMMAND error when I try to add a new Butler rule

Hi all, 

I'm trying to implement a Butler rule where basically the following happens : 

- an checklist item is added 

- the item is assigned to a member based on whose name is mentionned in the custom field "Project Initiator" 

which means that the custom field is variable. Therefore, instead of creating the rule multiple times (when member A is the project initiatior then assign the item to member A) I wanted to use the variables as mentionned in this post (https://support.atlassian.com/trello/docs/working-with-custom-fields/#custom-field-variables)

 

So what I tried to do is create the following Butler rule : 

- when item XX is added to checklist YY 

assign the item to member @{{%Project Initiator}}

where the project initiator values in the custom field will be the Trello usernames of the members (as I guess there is no other way Trello can match betwwen a full name and a username)

However, when I try to save the rule I get an error saying "CANT_PARSE_COMMAND"

Have you faced a similar problem ? is there something to change in my approach ? 

 

You can find the screenshots for more detailButler rule.PNGCustom field.PNG

1 answer

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.
Jun 17, 2022

@iliaskzz 

Had observed the same. Currently, I had to use http request to an endpoint to handle this. 

can you please share an example with me ? Thanks a lot

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.
Jun 17, 2022

 

@iliaskzz 

Here’s the documentation of my collection. 

https://github.com/xu2xulim/Superhero

How can I use it to implement the workflow mentionned in my oroginal post ? I have used http requests before on Butler, but not sure how to use your collection for the use case I mentionned 

Thanks

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.
Jun 17, 2022

@iliaskzz 

https://github.com/xu2xulim/Superhero/blob/master/Superhero%20on%20deta/Micros/Checklist.md

This is the payload example.

{ "item_name": "An Item on Advanced Checklist", "username": "@any_username", "due": "2022-05-16", "checklist_name": "Advanced Checklist from Zapier", "cardname": "Advanced Checklist from Zapier", "board_id": "5fdd5.........792101e" }

So it depends on your workflow

If your trigger is when you add an item, then the 

{ "item_name": "{checklistitemname}", "username": "{{%username}}", "due": "{{%date}}", "checklist_name": "{checklistname}", "cardname": "{cardname}", "board_id": "{boardid}" }

  1. Above is done without testing.
  2. as I was writing ...wondered to myself why I used cardname and not cardidlong
  3. Also note that there is a rent change in Trello for an attribute that might affect 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.
Jun 17, 2022

@iliaskzz 

Answering my own question, this was written to create a new card. So it might have to change a bit for your specific use case.

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.
Jun 17, 2022

@iliaskzz 

Just created this but have not test it since I do not have a standard plan. This should be good for when you add an item to a checklist.

Screen Shot 2022-06-18 at 7.43.40 AM.jpg

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.
Jun 17, 2022 • edited Jun 18, 2022

@iliaskzz 

Tested with this automation. I cannot see the member or due updated because checklist is on free workspace

username format {{%Name}} is @username

Author's note : the link in the sample is provided FYI.

when an item is added to checklist "{*}" in a card with custom fields "Name" and "Date (Text)" completed, post to url "https://hfetwp.deta.dev1/new_item_assign_due?api_key=14a..............21d7&token=be9f...................b4" with payload "{ "card_id": "{cardidlong}", "checklist_name": "{checklistname}", "item_name": "{checklistitemname}", "username": "{{%Name}}", "due": "{{%Date (Text)}}"}"

I tried it on a paid plan board and it does not seem to work. I get this error in Butler logs 

 

Butler log.PNG

@milynnus I found out I was not including the due date in the request and it's a required field. I added that to the rule but I still get the same 422 error 

(I put a standard date in a string format as I have another use case to assign date, the most important thing for the rule is to assign the item to members based on the value of the custom field "Project Initiator")

 

Butler log 2.PNG

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.
Jun 22, 2022 • edited

@iliaskzz 

The due date is just a meaningful date field(text) like 2022-06-22. You should be able to get a string format from your program. If you are using a date cf you should be able do it as well. 

Try "due": "{{%Required By}~YYYY-MM-DD}"

Like iliaskzz likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events