Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,838
Community Members
 
Community Events
165
Community Groups

How can I add members into cards by rules?

Edited

Hi,

I would like to add members to a newly created card, but I haven't find  nor figured out a sufficient solution...

 

Process by rules:

+ when all checklist are completed

- find card in list on board

- copy it to another list

- rename it

- add members

 

I am using custom fields and in certain cases I use it also to add members. However, I am not able to figure out a sequence of rules that would enable me to change the custom field from the trigger card that would either work or wouldn't end up in a loop.

Also, command "add member @{triggercardmemberusernames} to the card" doesn't seem to work even though the member is on both boards, and I would very much expect the command "{cardmemberusernames}" to be applicable to the the newly created card and not to the trigger card. Anyway, I tried it and in both cases the error in the command says "I couldn't find that member in this board."

 

Do you know any way to add members by rules from card in one board to another card in another board with different names?

Thank you.


Edit 2022-05-17: The sample command is as follows:

when a card is added to list "List1", find a card titled "Card_Template" in list "Templates" on board "Board3", copy the card without comments to the top of list "List2" on board "Board3", rename the card to "Card template {triggercardname} ({triggercardlabelnames})", set the card's description to "{triggercarddescription}", find a card titled "{triggercardname}" in list "List1" on board "Board1", link the cards together, find a card titled "{triggercardname}" on board "Board2", link the cards together, find a card titled "{triggercardname}" in list "List1" on board "Board1", for each card linked in the attachments, set custom field "Field1" to "{{%Field1}}", and set custom field "Field2" to "{{%Field2}}"

2 answers

0 votes
Hannah Morgan Community Leader May 12, 2022

@The Admin

 Welcome to the community :) 

I am using custom fields and in certain cases I use it also to add members. However, I am not able to figure out a sequence of rules that would enable me to change the custom field from the trigger card that would either work or wouldn't end up in a loop.


Are you able to clarify what part of the command incorporates custom fields? Is the idea to update a custom field in the trigger card and have that new value copy to the "action" or newly created card?

 

Also, command "add member @{triggercardmemberusernames} to the card" doesn't seem to work even though the member is on both boards, and I would very much expect the command "{cardmemberusernames}" to be applicable to the the newly created card and not to the trigger card. Anyway, I tried it and in both cases the error in the command says "I couldn't find that member in this board."

 


Am I right in assuming you're trying to copy the members from the trigger card to the newly created card? If so, it's not possible to use the trigger pre-fix with member variables:

variable prefix.PNG


Thank you for the welcome and for your reply :)

 

Are you able to clarify what part of the command incorporates custom fields? Is the idea to update a custom field in the trigger card and have that new value copy to the "action" or newly created card?

The command is as follows:


when a card is added to list "List1", find a card titled "Card_Template" in list "Templates" on board "Board3", copy the card without comments to the top of list "List2" on board "Board3", rename the card to "Card template {triggercardname} ({triggercardlabelnames})", set the card's description to "{triggercarddescription}", find a card titled "{triggercardname}" in list "List1" on board "Board1", link the cards together, find a card titled "{triggercardname}" on board "Board2", link the cards together, find a card titled "{triggercardname}" in list "List1" on board "Board1", for each card linked in the attachments, set custom field "Field1" to "{{%Field1}}", and set custom field "Field2" to "{{%Field2}}"

 

so the main idea is to have the single source of truth over several boards from which if the field is updated the new value is distributed. Also it is this one card on "List1" which is supposed to be accessed when a new card is copied from template and from which the values are taken.

 

Am I right in assuming you're trying to copy the members from the trigger card to the newly created card? If so, it's not possible to use the trigger pre-fix with member variables:

Thank you for clarification. I haven't realized that the trigger prefix is not supposed to work...

0 votes

Hi there, 

Hum, I tried to copy a card and add a member to the card, and I was able to do it with the Members's tab, as you can see on the image below. 

Looks like you are adding the wrong parameter to add the member, as you can find on this article it should be @{{%triggercardmemberusernames}} (if triggercardmemberusernames is the name of your custom field). Can you test it?

 

Screen Shot 2022-05-10 at 3.04.20 PM.png

Thank you for reply.

I have tried both {{%FieldName}} and {customfieldvalue} without much effect, however, the issue most probably is within the whole structure of the rule (below and I probably should have sent it right away...).

I am aware of the structure {{%FieldName}} and I use it at several places when I want to exchange the values from one field to another, such as calculations of increments and differences between previous and current value. However, another level of the issue is that I use abbreviations of names for the field values and based on that the user with Trello alias is added. And by rules it could work just as well other way around, even though then the loop probably could not be avoided...

The {triggercardmemberusernames} should have been a value coming from trigger card and utilizing the native cardmemberusernames command.


when a card is added to list "List1", find a card titled "Card_Template" in list "Templates" on board "Board3", copy the card without comments to the top of list "List2" on board "Board3", rename the card to "Card template {triggercardname} ({triggercardlabelnames})", set the card's description to "{triggercarddescription}", find a card titled "{triggercardname}" in list "List1" on board "Board1", link the cards together, find a card titled "{triggercardname}" on board "Board2", link the cards together, find a card titled "{triggercardname}" in list "List1" on board "Board1", for each card linked in the attachments, set custom field "Field1" to "{{%Field1}}", and set custom field "Field2" to "{{%Field2}}"

 

Can you find the reason why the rule doesn't forward the Field1 and Field2 to the new card?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: New years' resolutions with Trello

Congratulations to @Laura Holton , our latest winner of Taco Tuesday! And thanks to @Kristján Geir Mathiesen for sharing the picture of Taco having fun with his new friend  B...

2,396 views 28 41
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you