@manyos/smileconnect-api 1.45.0 → 1.45.2

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/clients.json CHANGED
@@ -296,7 +296,13 @@
296
296
  }
297
297
  ],
298
298
  "basequery": "",
299
- "scripts": {}
299
+ "scripts": {
300
+ "POST": {
301
+ "preMapping": [
302
+ "reject"
303
+ ]
304
+ }
305
+ }
300
306
  },
301
307
  "workOrder": {
302
308
  "fields": [
@@ -0,0 +1 @@
1
+ reject(requestData);
@@ -88,7 +88,7 @@ async function createTask(clientConfig, rootForm, rootRequestId, taskData, creat
88
88
 
89
89
  //run afterExecution
90
90
  if (scripts && scripts.afterExecution) {
91
- await scriptController.runScripts(scripts.afterExecution, data, clientConfig.clientId, globalScriptParams);
91
+ await scriptController.runScripts(scripts.afterExecution, taskData, clientConfig.clientId, globalScriptParams);
92
92
  }
93
93
 
94
94
  log.debug('Create Task Result', taskResult);
@@ -214,6 +214,7 @@ function queryTasks(clientConfig, query, globalScriptParams, includeString) {
214
214
 
215
215
  element.relations = {};
216
216
  if (includeArray.includes('ciRelations')) {
217
+ log.debug('Read relations for task', )
217
218
  const relations = await ticketCIRelationController.getTicketCIRelations(element['InstanceId']);
218
219
  element.relations.ciRelations = relations;
219
220
  }
@@ -12,7 +12,7 @@ const scriptController = require('./scriptController');
12
12
  const ticketCache = new CacheService(process.env.CACHETTL_TICKETS || 1); // Create a new cache service instance
13
13
 
14
14
  async function createWorklog(ticketConfig, clientConfig, ticketId, data, globalScriptParams) {
15
- const scripts = clientConfig[ticketConfig.requestTypeWorkLog].scripts;
15
+ const scripts = clientConfig[ticketConfig.requestTypeWorkLog].scripts.POST;
16
16
  const mapping = config.getMapping(ticketConfig.requestTypeWorkLog);
17
17
  const fields = clientConfig[ticketConfig.requestTypeWorkLog].fields;
18
18
 
package/docs/releases.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## API
4
4
 
5
+ ### 1.45.2 - 05.10.21
6
+ Fix issue: Error on AfterExecution Scripts in Tasks
7
+
8
+ ### 1.45.1 - 29.09.21
9
+ Fix issue: POST scripts on Ticket Worklogs are not startet
10
+
5
11
  ### 1.45.0 - 27.09.21
6
12
  Add ciRelation Handling for Tasks
7
13
 
@@ -44,6 +50,9 @@ e.g.
44
50
 
45
51
  ## Event Manager
46
52
 
53
+ ### 1.17.1 - 01.10.21
54
+ Fix issue: TicketNumber3 added to Event Data
55
+
47
56
  ### 1.17.0 - 17.09.21
48
57
 
49
58
  Add eventdata to Queue for outbound
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.45.0",
3
+ "version": "1.45.2",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {