Hi guys,
I'm trying to beautify dates or simplify or whatever you call it. Instead of showing absolute datetime like 2019-01-01T08:00:00, it would be better if I show 5 days ago or Yesterday or 5 minutes ago and the likes.
I am using Scriptrunner for JIRA and it is using groovy scripts. For .net I can use moment.js but not too sure for groovy script. If possible I do not want to do it the hard way and have hundred lines of code/logic just to translate absolute datetime to relative datetime.
Any kind soul knows how to do this?
Did you mean Scriptrunner for Confluence? Is this a question about Confluence or Jira? Also, user macros use velocity, not Groovy, so I'm unsure how you are trying to use ScriptRunner with a user macro if this is indeed for Confluence. What date specifically do you want to show as relative?
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.