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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.