---
title: "Create sub-task - Data Center"
canonical: "https://support.appfire.com/space/CSOT/68749575/Create%20sub-task%20-%20Data%20Center"
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://e8748223-f468-4176-b985-3debb5fd7a84) | ## 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://7ee4058b-2a95-4fc3-bf93-9a39553a5161) |
| ![image](media://07023f54-6625-4cf3-b59b-5d3c2e324a64) | ## 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://9dbd193c-c8b4-4957-bd9f-172438695cf5) |
| ![image](media://3ac611b2-da77-43d4-a078-660242470337) | ## 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://6a9c355d-ab44-4abd-a617-8e90fc9965d5)<br><sub>View configuration</sub><br>![image](media://d28cf308-d150-4ab4-9171-1a7b7012c0ea) |
| ![image](media://1cfe6d5a-5e02-48d1-8429-83aac22c385c) | ## 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://cf7a614e-5c25-40a8-8735-8c947172b1d4) |