Month Year Custom field

Hi All,

Is there a plugin in Jira which provides month year picker field, it will display the value something like this July 2013.


how could we pick month and year from date picker field and display the result in a read only field?

If anyone could provide me an example of the same that would be very helpful.

Thanks and Regards,

Jenin C M

3 answers

1 accepted

0 votes
Accepted answer

Thanks all, I have achieved this via Calculated Custom Field.


0 votes
Timothy Chin Community Champion Sep 22, 2013

Well, the shoddy way is to create two select lists. One for month and one for year. To make it read only, only show the field in specific screens.

you can do this with the help of following code

Timestamp committedDate = (Timestamp)issue.getCustomFieldValue(cfm.getCustomFieldObjectByName("Committed Date"));
	    System.out.println(committedDate+" current committed date value");
	    	System.out.println(new SimpleDateFormat("MMMM").format(committedDate)+"    month details 22");  
	    	System.out.println(new SimpleDateFormat("yyyy").format(committedDate)+"    year details 22");  
	    	issue.setCustomFieldValue(cfm.getCustomFieldObjectByName("MonYear"),new SimpleDateFormat("MMMM").format(committedDate)+" "+new SimpleDateFormat("yyyy").format(committedDate));
        	IssueManager issueManager4=comAcc.getIssueManager();
        catch(Exception e)

here Committed Date is of Date Picker type and MonYear is of Read Only Text Field.

you can place this in listener which catch for ISSUE_CREATED and ISSUE_UPDATED events.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,723 views 17 21
Read article

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