Helloo, i am using the new code node, and i have a question about the function itemMatching.
I have write this little function,
var jriati = $('Set value for Jira').itemMatching('Ticket Last comment');
return jriati;
The argument inside the () is the name of the field item, but it return me this error.
ERROR: Cannot read properties of undefined (reading 'pairedItem') [line 1]
TypeError
My goal is to take the value of a column inside an item
What i have to write, the item field name or the value?
thanks!!
Jon
27. Oktober 2022 um 15:57
2
Hey @Gabriele_Bracciali ,
It could be that there is no paired item to match against. Do you have a screenshot of your workflow so we can the amount of items coming in and what the workflow looks like?
Hey @Jon , thanks for reply.
Jon
28. Oktober 2022 um 10:00
4
Hey @Gabriele_Bracciali ,
I have just had a quick look at the doc page and it looks like it doesn’t use a name it is expecting an index of the item.
Using $('Set value for Jira').itemMatching(0) would get you the fields from the first index so you could have something like this…
Thanks for helping, now it’s working like aspect.