Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using Smart Values on Components List

Edited

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

3 votes
Answer accepted
Ivan Lima Community Leader Dec 06, 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 Community Leader Dec 06, 2021

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

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
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

618 views 5 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you