Scriptrunner Scripted Field custom template for DATE

I have implemented the script "Show the date a particular transition first happened to this issue" using the Scripted Field provided by Scriptrunner (great plugin) https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+Fields#ScriptedFields-Showthedateaparticulartransitionfirsthappenedtothisissue

but my issue is with the template.

If i choose the Date/Time template when viewing a list of issues in the issue navigator, any changes made in the last week will show as "2 days ago" etc, rather than 01/Jan/14.

If i apply a custom template (not my own work), namely this one provided by Jame @ https://jamieechlin.atlassian.net/browse/GRV-342 it will display the date in the navigator as I want, but it has the knock on effect of removing the custom field from the Dates section of the JIRA issue.

We are using this to capture the Closed Date so it would really make sense if we could have it under the dates section when looking at the individual issues while also having it render as DD/MON/YY like other date fields in the Navigator pane.

Can anyone assist with getting this to work as i've suggested?

 

Regards,

Conor

 

3 answers

When you say "any changes made in the last week will show as "2 days ago" etc, rather than 01/Jan/14." you're not saying they all show as "2 days ago"? Are you saying the value is correct but you don't like the formatting? If so I will check in to that, possibly the wrong template is used for the column view.

Hi Jamie. To clarify, yes it is the template for the column view. The values themselves are correct.

any updates on this bugs

i think you need property

jira.lf.date.relativize=false

in jira-config.properties

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

439 views 8 26
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you