Hi there,
I am putting an automation in place that if the approver name is deleted from the field automation writes it back.
I am capturing the previous value of the approvers field using this
{{fieldChange.from}}
The result gets stored in a variable.
The problem is the ID that is being stored is an object so it has [ ] around it.
I saw there is a .remove that can be used to remove a string from a field but not sure how to apply it to this automation.
I had this
{{PreviousValue.remove("[")}} just to see if it would be removed as a log event but it spits out an error stating invalid JSON.
Maybe I am going about this incorrectly so would love to understand how this should be put together.
The ultimate goal is to edit the issue and update the approver field with the stored variable.