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

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?

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 Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

138 views 3 4
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