Forums

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

how to automate fetching specific value from Summary into a custom field

Archana Mattoo December 5, 2023

Hi All,


For a project, all tickets are currently created with a summary, as shown below. I aim to establish automation that retrieves the value for "server_number" and populates the custom field "serverno" every time a ticket is created.

Summary: [P2] [Warn on {server_number:982a}] [xyz] Cluster Status (Up or Down)

For example, for the given summary, I intend to place the value "982a" into the custom field "serverno."

Thanks

1 answer

0 votes
Fernando Eugênio da Silva
Community Champion
December 5, 2023

@Archana Mattoo 

If your summary follow always this template, you can use substring to fetch your value. Considering your current case, this smartvalue with substring should be works for you. Use this: {{issue.summary.substringBetween(":","}")}}

 

If you want to try another substring attributes, just take a look here: https://confluence.atlassian.com/automation/text-functions-993924863.html

Carlos Chang
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 5, 2023

nice trick!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events