Versions Compared

Key

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

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:

  1. Login as a Jira Administrator and click  > Issues.
  2. Click on the button Add custom field which is at the right top corner.
  3. Select a Field Type as Select List (multiple choices) and click Next.
  4. Enter Name, Description (optional) and Options in the respective fields, and click Create
  5. It traverses you to the Screens section. Choose the required workflow screen(s) and click Update
  6. In the Workflows tab, click on Edit link to the required workflow.
  7. Select the transition for which you want to add/edit post function. Select the Post Functions option.
  8. Click Add post function
  9. Traverse to the Conditions and Configurations option and add the custom field with Regular Expression pattern| ) as mentioned in below post function.

...

             In the following test scenario, we have added a custom field Services of type multiple choices and added the values (Laptop, Printer, Finger print access, Computer).

            Image Modified

            Select the option as Laptop and perform the transition, then the Sub-Tasks will get created as Laptop is one of the values in the condition mentioned in

...

Post Function. If you select Computer then no Sub-Tasks will get created upon transition.

            Image Modified

Info

It is recommended to test the post-function in a non-production environment before implementing it in the production environment.