I want to use n8n to set a related field in the tasks i create. however no matter what i try it doesn’t seem to work.
i can link tasks, i can create dependencies. however i’m trying to create a specific relationship (invoices - contracts] and would like the link to the other task to show like in the example below.
does anyone know how to achieve this? i have tried using create node, update node and http request node. i can manage to write json that runs but the created task always ends up having a empty field for this “relationship” field.
thanks in advance!
Hi,
As far as I can see in the doc they are only talking about linking tasks. This is also confirmed by the options provided by going in the “create custom field / relationship”.
Some alternative that might be of use in the custom fields. There is a file custom field as well as a website custom fields (might contain any link to a contract document) .not sure how they could be filled easily) but it might be an option if there’s nothing else
reg,
J.
Thank you for the fast reply.
i will look into the website option.
its weird to me that this is not possible. in the native automation module within clickup i am able to set it exactly like this. the only problem is i am not able to dynamically pick up the ID of the contract task.
but maybe a workaround will do ; ) thanks again
I have found the solution. it seems just setting the value is not enough. since a list relationship is considered a list of id’s you have to add in the json that you want to add to this list.
for now i have used the http request. but i can imagine this also works in the create a task or the update a task nodes.
the idea is that when defining the value of the custom relationship field you include the add keyword:
{
“value”: { “add” : [
“{{ $(‘Get Contract’).item.json.id }}”
]
}}