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".
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.