Name of linked card from checklist
Asked by Deano:

Hi all,

<br />

I've read all the other related threads, but I cannot get this to work at all! :(

"when the ":name_badge: DOM: Flag for CS follow-up (Tick for yes)" item is checked in a checklist named "Incident Report Checklist Template" by anyone, convert the item to a linked card in list "Routine support and customer service follow up" copying labels, for each card linked from a completed item in checklist "Incident Report Checklist Template", rename the card to "Review: {triggercardname}", and post comment "Test!""

I want to be able to tick a checkbox item and have a new card created in another list, linked, then renamed to match the original card.

I'm trying to error trap here and it's not even getting to the post a comment line. Why is this failing?

When i tick a box, it creates the linked card, but then won't rename or post the comment. :/


Answers:
author: Esme Crutchley
body: Lol Deano!

![Shucks GIF by memecandy](https://media1.giphy.com/media/W691uOBmypnA51b2ku/giphy.gif?cid=ecf05e47a27cbd7897d9b89eebdf5e1869344f20ae9f6145&rid=giphy.gif)


author: Deano
body: Any ideas, [@Esme Crutchley](/t5/user/viewprofilepage/user-id/3555478) ? :)

comments: author: Esme Crutchley
body: Hi [@Deano](/t5/user/viewprofilepage/user-id/3887995)

Sorry, I totally missed this!

Can you go through step by step, on different lines, what you want it to do?

As this command is extremely specific, it would help me immensely if it was step by step (as I don't have the knowledge of the board and processes that you do).

On first look, I would assume this, but I could be wrong!

* when the ":name_badge: DOM: Flag for CS follow-up (Tick for yes)" item is checked in a checklist named "Incident Report Checklist Template" by anyone,
* convert the item to a linked card in list "Routine support and customer service follow up"
* copying labels, for each card linked from a completed item in checklist "Incident Report Checklist Template",
* rename the card to "Review: {triggercardname}", and post comment "Test!

Cheers

Esme :)


author: Deano
body: Thanks for the quicky reply!

I have two lists this relates to. They are :

* Incident Reports. These cards have the "Incident Report Checklist" applied to them.
* Routine support and customer service follow up".

When a user ticks a checklist item (:name_badge: DOM: Flag for CS follow-up (Tick for yes)) in the incident report checklist, I want it to create a linked card in the "Routine Support" list.  

Currently, that works, but the card is named ":name_badge: DOM: Flag for CS follow-up (Tick for yes)". I would like it to be renamed to "Review: {triggeredcardname}".

It seems in this process, it stops at the point the new card is created and the rename and post comment function doesn't work.

Currently the scripting for that is   

*when the ":name_badge: DOM: Flag for CS follow-up (Tick for yes)" item is checked in a checklist named "Incident Report Checklist Template" by anyone, convert the item to a linked card in list "Routine support and customer service follow up" copying labels, for each card linked from a completed item in checklist "Incident Report Checklist Template", rename the card to "Review: {triggercardname}", and post comment "Test!"*


author: Esme Crutchley
body: No worries Deano, are you talking about Trello or Confluence?

This post is in Confluence, but it looks to me like Trello, so I just wanted to confirm.

Can you screenshot the rules so that I can see where it's failing?


author: Deano
body: Oh whoops! My bad, yes, this relates to trello! Sorry! :D

Oh my god, I've just realised there's a debug log available in the rule editor.

It's failing on "I couldn't find a checklist called "Incident Report Checklist Template".


author: Deano
body: ![Rules.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/93631i498A89401DD1A821/image-size/large?v=v2&px=999 "Rules.JPG")


author: Deano
body: Which is weird... I don't know why it can't find it. The spelling is exact.


author: Esme Crutchley
body: I've moved this to the Trello questions page, just so it's in the right place, any links will still work though!

Right, everything is working except the second action - what is that action for? What's it doing? What's it's function? What are you trying to achieve with it?

From what I can see, it's not doing anything - as in - it doesn't actually serve a purpose - you've already created a linked card for the item that's been checked off in that card - so I'm not 100% sure why it's there - let me know what it is and we'll try again!

Esme :)


author: Esme Crutchley
body: This looks to be what you actually want:

![Screenshot 2020-05-06 at 10.56.56.png](https://community.atlassian.com/t5/image/serverpage/image-id/93651i25CF0F235F465B21/image-size/large?v=v2&px=999 "Screenshot 2020-05-06 at 10.56.56.png")


author: Deano
body: Yup, that fixed the issue!

Thanks again, you're a champion. For reference, I read in another thread that the step that I removed was useful for solving the problem. Turns out, it was the problem!


author: Esme Crutchley
body: Lol, always the way!

Glad it's been sorted!

Don't be a stranger now!


author: Deano
body: Thanks again - would there be a way to add the newly created card as an attachment on the original?


author: Esme Crutchley
body: Maybe you could add another action to the bottom:

Cascade - link the cards together?


author: Deano
body: You're worth more money. :)


author: Esme Crutchley
body: Woohoo! I assume it worked?!


author: Deano
body: It most certainly did!   

You're now officially my go-to for trello help! :D


author: Deano
body: \*bump\*


Tags: cloud

confluence