It is possible to convert string to a number using the string processing methods for OpsGenie?
Convert an alert fields to number and increase by 1?
(message.toNumber(alertfields.substring(3,4))+1)
Hi @Gabriel Veiga ,
We have the {{field.toReadableNumber}} method that can be used to convert a number to a "readable" number. This just inserts a space in-between each character.
https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/
For example: 48397 -> 4 8 3 9 7
However there isn't a way to have a string processing method perform the math operation to increase the value by 1.
Does that answer the question? Please let me know if I misunderstood.
Thanks,
Samir
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.