how to create custom date field in the format of MM-YY?

Hi Guys,

 

I have a business requirement to be able to input a date field in the format of MMM-YY only.

examples:

Aug 16 or Nov 15

 

Can anyone advise on how to do that?

Thanks

3 answers

1 accepted

0 votes

Ok, there's a few more options here...

Script runner won't do it, unless what you want to do is put a normal date field on edit screens and then write a scripted field that displays the MMM-YY format you want on view (and search)

Another option, if you don't have too huge a range of dates to worry about might be a cascading select field with yyyy for the first option and then the months in the second option

Possibly the easiest option - have two fields, one with a list of years, and a second with the 12 months in it.  No coding or fuss required, but they will be independent of each other (again though, a similar trick to the first one - write a scripted field that combines them for display and search)

You can use

  1.  A scripted field (ScriptRunner or JJUpin) 
  2. Change the date format globally https://www.kerstner.at/en/2013/01/customizing-date-format-in-jir/
  3. Use add-on like JIRA Misc Custom fields https://innovalog.atlassian.net/wiki/display/JMCF/JIRA+Misc+Custom+Fields#JIRAMiscCustomFields-calculateddatefield It supports custom date format
  4. Other solution - search for another solution in Google smile

 

On 4 - google is most likely to give you "write your own add-on to do it..."

@Boris Georgiev [Botron],

first of all thanks for your help.

  1. we do own scriptrunner - but unfortunately I am no scripting expert, still having difficulties working with it, I will really appreciate if you can help me find a more specific answer to using scriptrunner as a solution.
  2. we are not interested in changing the date format globally..
  3. the add-on supports calculated date fields, which are uneditable, this is not a proper solution for us.
  4. as @Nic Brough [Adaptavist] said smile

 

Thanks guys!

 

Somehow I missed the fact that you want to actually edit the field and not just display it...

@Nic Brough [Adaptavist]

Thanks!

I'll use the second option you offered.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,754 views 11 18
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
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