Describe the problem/error/question
I am syncing Github issues to Notion. Issue labels map to a Labels multi-select column in the Notion db.
Problem: if an issue is created with no labels, Notion throws an error. It’s absolutely fine to update the issue once it’s created with a label (remove all labels of an already synced GitHub issue syncs fine).
Both create and update nodes use the following expression to map labels:
{{$node["Trigger on issues"].json["body"]["issue"]["labels"].pluck("name")}}
What is the error message (if any)?
ERROR: Bad request - please check your parameters
body failed validation. Fix one: body.properties.Labels.multi_select[0].id should be defined, instead was `undefined`. body.properties.Labels.multi_select[0].name should be populated, instead was `""`.
Please share your workflow
I started with the Github → Notion template, to which I added sync of labels.
Many thanks in advance for any help you can provide!