How to create sub-tasks based on multiple choice custom field values
This article explains how to create sub-tasks based on the custom field value in the Create on Transition app.Â
Instructions
Perform the following:
- Login as a Jira Administrator and click  > Issues.
- Click Add custom field in the top-right corner.
- Select Field Type as Select List (multiple choices), and click Next.
- Enter Name, Description (optional) and Options in the respective fields, and click Create.
- The Screens section is shown. Select the required workflow screen(s), and click Update.
- In the Workflows tab, click the Edit link to modify the required workflow.
- Select the transition for which you want to add or edit post function. Select the Post Functions option.
- Click Add post function.Â
- Navigate to the Conditions and Configurations tab and add the custom field with Regular Expression pattern ( | ) as mentioned below:
     Â
   10. Click Update and Publish the workflow.      Â
Consider the following test scenario. A custom field Services of type multiple choices is added with the values: Laptop, Printer, Finger print access, and, Computer.
        Â
Select the Laptop option and perform the transition. The sub-tasks are created with Laptop as one of the values in the condition mentioned after post-function.Â
      Â
If you select Computer, no sub-tasks are created on transition.
It is recommended to test this function in a non-production environment before deploying it.