I have a Select List (single choice) drop down called Risk Impact. The values in it are in the format of a "# - text", e.g. 1 - Trivial
I've tried several ways to obtain the number from the string, however I'm having no luck. These smart values I've tried
Risk Impact: {{issue.Risk Impact}}
1 {{issue.Risk Impact.charAt(1)}}
2 {{issue.Risk Impact.abbreviate(1)}}
3 {{issue.Risk Impact.match("\d")}}
4 {{issue.Risk Impact.split(" ").first}}
5 {{issue.Risk Impact.left(1)}}
6 {{issue.Risk Impact.replaceAll("\D")}}
7 {{issue.Risk Impact.substringBefore(" ")}}Produces the following output
Risk Impact: 5 - Major
1
2
3
4
5
6
7
I'm sure I've had some of them work before, but this week, no luck. Any suggestions?