We have some workflows from our Jira server using the JMWE app that have some groovy expressions in them written by someone who has since left.
After migrating to the cloud we now need to convert these to Nunjucks or Jira expression - would anyone have an idea how this would look in Jira - its a simple number generator
Calendar.getInstance().get(Calendar.YEAR)+'-RIM-' +
issue.get("issuekey").split("-")[1] + '-' +
Math.abs(new Random().nextInt() % 6000) + 1;
Thanks
Hi @Russell Dersley ,
You can try something like this:
{{now | date( "YYYY" )}}-RIM-{{issue.key.replace(r/[^\-]+-/,"")}}-{{range(0,5)|random}}{{range(1,999)|random}}
Welcome to great meetings, with less work. Automatically record, summarize, and share instant recaps of your meetings with Loom AI.
Learn moreOnline 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.