Hello!
To sum up the context of this ask, I've been working on utilizing an asset database to assist a team in streamlining task creation. One aspect of this that has been a thorn in my side is when creating a task I would like to reference the values of an attribute in the 'Components' field.
The current automation is as such:
I've been successful in copying a lot of information from the objects into tickets, I can even get the 'Component' field to fill with the 'Component' attribute of an object. Where the problem lies is; if the 'Component' attribute of the object has more than one value. It fills the task with a string separating the two values with a comma. I need to keep the two or more values distinct.
My main focus has been utilizing the 'additional field' field and attempting to use the information from:
The list of JSON I've attempted and some provide the same result as my problem (values as a string) or don't fill anything at all.
This was solved by;
{
"update": {
"Components": [{
"set": {{comp.split(",").asJsonObject("name").asJsonArray}}
}]
}
}
To be clear the automation works fine without the log actions, they were there so I knew what information was being passed along the way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.