@manyos/smileconnect-api 1.45.7 → 1.46.0
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/conf/mapping.json
CHANGED
|
@@ -827,6 +827,10 @@
|
|
|
827
827
|
{
|
|
828
828
|
"oldName": "Assignee Group",
|
|
829
829
|
"newName": "supportGroup"
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"oldName": "Phase GUID",
|
|
833
|
+
"newName": "phase"
|
|
830
834
|
}
|
|
831
835
|
],
|
|
832
836
|
"taskWorklog": [
|
|
@@ -877,8 +881,8 @@
|
|
|
877
881
|
"newName": "RootRequestName"
|
|
878
882
|
},
|
|
879
883
|
{
|
|
880
|
-
"oldName": "
|
|
881
|
-
"newName": "
|
|
884
|
+
"oldName": "RootRequestInstanceID",
|
|
885
|
+
"newName": "RootRequestInstanceID"
|
|
882
886
|
},
|
|
883
887
|
{
|
|
884
888
|
"oldName": "zTmpInternalCommand",
|
|
@@ -895,6 +899,10 @@
|
|
|
895
899
|
{
|
|
896
900
|
"oldName": "Parent Name",
|
|
897
901
|
"newName": "Parent Name"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"oldName": "Location Company",
|
|
905
|
+
"newName": "Location Company"
|
|
898
906
|
}
|
|
899
907
|
],
|
|
900
908
|
"changeTemplate": [
|
|
@@ -78,7 +78,6 @@ async function createTask(clientConfig, rootForm, rootRequestId, taskData, creat
|
|
|
78
78
|
thisTask.RootRequestMode = "1";
|
|
79
79
|
thisTask.RootRequestName = rootRequestId;
|
|
80
80
|
thisTask.RootRequestInstanceId = rootRequest.data[0]['InstanceId'];
|
|
81
|
-
thisTask.sequence = thisTask.Sequence || "1";
|
|
82
81
|
});
|
|
83
82
|
|
|
84
83
|
for (let x=0; x< allTaskFinal.length; x++) {
|
|
@@ -113,21 +112,21 @@ async function createTask(clientConfig, rootForm, rootRequestId, taskData, creat
|
|
|
113
112
|
}
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
async function deleteTaskFlow(
|
|
117
|
-
log.debug('Delete Task Flow',
|
|
118
|
-
const taskFlowResult = await arquery.deleteEntries('TMS:Flow', undefined, `'
|
|
115
|
+
async function deleteTaskFlow(rootRequestInstanceId) {
|
|
116
|
+
log.debug('Delete Task Flow', rootRequestInstanceId)
|
|
117
|
+
const taskFlowResult = await arquery.deleteEntries('TMS:Flow', undefined, `'RootRequestInstanceID' = "${rootRequestInstanceId}"`)
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
async function updateTaskFlow(clientConfig, rootForm, rootRequestId, rootRequestInstanceId) {
|
|
122
|
-
await deleteTaskFlow(
|
|
121
|
+
await deleteTaskFlow(rootRequestInstanceId)
|
|
123
122
|
let flowBuilderRequest = {
|
|
124
|
-
"
|
|
125
|
-
"RootRequestName" : rootRequestId,
|
|
126
|
-
"RootRequestInstanceId" : rootRequestInstanceId,
|
|
127
|
-
"zTmpInternalCommand" : "CREATE",
|
|
128
|
-
"Parent Type" : "0",
|
|
123
|
+
"Parent Name": rootForm,
|
|
129
124
|
"ParentID" : rootRequestInstanceId,
|
|
130
|
-
"Parent
|
|
125
|
+
"Parent Type": "Root Request",
|
|
126
|
+
"zTmpInternalCommand" : "CREATE",
|
|
127
|
+
"RootRequestFormName" : rootForm,
|
|
128
|
+
"RootRequestName" : rootForm,
|
|
129
|
+
"RootRequestInstanceID" : rootRequestInstanceId
|
|
131
130
|
};
|
|
132
131
|
|
|
133
132
|
const mappingflow = config.getMapping('flowBuilder');
|
|
@@ -420,7 +420,12 @@ function doesTicketRelationExists(ticketRelations, newRelation) {
|
|
|
420
420
|
|
|
421
421
|
async function updateRelations(ticketConfig, userConfig, ticketId, relations) {
|
|
422
422
|
log.debug('Checker', {ticketConfig, userConfig, ticketId, relations});
|
|
423
|
-
//
|
|
423
|
+
// Remove Ticket Relations if task
|
|
424
|
+
if (ticketConfig.assocTicketType === 'Task') {
|
|
425
|
+
relations.ticketRelations = undefined
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
//Check CI Relations
|
|
424
429
|
if (relations && relations.ciRelations && Array.isArray(relations.ciRelations)) {
|
|
425
430
|
const existingRelations = await getTicketCIRelations(ticketId);
|
|
426
431
|
log.debug('foundRelations', existingRelations);
|
package/docs/releases.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## API
|
|
4
4
|
|
|
5
|
+
### 1.46.0 - 14.10.21
|
|
6
|
+
Add validateUpdateRequest to cmdbobjects
|
|
7
|
+
|
|
8
|
+
### 1.45.8 - 11.10.21
|
|
9
|
+
Fix issue: Ignore Ticketrelations for Task Update & Create
|
|
10
|
+
|
|
5
11
|
### 1.45.7 - 05.10.21
|
|
6
12
|
Fix issue: Use normal Task mapping for new tasks and existing tasks as no Interface Create Form is used.
|
|
7
13
|
|
package/package.json
CHANGED
|
@@ -129,8 +129,8 @@ module.exports = (function () {
|
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
cmdbObjectRoutes.post('/validateUpdateRequest
|
|
133
|
-
const clientId = req.
|
|
132
|
+
cmdbObjectRoutes.post('/validateUpdateRequest', passport.authenticate('jwt', {session: false}), checkSchema(fieldMappingSchemas.validateCMDBDataSchema), async function (req, res, next) {
|
|
133
|
+
const clientId = req.user.config.clientId;
|
|
134
134
|
eventLog.setEventData(
|
|
135
135
|
req,
|
|
136
136
|
CONSTANTS.EVENT_BASE_AST,
|