This article explains how to create a sub-task based on the value selected from the custom field in Create on Transition app.
Instructions
Perform the steps:
- Login as a Jira Administrator and click > Issues.
- Click on the button Add custom field which is at the right top corner.
- Select a Field Type as Select List (multiple choices) and click Next.
- Enter Name, Description (optional) and Options in the respective fields, and click Create
- It traverses you to the Screens section. Choose the required workflow screen(s) and click Update
- In the Workflows tab, click on Edit link to the required workflow.
- Select the transition for which you want to add/edit post function. Select the Post Functions option.
- Click Add post function.
- Traverse to the Conditions and Configurations option and add the custom field with Regular Expression pattern ( | ) as mentioned in below post function.
...
Select the option as Laptop and perform the transition, then the Sub-tasksTasks will get created based on as Laptop is one of the values in the condition value mentioned in the post function. If you select Computer then no Sub-Tasks will get created upon transition.
Info |
---|
It is recommended to test the post-function in a non-production environment before implementing it in the production environment. |