I am trying to extract a character from the fixversion i create. The character is added to the end of the version name. Can i do
{{version.name.match("[a-zA-Z]$")}} equals "A" then do ......
Hi @Pankaj Mehta
As far as I know, you can use the match function to extract the last character of the version name and compare it.
match
{{version.name.match("[a-zA-Z]$")}} equals "A"
It seems it is not working as the log is not displaying the value of the match.
Hi @Pankaj Mehta -- Welcome to the Atlassian Community!
Although this could be done with a regular expression, have you tried using the right() function: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#right-int-length-
{{version.name.right(1)}}
If you still want to use the regular expression with match() please try this:
{{version.name.match(".*(.)")}}
Kind regards,Bill
It looks like you're new here. Sign in or register to get started.