Issue types and subtasks

As seen earlier, issues in JIRA can represent many things ranging from software development tasks to project management milestones. Issue type is what differentiates one kind of issue from another.

Each issue has a type (therefore, the name issue type), which is represented by the issue type field. This lets you know what type of issue it is, and also helps you determine many other aspects of it, such as what fields will be displayed for this issue.

JIRA comes with a set of default issue types, as shown in the following table:

Issue type

Description

Bug

A problem that impairs or prevents the functions of the product

Improvement

An enhancement to an existing feature

New feature

A new feature of the product

Task

A task that needs to be done

The default issue types are great for simple software development projects, but they do not necessarily meet the needs of others. Since it is impossible to create a system that can address everyone's needs, JIRA lets you create your own issue types and assigns them to projects. For example, for a help desk project, you might want to create a custom issue type called ticket. You can create this custom issue type and assign it to the Help Desk project, and users will be able to log tickets, instead of bugs in the system.

Issue types are managed through the Manage Issue Types page. Perform the following steps to access this page:

  1. Log in to JIRA as a JIRA administrator.
  2. Browse to the JIRA administration console.
  3. Select the Issues tab and then the Issue Types option. This will take you to the Issue Types Administration page.
    Issue types and subtasks

The preceding screenshot shows a list of default issue types along with custom issue types created by the administrator.

Creating issue types

You can create any number of issue types. Perform the following steps to create a new issue type:

  1. Browse to the Manage Issue Types page.
  2. Click on the Add Issue Type button.
  3. Type a unique name for the new issue type.
  4. Type in a general description for the issue type.
  5. Select whether the new issue type will be a standard issue type or a subtask issue type.
  6. Click on Add to create the new issue type.

Once the new issue type is created, it will be assigned a default icon. If you want to change the icon, you will need to click on the Edit link for the issue type, and then select a new image as its icon.

Deleting issue types

When deleting an issue type, you have to keep in mind that the issue type might already be in use; meaning there are issues created with that issue type. So, if you delete an issue type, you will need to select a new one for those issues. The good news is that JIRA takes care of this for you. As shown in the following screenshot, we delete the Bug issue type and JIRA informs us of the already existing 19 issues of type Bug. You will need to assign them to a new issue type, such as Improvement.

Deleting issue types

Perform the following steps to delete an existing issue type:

  1. Browse to the Manage Issue Types page.
  2. Click on the Delete link for the issue type you wish to delete. This will bring up the Delete Issue Type page. If there are existing issues with the issue type you are trying to delete, you will be asked to select a new issue type.
  3. Select the new issue type for the existing issues. Once deleted, those issues will be automatically updated to the new issue type.
  4. Click on the Delete button to delete the issue type.

Subtasks

JIRA allows only one person (assignee) to work on one issue at a time. This design ensures that an issue is a single unit of work that can be tracked against one person. However, in the real world, we often find ourselves in situations where we need to have multiple people working on the same issue. This may be caused by a poor breakdown of tasks or simply because of the nature of the task at hand. Whatever the reason, JIRA provides a mechanism to address this problem through subtasks.

Subtasks are similar to issues in many ways, and as a matter of fact, they are a special kind of issue. They must have a parent issue, and their issue types are flagged as subtask issue types. You can say that all subtasks are issues, but not all issues are subtasks.

For every issue, you can have one or more subtasks that can be assigned and tracked separately from another. Subtasks cannot have other subtasks. JIRA allows only one level of subtasks.

Enabling subtasks

Subtasks are enabled by default. If you have subtasks disabled for some reason, you will need to enable this feature.

Perform the following steps to enable subtasks in JIRA:

  1. Browse to the JIRA administration console.
  2. Select the Issues tab and then the Sub-Tasks option. This will take you to the Sub-Tasks Administration page.
  3. Click on Enable to enable subtasks in JIRA.

Creating subtasks

Since subtasks belong to an issue, you need to browse to the issue first before you can create a new subtask:

  1. Browse to the issue you wish to create subtasks for.
  2. Select Create Sub-Task from the More Actions menu.

You will see a familiar Create Issue dialog box. However, one thing you will notice is that, unlike when you are creating an issue, you do not select which project to create the subtask in. This is because JIRA can determine the project value based on the parent issue. You will also notice that you can only select issue types that are subtasks.

Other than these differences, creating a subtask is no different than creating a normal issue. You can customize the fields shown in the dialog box and choose to rapidly create multiple subtasks by selecting the Create another option.

Once the subtask has been created, it will be added to the Sub-Tasks section of the parent issue. You will see all the subtasks that belong to the issue and their status. If a subtask has been completed, it will have a green tick next to it.

Creating subtasks

Issue type schemes

Issue type schemes are templates or collections of issue types that can be applied to projects. As shown in the following screenshot, JIRA comes with Default Issue Type Scheme, which is applied to all projects that do not have specific issue type schemes applied.

When a new issue type is created in JIRA, it is added to Default Issue Type Scheme. This means that the new issue type will be available to all the projects by default. This will become a problem when you start to have specialized projects such as help desk, and issue types such as Bug become inappropriate.

Issue type schemes

To overcome this problem, JIRA lets us group a collection of issue types together. We can also rearrange the order of the issue types within the collection so that they appear in the drop-down list in a logical manner to the users. In effect, we create an issue type scheme, a template for issue types, and their order, which can be reused and applied to one or more projects.

We will create a new issue type scheme for our example of JIRA implementation later in this chapter.

Creating issue type schemes

Perform the following steps to create a new issue type scheme:

  1. Browse to the administration console.
  2. Select the Issues tab and then the Issue Type Schemes option. This will bring you to the Issue Type Schemes page.
  3. Click on the Add Issue Type Scheme button.
  4. Provide a name for the new issue type scheme in Scheme Name.
  5. Drag the issue types you want to be part of the scheme from the Available Issue Types list and drop them into the Issue Types for Current Scheme list.
  6. Select a Default Issue Type value. Note that this is optional, and you can only select a default issue type after you have selected at least one issue type for the new scheme.
  7. Click on the Save button.
    Creating issue type schemes

After the issue type scheme has been created, you will need to associate it with the projects you want to apply the scheme to. The simplest way to do this is to click on the Associate link for the issue type scheme, and then select the projects you want. This allows you to apply the scheme to multiple projects at once. If there are already issues of issue type that does not belong to the new issue type scheme, JIRA will prompt you and walk you through to change the issue type value for all the affected issues.

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

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