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?
hi @Daz Daz,
jira-config.properties
modify the following line:
jira.lf.date.relativize = true
Save the file
Restart your JIRA applications
this should bring back what you are looking for, Let me know if this solves
Thanks for the reply but it is not what am looking for. I do not intend to relativize all the datetimes in jira. I only want certain datetime/field/values to be relative dates.
I am currently using Scriptrunner for JIRA to make a custom field. I currently have a datetime value like 2019-01-01T08:00:00 and I want to relativize it and display the value on that custom field so that it appears as 5 minutes ago for example.
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.