Forums

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

Help with JSON needed - advanced field editing automation

Daniel F
Contributor
February 27, 2023

Hello,

 

I am quite a newbie when it comes to advanced field editing, so please, bear with me on this.

I have read many articles about advanced field editing, yet I was not able to figure out why it´s not working in my case.

I want to copy the value (id) from a multi-user picker custom field of an epic and paste it to all its stories via branch rule.

I have tried several JSONs and the rule actually runs successfully, but my field does not get updated. The field has project scope (as this is team-managed project) - not sure if it has any relevance.

{
"fields": {
"customfield_10028": {{issue.parent.customfield_10028.accountId.asJsonObjectArray("id")}}
}
}

 

or 

 

{
"fields": {
"customfield_10028": [{
"add": {
"id": "triggerIssue.customfield_10028.accountId}}"
}
}]
}
}

 

None of these are working. The rule runs successfully, yet the field remains empty. advancedfieldediting.jira.PNG

 

I really appreciate the suggestions and help!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events