I installed ScriptRunner to be able to use the release date of a fix version as a column (to be able to sort on it) and it works fine using a Date Time Picker, but it adds the time to the value of the column (which is always set to 12:00 AM). When I add a regular custom field I can choose between Date Picker and Date Time Picker and it seems that Date Picker has the format that I want. Is there a way to get that type of picker for my scripted field as well?
Something else odd that I noticed is that the time is shown as 12:00 AM, while I have set the time to a 24 hour format in the look and feel section of JIRA. Is there a way to at least show it as a 24 hour format? Every issue now uses two lines in the dashboard, because the text AM does not fit.
Hi Mark,
You may consider looking at formatting the value returned using Java Simple Date Format.
I have an example of how to format the date value returned by a scripted field here.
I hope this helps.
Thanks
Kristian
Thanks Kristian,
that will work well enough. I formatted it as YYYY-MM-dd, so sorting on the column will work properly.
Kind regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
I am glad I was able to help.
Thanks
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
This question is a year old! Sorry but we must have missed it. Before we go ahead an answer it - is it still a valid question?
regards,
Mark.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mark,
I forgot about it, but yes it is still a valid question. I thought I had created an issue for it in the scriptrunner issue tracker, but I'm not sure I can still access that issue tracker, so I can't check.
Kind regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mark,
If needs be you can use our new Product Support Service Desk portal but we'll try and help you here just the same.
Can I start by asking what version of JIRA and ScriptRunner you are using so we can check what you are referring to?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.