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

This widget could not be displayed.

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.

This widget could not be displayed.

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

This widget could not be displayed.

I've created an issue for this: https://jamieechlin.atlassian.net/browse/GRV-561

 

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 Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

492 views 3 18
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