JIRA 4.0 : Subtask creation form enhancements
This page last changed on Jul 18, 2006 by jeff.
Subtask Creation form enhancementsIf subtasks are enabled, a "quick subtask creation" form allows subtasks to be quickly created and manipulated from the parent issue. Various enhancements have been made to this. Always showBy default, the subtask creation form only appears on the parent issue if one or more subtasks exists. It can now be made to always appear: This is done by editing jira-application.properties, and setting the following property to true: # Should we show the form for creating subtasks in the parent issue even when there are no subtasks yet? jira.view.issue.show.quicksubtask.when.no.subtasks=true Display arbitrary fields, default field valuesWhat fields to show can now be determined in jira-application.properties: # The fields to show on the sub-task quick creation form that appears on the View Issue page # The values must be valid issue field ids (see IssueFieldConstants class) and can contain custom fields # The format of the custom field is 'customfield_<id>' where <id> is the numeric id of the field in the database # Field values may be preset, eg. 'summary,issuetype=7,assignee=-1' where only 'summary' would show. # Note: Leave the trailing comma as it marks an empty cell on the form. jira.subtask.quickcreateform.fields = summary,issuetype,,assignee, So for example, if we wish to prompt for the summary, description and a "Group Affected" custom field, while defaulting the issue type and leaving assignee to be automatically chosen, we would have: jira.subtask.quickcreateform.fields = summary,description,issuetype=7,customfield_10002,assignee=-1 Where the issue type and custom field IDs can be discovered from the database ("select * from issuetype;", "select * from customfield;") or by examining URLs in the admin section as above. The "-1" means "automatic". The result is the following: This does work, but doesn't look so good, which introduces the next enhancement: Vertical alignmentFields can now be displayed vertically instead of horizontally, by setting the Velocity template used. To switch to vertical layout, comment out the horizontal template and uncomment the vertical template: # This template formats the sub-task quick creation form that appears on the View Issue page. # Horizontal and vertical forms are provided (vertical works better if fields need labels or use textareas) jira.subtask.quickcreateform.template = templates/jira/issue/subtask/quickcreationform-vertical.vm #jira.subtask.quickcreateform.template = templates/jira/issue/subtask/quickcreationform-horizontal.vm After restarting, the form now looks like this: Future enhancementsAlthough the entry form can be customized to include arbitrary fields, which fields to display from entered subtasks is still hardcoded. In future we hope to make this fully editable (probably as a screen type). ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
Document generated by Confluence on Oct 06, 2009 00:31 |