Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created November 17, 2019 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/ee2a25ef85899ce56876d6cde609360c to your computer and use it in GitHub Desktop.
Save iaindooley/ee2a25ef85899ce56876d6cde609360c to your computer and use it in GitHub Desktop.
Set custom fields values on linked cards
function setCustomFieldValuesOnLinkedCards(notification)
{
var added = new Notification(notification).addedChecklistItem();
var created = Card.create(added.checklist().card().board().list("Inbox"),added.name());
added.setName(created.link());
created.attachLink(added.checklist().card().link());
added.customFields().each(function(field)
{
created.setCustomFieldValue(field.name,added.customFieldValue(field.name));
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment