Hi : This is the scenario, where I need help. I am using a formula column to sort and pick the latest fixversion. The fixVersion are stored as "YY.MM.DD" and can have multiple values.
I am taking the strings in fixVersion and converting to a number, by removing the decimal.
I than sort and pick the highest value.
----------------
fixVersions
.map(v -> v.name.replace(".", ""))
.sortBy(v -> -v)
.first()
-------------------------------
I now want to add the decimal back to the highest value, before displaying in the structure board.
I have tried various combinations like
.map(v -> v.replace(("\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3"))
but it is not working!
Regards, Pavan
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.