Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/actions/create-jira-ticket/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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" \
Expand Down
Loading