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

This widget could not be displayed.
Alexey Matveev Community Champion Dec 14, 2017

Hello,

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

209 views 1 3
Join discussion

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