User and date fields
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 that they have their own sections, as shown in the following 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 them appear in the correct section 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 the following:
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 in there automatically.
What if you do not want your field in the special date/user sections...