@manyos/smileconnect-api 1.45.7 → 1.45.8

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.
@@ -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
- //Cehck CI Relations
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,9 @@
2
2
 
3
3
  ## API
4
4
 
5
+ ### 1.45.8 - 11.10.21
6
+ Fix issue: Ignore Ticketrelations for Task Update & Create
7
+
5
8
  ### 1.45.7 - 05.10.21
6
9
  Fix issue: Use normal Task mapping for new tasks and existing tasks as no Interface Create Form is used.
7
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.45.7",
3
+ "version": "1.45.8",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {