mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
fix(jira): added uuid (#2513)
* added uuid param * revmoed comment * fixed naming
This commit is contained in:
@@ -253,10 +253,10 @@ export const JiraBlock: BlockConfig<JiraResponse> = {
|
|||||||
condition: { field: 'operation', value: 'write' },
|
condition: { field: 'operation', value: 'write' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'teamUuid',
|
id: 'customFieldValue',
|
||||||
title: 'Team UUID',
|
title: 'Custom Field Value',
|
||||||
type: 'short-input',
|
type: 'short-input',
|
||||||
placeholder: 'e.g., b3aa307a-76ea-462d-b6f1-a6e89ce9858a',
|
placeholder: 'Value for the custom field',
|
||||||
dependsOn: ['projectId'],
|
dependsOn: ['projectId'],
|
||||||
condition: { field: 'operation', value: 'write' },
|
condition: { field: 'operation', value: 'write' },
|
||||||
},
|
},
|
||||||
@@ -561,6 +561,8 @@ export const JiraBlock: BlockConfig<JiraResponse> = {
|
|||||||
.filter((item) => item !== '')
|
.filter((item) => item !== '')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const customFieldValue = params.customFieldValue || undefined
|
||||||
|
|
||||||
const writeParams = {
|
const writeParams = {
|
||||||
projectId: effectiveProjectId,
|
projectId: effectiveProjectId,
|
||||||
summary: params.summary || '',
|
summary: params.summary || '',
|
||||||
@@ -574,7 +576,7 @@ export const JiraBlock: BlockConfig<JiraResponse> = {
|
|||||||
reporter: params.reporter || undefined,
|
reporter: params.reporter || undefined,
|
||||||
environment: params.environment || undefined,
|
environment: params.environment || undefined,
|
||||||
customFieldId: params.customFieldId || undefined,
|
customFieldId: params.customFieldId || undefined,
|
||||||
customFieldValue: params.customFieldValue || undefined,
|
customFieldValue: customFieldValue,
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
...baseParams,
|
...baseParams,
|
||||||
|
|||||||
Reference in New Issue
Block a user