Automation - Update a custom multi group picker from another custom single group picker

Nicolas Rigaill
Contributor
October 10, 2024

Hello everyone,

Could someone help me with this one ? 

I'm trying to update a custom multi group picker from a custon single group picker.

Currently I'm trying this one : 

{ "update": { 
"customfield_11646": [{ "add": { "name": "{{triggerissue.customfield_11647.name}}" }
}] } }

It works great if I hard code the group name : 

 

[{ "add": { "name": "my-group-name" }

But I need this one to be dynamic.

 

I also tried to display my  {{triggerissue.customfield_11647.name}} in a log work, but it reamains empty.2024-10-10_16h14_35.png

 

Thank you,

Nicolas

 

{{triggerissue.customfield_11647.name}}

2 answers

1 accepted

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 12, 2024

Hi Nicolas,

I just used the actual field names and it worked fine. 

{
"update": {
"Approver groups": [{
"add": { "name": "{{triggerIssue.Group Single Picker}}" }
}]
}
}

Remember also that the smart values are case sensitive so it is triggerIssue and not triggerissue. Not sure if that was the difference or not. 

Nicolas Rigaill
Contributor
October 14, 2024

Hi John,

Thank you so much! It works perfectly!

Is there any chance to update the Approver group with another Group Multi ? Or is it limited to Group Single Picker ? 

Thanks !

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2024

It should work - the problem is if there are multiple groups already loaded in the Group Multi - but it should hopefully copy all of them. 

Nicolas Rigaill
Contributor
October 15, 2024

In my case I'd like to use only one multi group field, let's say "GroupMulti". With below scenario : 

1. When an epic is created "GroupMulti" is set with the reporter's group (only one value)

2. When this epic is linked (using parent field) to an initiative, the "GroupMulti" field at Initiative level is automatically updated with the value of the "GroupMulti" at epic level.

It means that each time a new epic is linked to this initiative, a new "GroupMulti" value is added.

3. When an epic is unlinked, its value should be removed from the "GroupMulti" field at initiative level.

As i want to update the "GroupMulti" from itself at another level, I'm not sure it is possible.

This is why I tried it with 2 group fields in my first request.

@John Funk any idea ? 

Thank you

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2024

I have never done that process before, but I would say give it a try and see!

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 10, 2024

Hi @Nicolas Rigaill 

Try to replace the name with value

As you are now referencing the CF field name and not the value set in the field

Nicolas Rigaill
Contributor
October 10, 2024

Hi @Marc - Devoteam ,

Do you talk about this "name" ?

 {
"update": {
"customfield_11646": [{
"add": { "name": "{{triggerissue.customfield_11647.value}}" }
}]
}
}

If so, it doesn't work either :(

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 12, 2024

Hi @Nicolas Rigaill 

Does the log action on {{triggerissue.customfield_11647.value}} and or {{triggerissue.customfield_11647.name}}

Can you does this for the Branch, does this give a result?

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events