This article explains how to create a sub-task tasks based on the value selected from the custom field in value in the Create on Transition app.
Instructions
Perform the stepsfollowing:
- Login as a Jira Administrator and click > Issues.
- Click on the button Click Add custom field which is at the right top in the top-right corner.
- Select a Field Type as Select List (multiple choices) and click , and click Next.
- Enter Enter Name, Description (optional) and Options in the respective fields, and click click Create.
- It traverses you to the The Screens section is shown. Choose Select the required workflow screen(s), and click Update.
- In the Workflows tab, click on 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.
- Traverse Navigate to the the Conditions and Configurations option tab and add the custom field with Regular Expression pattern ( | ) as mentioned in below post function.:
10. Click on Click Update and Publish the workflow. In
Consider the following example, we have added a test scenario. A custom field Services of type multiple choices and is added with the values (: Laptop, Printer, Finger print access, computer)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.
Info |
---|
It is recommended to test the post-this function in a non-production environment before implementing deploying it in the production environment. |