The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove old approver from Request Participant

Burak Bal
October 11, 2022

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}}" }
}
]
}
}

 

req_part_edit_rule.jpg

 

image_2022-10-11_131432058.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
David Kintzinger
February 27, 2023

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.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events