Creating subtasks on an issue

In this recipe, we will demonstrate how to create a subtask from a JIRA plugin. It is very similar to issue creation, but there are some notable differences.

Subtasks are useful for splitting up a parent issue into a number of tasks, which can be assigned and tracked separately. The progress on an issue is generally a sum of progress on all its subtasks, although people use it for a lot of other purposes too.

How to do it...

There are two steps in creating a subtask:

  1. Create an issue object. A subtask object is nothing but an issue object in the backend. The only difference is that it has a parent issue associated with it. So, when we create a subtask issue object, we will have to define the parent issue in addition to ...

Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.