Versions Compared

Key

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

This article explains how to block the system not to create sub-tasks if the subtasks are already existed exists using the Create on Transition app.

...

  1. Add a post-function to the intended transition, to create a sub-task.
    To add a post-function, navigate to Cogwheel > Issues > Workflows > select the workflow of the project and edit the same.
  2. Select Create Sub-task post function as shown below.:
    Image RemovedImage Added
  3. Select the Conditions & ConfigurationsConfiguration and add %jql_result_count% in Condition 1 and Regular expression pattern value as "0" by marking the Exact field under Conditions section.:
    Image RemovedImage Added
    By using the %jql_result_count% and Regular expression pattern value as "0", it will check checks for the JQL query available under the Configuration section.
  4. Under the Configuration section in the JQL query add the value as parent = %original_key%
    Image Removed
    By using the Add the value parent = %original_key% 
    under the Configuration section in the JQL query which checks if .
    Image Added
    It checks whether the parent issue has some sub-tasks task(s) and then creates a new sub-task(s) accordingly.
  5. Click Update to save the settings. Verify the condition.:
    Image Removed
    Image Added
  6. Publish the workflow draft.
  7. Perform the transition In Progress transition as shown. You will notice that issues are created based on the condition and if . If the transition repeats, it won't will not create any duplicate sub-tasks.
    Image RemovedImage Added


Info

It is recommended to try the provided solution provided in a non-production environment and ensure everything is working as expected, before trying in a production environment.

...