---
title: "Create sub-task - Data Center"
canonical: "https://support.appfire.com/space/CSOTDC/3764200254/Create+sub-task+-+Data+Center"
format: markdown
---
> Macro (aura-html)

# Use case

<span style="color: #1d1c1d">Several teams use the </span><span style="color: #333333">[ePub workflow](https://appfire.atlassian.net/wiki/download/attachments/68749863/ePub-workflow-diagram.png?version=1&modificationDate=1521470932712&cacheVersion=1&api=v2)</span><span style="color: #1d1c1d"> to coordinate an eBook creation process. </span><span style="color: #1d1c1d">**When an eBook transitions from Open to Draft, a new sub-task needs to be created in the backlog of an “IT Services (IS)” project**</span><span style="color: #1d1c1d"> so the IT team’s manager can begin to forecast and assign resources.</span>  
<span style="color: #1d1c1d">Check out the below step-by-step instructions on how to automate sub-task creation based on the above scenario. </span>

# Steps

|  |  |  |
| --- | --- | --- |
| ![image](media://7ce50f42-2e14-4e5f-a163-609f299731a0) | ## Isolate the Workflow Transitions (ID) for new Create Sub-task Post Function<br>Logged into Jira as a workflow administrator:<br>1. Navigate to ***Project Settings → Workflows.***
2. Click the respective **Edit **link of the required Scheme, in the Actions column.
3. Click the link name of the Transitions (ID) for which you want to add a *Create Sub-task* post function. | ![image](media://54c37bad-32e7-440a-876b-1f0a3b8f0c67) |
| ![image](media://1a89c2fb-8380-49aa-a96e-c0931191b7c4) | ## Add Post Function<br>1. Select the *Post Functions* tab.
2. Click the *Add post function* link.
3. Select the *Create Sub-task *post function.
4. Click the **Add** button listed below the options. | ![image](media://2a955479-86a0-4774-9da5-822b4d97a732) |
| ![image](media://77f37f3e-c1d8-4556-8f07-81f63658aa6f) | ## Define Issue Fields<br>1. Select the *Basic Fields* tab:
  1. Retain the default *Summary *as "%parent_summary%", so we inherit the same summary as the parent issue.
  2. Enter "FYI - ePub sub-task workflow initiated" in the *Description *field.
2. Select the *Detailed Fields* tab:
  Within the details: Select "Sub-task" as *Issue type*
  1. Under People:
    1. Select "Current user" as *Reporter.*
    2. Select "Parent issue's assignee" as *Assignee.*
3. Select the *Links* tab:
  1. Select "Parent issue key" as the *Create link* value.
  2. Select "relates" as the *Create link type* value.
  3. Select "Issue key to new issue" as *Create link direction.*
4. Click the **Add** button at the bottom of the screen. | ![image](media://f6a338c6-734d-42cc-94f1-67fa0d9ee1e7)<br><sub>View configuration</sub><br>![image](media://f963f705-e73d-484d-88dc-c67247c7d26e) |
| ![image](media://3a51b7b3-8305-4d54-baff-f68185ef14d8) | ## Publish and Validate Post Function<br>1. Click the **Publish Draft** button to publish changes to your workflow and activate the Create Sub-task post function. Backing up your workflow ahead of publishing is always a good idea. However, in this case, simply publish without a backup.
2. Navigate to your project in Jira. In this case, navigate to the ePub project.
3. Create a new issue and then transition to the step where your new Create Sub-task post function is configured. In this case, this is the *In Draft* step.
4. Search for new sub-tasks within your project. You should see the new sub-task automatically created with the values you defined in the previous step. | ![image](media://24cbbd41-2f56-4608-a96a-77ccf0d77d6e) |