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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

$datePickerFormatter.withStyle(String).format($value) Not Working


I posted a question HERE about using a Script Field for a date type. My main question was answered, but a new problem came to light.

I'm using a Script Field with a custom template and a Date Time Range Picker searcher. The custom template is as follows:

$datePickerFormatter.withStyle("MMM d, YYYY").format($value)

 I'm trying to get the date output formatted like "Aug 20, 2018" using the above format string, but it's not working. In fact, no matter what string I pass to withStyle, the output is always in the same format. E.g:

$datePickerFormatter.withStyle('MMM d, YYYY').format($value)

 All of these format strings output the same format: 28/Aug/18 12:19 PM.

Why? And how do I get my desired format?

Jira 7.9.2

1 answer

There is nothing in the detail of these links that explains that

Like minzel likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events