Skip to content

Commit 8175810

Browse files
author
aadamgough
committed
removed comment
1 parent f426038 commit 8175810

File tree

1 file changed

+0
-4
lines changed
  • apps/sim/app/api/tools/jira/write

1 file changed

+0
-4
lines changed

apps/sim/app/api/tools/jira/write/route.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ export async function POST(request: Request) {
100100
}
101101

102102
if (priority !== undefined && priority !== null && priority !== '') {
103-
// Check if priority is a numeric ID or a name
104103
const isNumericId = /^\d+$/.test(priority)
105104
fields.priority = isNumericId ? { id: priority } : { name: priority }
106105
}
@@ -137,7 +136,6 @@ export async function POST(request: Request) {
137136
}
138137
}
139138

140-
// Handle team assignment via custom field
141139
if (
142140
customFieldId !== undefined &&
143141
customFieldId !== null &&
@@ -146,12 +144,10 @@ export async function POST(request: Request) {
146144
customFieldValue !== null &&
147145
customFieldValue !== ''
148146
) {
149-
// Normalize the field ID (ensure it starts with customfield_)
150147
const fieldId = customFieldId.startsWith('customfield_')
151148
? customFieldId
152149
: `customfield_${customFieldId}`
153150

154-
// Use the team UUID directly
155151
fields[fieldId] = customFieldValue
156152
}
157153

0 commit comments

Comments
 (0)