How to create a read-only "summary" version of a field, for display in space-constrained places like gadgets or search results.
Some fields contain a lot of info. For instance, a Checklist for JIRA field (from our Checkboxes Plugin comparison):
When displayed as a filter column it looks passable:
but within the Structure plugin's table it breaks completely:
Creating a summary field
What we want is a summarized view of a field, suitable for viewing in space-constrained places such as our Structure table, or a dashboard portlet.
The Script Runner plugin is excellent for this sort of thing. We define a new custom field, Milestone Status, of type
Our new Milestone Status summary field will look like this:
It is intended to display well in Structure table rows:
The Milestone Status custom field's output is defined by the following Groovy code: