@manyos/smileconnect-api 1.53.0 → 1.53.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/controller/taskController.js +27 -2
- package/docs/releases.md +8 -5
- package/package.json +1 -1
|
@@ -129,6 +129,20 @@ async function updateTaskFlow(clientConfig, rootForm, rootRequestId, rootRequest
|
|
|
129
129
|
"RootRequestInstanceID" : rootRequestInstanceId
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
+
/*let flowReq2 = {
|
|
133
|
+
"10000000" : "AGGarserver000RD23DCRC3JB8TC9E",
|
|
134
|
+
"10000001" : "PBI000000001807",
|
|
135
|
+
"10000005" : "PBM:Problem Investigation",
|
|
136
|
+
"10001735" : "CREATE_TASK_FLOW",
|
|
137
|
+
"10001751" : "TMGarserver000RD2334RC3J1UTD55",
|
|
138
|
+
"10001753" : "0",
|
|
139
|
+
"10001756" : "AGGarserver000RD23DCRC3JB8TC9E",
|
|
140
|
+
"10002025" : "1",
|
|
141
|
+
"10007302" : "TMGarserver000RD233CRC3J18TD4L",
|
|
142
|
+
"10010305" : "PBI000000001807",
|
|
143
|
+
"1000000001" : "Calbro Services"
|
|
144
|
+
}*/
|
|
145
|
+
|
|
132
146
|
const mappingflow = config.getMapping('flowBuilder');
|
|
133
147
|
|
|
134
148
|
flowBuilderRequest = mappingUtil.applyMapping2Remedy(flowBuilderRequest, mappingflow, clientConfig.flowBuilder.constants);
|
|
@@ -171,10 +185,17 @@ async function checkFlowActivation(clientConfig, rootRequestInstanceId, rootRequ
|
|
|
171
185
|
|
|
172
186
|
const phaseRecords = await arquery.executeARQuery(form, undefined,
|
|
173
187
|
configQuery, 'InstanceId')
|
|
188
|
+
|
|
189
|
+
//Todo: Handle records without phases
|
|
174
190
|
if (phaseRecords && phaseRecords.data && phaseRecords.data.length > 0) {
|
|
175
191
|
const phaseRecord = phaseRecords.data[0]
|
|
176
192
|
const phaseGuid = phaseRecord['InstanceId']
|
|
177
193
|
await activateTaskFlow(clientConfig, rootRequestInstanceId, phaseGuid)
|
|
194
|
+
} else {
|
|
195
|
+
// nur bei Problem sofort aktivieren
|
|
196
|
+
if (rootForm === CONSTANTS.FORM_PROBLEM) {
|
|
197
|
+
activateTaskFlow(clientConfig, rootRequestInstanceId)
|
|
198
|
+
}
|
|
178
199
|
}
|
|
179
200
|
}
|
|
180
201
|
|
|
@@ -191,8 +212,12 @@ async function activateTaskFlow(clientConfig, rootRequestInstanceId, phaseGuid)
|
|
|
191
212
|
"zTmpInternal" : "True"
|
|
192
213
|
};
|
|
193
214
|
|
|
194
|
-
|
|
195
|
-
|
|
215
|
+
let query = `'RootRequestInstanceID'="${rootRequestInstanceId}" AND 'ParentID' = "${rootRequestInstanceId}" AND 'Predecessor Link' = "Start" AND 'Status' = "Pending" AND 'Sequence Mode' = "Yes"`
|
|
216
|
+
if (phaseGuid) {
|
|
217
|
+
query += ` AND 'Phase GUID' = "${phaseGuid}"`
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const records = await arquery.executeARQuery(form, undefined, query, idField)
|
|
196
221
|
if (records && records.data) {
|
|
197
222
|
for (let x=0; x<records.data.length; x++) {
|
|
198
223
|
const record = records.data[x]
|
package/docs/releases.md
CHANGED
|
@@ -2,19 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
## API
|
|
4
4
|
|
|
5
|
-
### 1.53.
|
|
5
|
+
### 1.53.1 - 01.02.22
|
|
6
|
+
Fix Task Flow Activation for Problems
|
|
7
|
+
|
|
8
|
+
### 1.53.0 - 17.11.21
|
|
6
9
|
Update NodeJs to v16
|
|
7
10
|
|
|
8
|
-
### 1.52.4 - 17.11.
|
|
11
|
+
### 1.52.4 - 17.11.21
|
|
9
12
|
Fix issue: Keep invisible ServiceCi Relation in Tickets during CI Relation Update
|
|
10
13
|
|
|
11
|
-
### 1.52.3 - 16.11.
|
|
14
|
+
### 1.52.3 - 16.11.21
|
|
12
15
|
Fix issue: Add globalParams to update ticket
|
|
13
16
|
|
|
14
|
-
### 1.52.2 - 16.11.
|
|
17
|
+
### 1.52.2 - 16.11.21
|
|
15
18
|
Fix issue: Inbound Events Names missed 'Worklog' for Task Worklogs
|
|
16
19
|
|
|
17
|
-
### 1.52.1 - 12.11.
|
|
20
|
+
### 1.52.1 - 12.11.21
|
|
18
21
|
Fix issue: Task CI relations might be removed on duplicate updates
|
|
19
22
|
|
|
20
23
|
### 1.52.0 - 09.11.21
|