Forums

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

Copy Affected Services values to custom multi list custom field

Christian Moran November 12, 2024

I'm wanting to setup an automation that would take the values of current Affected services and copy them to a custom field that we have. 

Current automation 

  • When: Value changes for "Affected Services"
  • Process web request
  • Advanced branching 
    • {{#issue.Affected services}}{{name}}{{/}}
  • Then use variable name to update custom field

What i'm noticing is that with multiple values, it will override and not add all values to custom field. 

Thank in advance for the help. 

2 answers

1 accepted

0 votes
Answer accepted
Christian Moran November 13, 2024

This issue was resolved by using smart values and using list.get(index) to acquire the Affected Services

  1. Trigger: Field Value change for (Affected Services)
  2. Then: Edit issue fields
    • Selected custom field
    • Here is the trick {{issue.Affected services.get(#).name}} added 3 instances of this with index values (0, 1, 2) to get up-to 3 affected services

Hopefully this helps someone else with the same task/question. 

0 votes
Christian Moran November 12, 2024

Initially it was a simple automation with 

  • Trigger: Field Value change
  • Edit issue with custom field selected and value set to {{issue.Affected services}}

This works great when only one Affected service is set but when we have more than one, it updates custom field to "none", removes all values.

From there I started setting up advance branching but ran into the same outcome. 

Can this be accomplished by using advanced field editing using json?

Suggest an answer

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

Atlassian Community Events