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

Can I fetch information from the description via automation and add to a custom field?

Olof Nysten January 15, 2021

We have a lot of automated tickets coming in from our clients. As they are automated the structure always is the same.

It would be great if I could create an automation that fetches the information from the ticket and adds to custom fields so I can structure them in queues. Is that possible?

An example of what I want.

The ticket includes the following information:
Server-ID: XMR-23456

XMR-23456 is than added to custom field "Affected Hardware".

1 answer

0 votes
Ravi Sagar _Sparxsys_
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.
January 15, 2021

Hi @Olof Nysten 

Possible.

Using advanced compare use the following regular expression.

{{issue.description}} 

contains regular express

XMR-\b\d{5}\b

Once keyword is found then you can update a custom field by the first occurrence of the keyword which you can fetch using.

{{issue.description.match(".*(XMR-\b\d{5}\b).*")}}

This regular expression will look for XMR-12345 (5 digit number) but you can modify it as per your needs.

I hope it helps.

Ravi 

Suggest an answer

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

Atlassian Community Events