File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
apps/sim/app/api/tools/jira/write Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments