Versions Compared

Key

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

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:

  1. Login as a Jira Administrator and click  > Issues.
  2. Click on the button Click Add custom field which is at the right top  in the top-right corner.
  3. Select a Field Type as Select List (multiple choices) and click , and click Next.
  4. Enter Enter Name, Description (optional) and Options in the respective fields, and click click Create.
  5. It traverses you to the The Screens section is shown. Choose Select the required workflow screen(s), and click Update.
  6. In the Workflows tab, click on the Edit link to modify the required workflow.
  7. Select the transition for which you want to add /or edit post function. Select the Post Functions option.
  8. Click Add post function
  9. 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 test scenario, we have added a . A custom field Services of type multiple choices and is added with the values (: Laptop, Printer, Finger print access, and, Computer).

                       

Select the option as Laptopand  option and perform the transition, then the Sub-Tasks will get created as Laptop is . The sub-tasks are created with Laptop as one of the values in the condition mentioned in Post Function. If you select Computer then no Sub-Tasks will get created upon transition.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.