diff --git a/.github/actions/create-jira-ticket/action.yml b/.github/actions/create-jira-ticket/action.yml index 77e4dcefa3..bce7de2e76 100644 --- a/.github/actions/create-jira-ticket/action.yml +++ b/.github/actions/create-jira-ticket/action.yml @@ -133,6 +133,11 @@ runs: } } + if (project_name === "CTOR") { + ticket_data.fields["customfield_10016"] = 1; + ticket_data.fields["customfield_11022"] = [{"id": "10557"}]; // TargetBranches: "develop" + } + if (current_sprint !== null) { ticket_data.fields.customfield_10007 = parseInt(current_sprint, 10); } @@ -171,7 +176,10 @@ runs: console.log(`Response on priority change: ${response}`); // Update ticket status to NEED REFINEMENT and then SPRINT READY so that squad members can see it in their respective sprints - for (const transition_id of [11, 21]) { + // MON: 11 = "Select for refinement" (NEED REFINEMENT), 21 = "Ready to develop" (SPRINT READY) + // CTOR: 61 = "Select for refinement" (NEED REFINEMENT), 81 = "Ready to develop" (SPRINT READY) + const transition_ids = project_name === "CTOR" ? [61, 81] : [11, 21]; + for (const transition_id of transition_ids) { response = execSync( `curl --request POST \ --url "${{ inputs.jira_base_url }}/rest/api/latest/issue/${ticket_key}/transitions" \