Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

Div
idProductTOC

On this page

Table of Contents
maxLevel2
excludeOn this page
typeflat
separatorpipe

Description

Using the Create Sub-task workflow post function will allow you to create one or more sub-tasks when the post function is processed after a workflow transition step. We've streamlined the configuration of this post function by grouping all configuration settings into various tabs for easy access:

  • ISSUE FIELDS - These issue fields allow you to define the contents of one or more fields when an sub-task is created by this post function. Substitution Variables can then be used to populate fields. Issue Fields are grouped into the following common categories:
    • Basic Fields - includes fields which are most commonly used when creating a new sub-task in Jira.
    • Detailed Fields - includes details associated with the sub-task, people involved, and dates.
    • Links - includes details of sub-task links and link types.
    • Comments & Attachments - how you want to handle comments and specifics associated with attachments.
    • Custom Fields - controls whether to copy custom fields and allows you to define values for new custom fields.
  • OPTIONAL RULES - Allow you to define the additional criteria for when and how to create the sub-task(s). Optional Rules are grouped into the following category:
    • Conditions & Configuration - Define one or more conditions for when to create the sub-tasks(s), use JQL to define substitution variables to be used to populate other fields, as well as set the acting user for the sub-task creation. 
  • HELP - Provides quick links to additional documentation 

Image Removed

Example

This scenario introduces a new Create Sub-task workflow post function to a transition step within an existing workflow.

Background

...

Use Case

Several teams use the ePub workflow to coordinate an eBook creation process. 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 so the IT team’s manager can begin to forecast and assign resources.
Check out the below step-by-step instructions on how to automate sub-task creation based on the above scenario. 

Steps

Table plus
border0
heading0
multiplefalse
enableHeadingAttributesfalse
columnAttributesstyle="border:0;width=5%;",style="border:0;width=65%;",style="border:0;width=30%;max-width=30% !important;"
idsteps_table
enableSortingfalse
enableHighlightingfalse

Image Removed
Image Added

Isolate the Workflow Transitions (

id

ID) for new Create

Issue

Sub-task Post Function

Logged into Jira as a workflow administrator:

  1. Navigate

to
  1. to Project Settings → Workflows.

Under
  1. Click the respective Edit link of the required Scheme, in the Actions

navigation, click Edit
  1. column.

Using the editor in "text" mode, click
  1. Click the link name of the Transitions (

id
  1. ID)

that you will introduce a Create Issue Post function against.

Image Removed

Image Removed
  1. for which you want to add a Create Sub-task post function.

Image Added

Image Added

Add Post Function

  1. Select the Post Functions tab.

  2. Click the

"
  1. Add post function

" like (right-hand side of dialog). 
  1. link.

  2. Select the

"
  1. Create Sub-task

" radio button
  1. post function.

  2. Click the

"
  1. Add

"
  1. button listed below the options.

Image Removed
Image Added

Image Removed








Image Added

Define Issue Fields

Within
  1. Select the

"
  1. Basic Fields

" section
  1. tab:

Keep
    1. Retain the default Summary as "%parent_summary%", so we inherit the same summary as the parent issue.

Set the Description field to
    1. Enter "FYI - ePub sub-task workflow initiated"

Navigate to the "Detailed Fields" section
    1. in the Description field.

  1. Select the Detailed Fields tab:

    Within

the 
  1. the details:

 
Set the Issue type to
  1.  Select "Sub-task"

  
  1. as Issue type

    1. Under People:

Keep the Reporter as
      1. Select "Current user"

Keep the Assignee as
      1. as Reporter.

      2. Select "Parent issue's assignee" as Assignee.

Navigate to
  1. Select the

"
  1. Links

" section
  1. tab

Set the Create link value to
    1. Select "Parent issue key"

Set
    1. as the Create link

type value to "Relates"Set
    1.  value.

    2. Select "relates" as the Create link

direction to
    1. type value.

    2. Select "Issue key to new issue" as Create link direction.

  1. Click the

"
  1. Add

"
  1. button at the bottom of the screen.

Image Removed
Image Added

View configuration

Image Removed
Image Added

Image Removed



Image Added

Publish and Validate Post Function

  1. Click the

"
  1. Publish Draft

"
  1. button to publish changes to your workflow and activate the Create Sub-task post function.

 Backing
  1.  Backing up your workflow ahead of publishing is always a good idea. However, in this case

we will
  1. , simply publish without a backup.

  2. Navigate to your

Project
  1. project in Jira.

 
  1. In

our
  1. this case,

we will
  1. navigate to the ePub project.

  2. Create a new

Issue
  1. issue and then transition to the step where your new Create Sub-task post function is configured. In

our
  1. this case, this is the In Draft step.

  2. 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 Removed
Image Added

...


...