Hi Team,
I added a post function to create or clone issues, specifically to generate a subtask from a Task issue type when certain conditions are met during a specific transition. Currently, all workflow statuses are set to "All." When a ticket is moved to that status, a subtask is created, which is working as intended. However, if the user moves the ticket back to the same status, it creates another subtask.
How can we prevent the creation of duplicate subtasks for the same ticket? We only need one subtask to be created when specific conditions are met the first time the ticket moves to that status. What condition should we set to achieve this?