Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira automation for update components from custom field

aviv_eldad
Contributor
January 4, 2023

Hello everyone,

I have a multi-select list custom field "A". All the values in "A" are also components in the project (for example, for value "b" I have "b" component). 

 

What I am trying to do is that when field A is updated (values added/ removed) on an issue, update the component field with the same values on this issue. 

 

I tried a lot of smart values and options I found on the web, but none of them gave me what I needed. Is this thing possible?

I'll really appreciate your help.

Thank you!

1 answer

1 accepted

2 votes
Answer accepted
aviv_eldad
Contributor
January 4, 2023

So I asked Atlassian and they gave me the answer. You need to do the following smart value:

 {
"update": {
"components": [ {{#issue.A}}{{^last}} {
"add": {"name": "{{value}}"}
}, {{/}}{{/}}
{
"add": {"name": "{{issue.A.last.value}}"}
}
]
}
}

Suggest an answer

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

Atlassian Community Events