Hi everyone,
On my service project, I have three approvers for issues. This approvers were assign automatically and added to Request participants. But in some case, we change it manually on edit issue screen. After this changes, I want the old approver was removed from Request participants and new approver will added to it. I wrote an automation rules for that. I preferred to use advanced field edit.
You can find my JSON below. But it is not working. Do you help me? What is the wrong point on my rule?
+Audit log says the rule was successful. But it is not updated as expected.
{
"update": {
"Request participants" : [
{
"remove": { "key" :"{{fieldChange.from}}" }
}
]
}
}
Hi @Burak Bal
just in case this topic is still relevant to you:
When using the remove or add key within the update block I managed to get it to work when specifying user by their id, e.g.:
{
"update": {
"Request participants": [
{
"add": { "id": "{{approval.approver}}" }
}
]
}
}
So as long as fieldChange.from returns a user entity this should work for you:
{
"update": {
"Request participants" : [
{
"remove": { "id" :"{{fieldChange.from}}" }
}
]
}
}
Sometimes it seems to be necessary to additionally add a reload data action (or however that is called in the english version) before and/or after the advanced field edit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.