How to create an issue in different projects using Create On Transition for Jira

This article explains how to create an issue in different projects using the Create On Transition for Jira app. This article presents creating an issue in another project based on the component selection.

Instructions

Consider a Component with values as component1 and Component2 in the respective project.

  1. Add a post-function to the intended transition to create a sub-task.
    To add post-function, navigate to Cogwheel > Issues > Workflows > select the workflow of the project and edit.
  2. Select Create Issue post function as shown below:
  3. Select the Detailed Fields tab and select your respective project under which you wish to create the new issue. Also select the other fields as required.
  4. Select the Conditions & Configuration tab and add %parent_components% and to Condition 1 and component1 to the respective Regular expression pattern.

  5. Click Update to save the settings. Verify the condition:

  6. Use step# 2 through step# 5 to create an issue in a different project when component2 is selected. It looks similar to:


  7. Publish the workflow draft.
  8. Perform the transition Awaiting CAB Approval as shown and issues are created based on the condition.


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