Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,113
Community Members
 
Community Events
185
Community Groups

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
TAGS
AUG Leaders

Atlassian Community Events