Displaying custom fields on subtask columns

This is one of the easiest things that you can do! But it adds a lot of value at times. We are talking about adding extra columns for subtasks on the parent issue page.

We know how to add fields to subtasks in JIRA, don't we? Let us see how we can make those fields appear in the parent issue page. We will use a URL custom field as an example in this recipe.

How to do it...

Adding new columns to the subtasks view can be done easily by modifying the advanced property named jira.table.cols.subtasks. This property is available under Administration | System |General Configuration | Advanced Settings.

For example, if you want to add a custom field to the existing list of columns, you can do that by including the custom field ID, as shown here:

How to do it...

The updated property value will be issuetype, status, assignee, customfield_10400, progress.

Similarly, you can add the id of other standard or custom fields, if you want to see them in the subtask list. But care must be taken not to add too many fields or add big fields such as description, as that will clutter the parent issue page.

How it works...

JIRA renders the subtask columns on the View Issue page by looking at the aforementioned property. While adding the standard subtask fields is useful, adding custom fields can be extremely helpful sometimes.

In our example, we have added customfield_10400, where 10400 is the numeric ID for the custom field. It stores the URL associated with the task, as shown:

How it works...

Looks useful, doesn't it?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.225.95.107