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 -- 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
As far as I know, you can use the match
function to extract the last character of the version name and compare it.
{{version.name.match("[a-zA-Z]$")}} equals "A"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems it is not working as the log is not displaying the value of the match.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.