Is there a way to use a Date Picker template for a ScriptRunner scripted field?

I'm attempting to make a Due Date field that grabs the Release Date of an issue's Fix Version and then outputs a date one week before the Release Date.

I've got this implemented using ScriptRunner Scripted Fields, but I'm having trouble getting rid of the timestamp part of the output: 

If the output is 03/Nov/17 12:00 AM, I'd like to get rid of the "12:00 AM"

Searcher: Date Time Range Picker

Template: Date Time Picker

Is there a way to use a Date Picker rather than a Date Time Picker? (Like you can select when you make a regular JIRA custom field). I would like it to remain in Date format so that it appears in the Dates section of my View Screen.

1 answer

0 votes
Alexey Matveev Community Champion Dec 14, 2017


As a workaround you can make it as Text Field and return the value in any format you like.

Would this still allow me to have the field appear in the "Date" section of a JIRA view screen?

Alexey Matveev Community Champion Dec 19, 2017

No. If it is a requirement then the workaround will not work

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

321 views 0 12
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot