I have a custom field which contain both text and number in this form "sehr unwarsch., 1", however I would want to extract the number at the end and populate it into another custom field.
What argument would be appropriate in this case? Should the custom field name be used instead of the customfield number.
Would this be appropriate {{issue.customfield_12200.substringAfter(",").trim()}} as I am not getting the expected result.
Or is it more appropriate to use the custom-field name itself.
Hi @Akinola Oke -- Welcome to the Atlassian Community!
When you describe not getting the expected result, what do observe happening?
Perhaps if you post images of the following, those will provide more context for the community to help:
Kind regards,
Bill
A much simpler way:
{{issue.customfield_12200.right(1)}}
It'll just give the last character.
You could also add a check, in case the last character is a space, which if it is then this should work:
{{issue.customfield_12200.right(2).left(1)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Akinola Oke
Have you try {{issue.customfield_XXXXX.split(", ").last}} ?
You can use the field ID in that case.
Regards
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.