Linear to Notion Multi select

I’m having trouble getting my labels from Linear to work in Notion. I tried mapping the variable to Notion, but it didn’t work. I suspect it’s because it’s an array of collections but the field needs just an array of name, but I can’t figure out how to create an array of just the label names.

The error I am getting is

[400] body failed validation. Fix one:
body.properties.Tags .multi_select[0].id should be defined, instead was `undefined`.
body.properties.Tags .multi_select[0].name should be a string, instead was `{"id":"09149f5e-

Any help would be appreciated!

Hi Brian,
You may try using the map() and/or get() functions to extract the desired data from the array of collections. Not sure exactly what the Linear labels look like in the JSON - it could be something like this: map(labelArray;id) // or maybe you’d need to go deeper in the array

Here is what the data looks like. Not sure I tried to map it but I was still getting a 400 error.

i was able to use this to get it working.
{{map(1.data.labels; { + “name” + : + Name + })}}
Thank you!

3 Likes