Forums

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

Identify text in the description and apply label

Luana Premoli
Contributor
September 28, 2023

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.
September 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
Community Champion
September 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