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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

String processing methods - convert string to a number - toNumber()

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)

 

1 answer

0 votes
Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 18, 2021

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/

2021-08-18_15-59-16.png

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events