I am setting up a new space; the team utilising it have a requirement for a specific reference key to be generated with every ticket to help with their recordkeeping.
The key starts with [Financial year] [code for task type] and they would like it to finish it with only the number from the Jira key eg: if the ticket was XX-151, the reference would be 2024QUS151
Is there a smart value that displays ONLY the number from the key?
No, because the number alone is not a unique identifier of an issue, so it's pretty much useless.
You have an unusual use for it, one that I do not think you have thought through fully. Your reference could easily end up as non-unique, as you could generate the same one from two different projects with unrelated issues.
But, although I have not tried this, I think you can extract the number by splitting the key, something like:
{{issue.key.split("\-").second}}
(This does rely on the key coming out as a string, and you may need to mess with the simple "\-" I've used as the separator - I'm very rusty on regular expressions)
Hi Nic,
Thanks for your response; This is an attempt to get Jira to generate a number that can reference a large amount of information about the ticket at a single glance, while continuing to link them back to the original Jira ticket.
It's being generated for ONLY one team - would definitely push back if this was to be used outside of one Project space.
Will steal the suggested smart value and see if I can get it to work :) Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.