Hi,
I am trying to use the Jira automation to edit a multi user picker field. What I am trying to achieve is, when people "approve" the ticket using the transition, I have an automation which add the user to my multi user picker cf "approved by" and it remove him from "approvers".
I am using the following but can't make it work properly :
and I have the following code :
{
"update": {
"approved by": [{
"set": {{initiator.accountId.asJsonObject("id")}}
}]
}
}
can you please help me ?
Thanks,
Hi @d_kirsching thank you, I found the right solution, I tried your proposal and it did not add the user to the list. But based on what you proposer, I tried with {{initiator.accountId}} instead in the "Request participants" field, and it adds me my user.
Hi now need to find how to remove the user from the "approvers" field. Any idea ? I have the following code :
{
"update": {
"approvers": [{
"remove": {{initiator.accountId}}
}]
}
}
Thank you,
Arthur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Arthur S
Please find below the right code.
All informations for Advanced Fields Editing can be found here :
https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Referencing-issue-fields
{
"update": {
"approvers" : [
{
"remove": {
"id":"{{initiator.accountId}}"
}
}
]
}
}
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For me it'w working with the trigger Approval completed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm on Jira software and not Jira service management, so I don't have the "Approval completed". For me it should work on the Edit Issue but I don't know why, it's not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In case you didn't find your answer... this one worked for me:
{
"update": {
"Approvers" : [
{
"remove": {
"name":"{{initiator}}"
}
}
]
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @d_kirsching ,
I want to remove the initiator (who triggered it) from the Approvers field but with the above code, it's removing all the other users, not the initiator.
Any assistance will be appreciated.
Thank you in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am also facing the same issue, that I cannot either add or remove a user from multi user custom field.
I am using
Remove:
{
"update": {
"customfield_12345": [{
"remove": {"id":"{{1585625}}"}
}]
}
}
Add:
{
"update": {
"customfield_12345": [{
"remove": {"id":"{{1585625}}"}
}]
}
}
Is there something wrong in above, am I missing something?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.