Hi
Is it possible get just the number from key with smart values?
Thanks
You can try using the text functions to get the characters after the "-". Link: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/
I suggest you copy the key to a new variable and then try finding the location of "-" and then using a substring from the location +1 to the end.
Good luck
Thats works I used:
{{issue.key.substringAfterLast("-")}}
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interesting question. You can’t do that though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm intrigued about why! What use is only part of the key of an issue? I can't think of a use for it (well, a few migration contexts, but only to compare with existing data, which isn't something I'd use Automation for)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Angel Ferreira
Have you tried issue.number?
As far as I know, issue.getNumber() method returns the issue number as a long value.
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.