User and date fields from 4.1.x
If you have upgraded from a pre 4.1 to a post 4.1 version, you must have noticed the new View Issue page. People have different opinions on the new UI usability, but one thing that gets everyone's vote is how the date and user fields are arranged in the UI. You will see a section of its own for the user and date fields, as shown in the next screenshot:
So how do our fields appear in that section?
How to do it...
When you write your new date fields or user fields, all you need to do to make it appear in the correct sections is to implement the right interface!
For a user field, the new custom field type class should implement the following interface:
com.atlassian.jira.issue.fields.UserField
For a date field, implement:
com.atlassian.jira.issue.fields.DateField
If you are extending the existing date fields or user fields, they already implement the interface, and hence they will appear automatically in there!
What if you do not want your field in the special date/user...