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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Is there a way to use regex in an automation for fill components field?

We use components field for assign issues to certain assignees, but it's a multiple choice field, and I don't want clients choosing more than one component, so I've created one custom field single choice, I was trying to make an automation that check the custom field and fill in components the one that matches with the content choose by the client.

Is there some way to do it without using Ifs statements, because there are 42 possibilities. 

Someone can help me with a work around or something like it?

1 answer

1 accepted

0 votes
Answer accepted

@Luanna Gobbato, sure you can do that. 

 

Here's what I did. I created a custom field of type single select list called "Test".

 

I used the field updated trigger and told it to set my component field to whatever the value of "Test" was using smart values. All you need to do is choose the custom field name you want and update the smart value to match.

Screen Shot 2021-01-06 at 9.17.22 AM.png

Didn't think smart values worked for components too. 

Thank you very much, it was much easier than I thought.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

189 views 1 6
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