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

0 vote

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.

0 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 11 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

35 views 0 3
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