Forums

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

Using Smart Values on Components List

Lacey Griffith
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2021

I am trying to create an automation rule to create subtasks for a New Hire/Onboarding parent ticket.  I want them to be able to enter the components and it create a sub-task for each component they need access.  

It works great but I can't figure out how to get it to display just the name of the individual components for each sub-task.  When I use {{issue.components.name}}, it shows the full list of components on each sub-task.  The output I am trying to get is if they enter "SystemA" and "System B", it creates two sub-task and the summary for the first is SystemA and the summary for the second sub-task is SystemB.  I am getting two sub-tasks with summary "SystemA, SystemB"

1 answer

1 accepted

4 votes
Answer accepted
Ivan Lima
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.
December 6, 2021

Hi @Lacey Griffith, you can configure the following:

  1. When: issue created (or any other trigger)
  2. New branch > Advanced branching
    1. Smart value: {{issue.components.name}}
    2. Variable name: ComponentName (it can be any other name you come up with)
  3. Then: Create a new Sub-task > Add fields
    1. Summary: {{ComponentName}}

I hope that helps.

Ivan Lima
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.
December 6, 2021

I forgot to mention that if you set another variable name in 2.2, you need to use the same in 3.1.

Lacey Griffith
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2021

Thanks Ivan!!!  That was exactly what I needed.  I just had to add the ".name" in the smart value field.  

Like Ivan Lima likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events