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

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


0 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

758 views 2 19
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