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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Identify text in the description and apply label

Hi guys...

Is there a way to create an automation in Jira, so that when it identifies a word placed in the description, a label is automatically applied?

For example, the agent creates the request where it informs:
-------------------------------------
Hello time.

The seller 123456 who has the domain mydomain.com.br is having problems with the payment method.

Please verify.
-------------------------------------
As soon as this request is created, a Jira automation identifies either "123456" or "mydomain.com.br" and applies the label "client_problem"

Variation:
Sometimes the agent may inform only the ID (123456) or only the domain (mydomain.com.br)

Thanks.

2 answers

0 votes
Mathew Lederman
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.
Sep 28, 2023

Does just the simple JQL description ~ "123456 " or description ~ "mydomain.com.br" not work for you? If you limit to the project and possibly even issue type I would think this should only apply in the limited circumstances.

0 votes
Dan Breyen
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.
Sep 28, 2023

Luana, could you use something like indexOf(String str) to find the strings, or them together, and if they return anything other than 0, then that substring should be there.  Then you should be able to add your label?  

I attached the smart values KB for reference.

 Jira smart values - text fields | Cloud automation Cloud | Atlassian Support

I'm no expert on Automations and can't put together the whole syntax at the moment, but that might get you closer.

Suggest an answer

Log in or Sign up to answer