@@ -76,7 +76,7 @@ script:
76
76
'Name': process['processName']
77
77
}
78
78
context.append(process_context)
79
- ec['Minerva.Process'] = context
79
+ ec['Minerva.Process(val.Id === obj.Id) '] = context
80
80
elif context_id.endswith('endpoints'):
81
81
context = []
82
82
for endpoint in data:
@@ -88,7 +88,7 @@ script:
88
88
'OS': endpoint['operatingSystem']
89
89
}
90
90
context.append(endpoint_context)
91
- ec['Minerva.Endpoint'] = context
91
+ ec['Minerva.Endpoint(val.Id === obj.Id) '] = context
92
92
elif context_id.endswith('groups'):
93
93
context = []
94
94
for group in data:
@@ -102,7 +102,7 @@ script:
102
102
'CreationTime': group['creationTime']
103
103
}
104
104
context.append(group_context)
105
- ec['Minerva.Group'] = context
105
+ ec['Minerva.Group(val.Id === obj.Id) '] = context
106
106
elif context_id.endswith('vaccination'):
107
107
context = []
108
108
if isinstance(data, list):
@@ -117,7 +117,7 @@ script:
117
117
'Last modified on': vaccine['lastModifiedOn']
118
118
}
119
119
context.append(vaccine_context)
120
- ec['Minerva.Vaccine'] = context
120
+ ec['Minerva.Vaccine(val.Id === obj.Id) '] = context
121
121
else:
122
122
context = {
123
123
'Id': data['id'],
@@ -143,7 +143,7 @@ script:
143
143
'Applied groups': exclusion['appliedGroupsIds']
144
144
}
145
145
context.append(exclusion_context)
146
- ec['Minerva.Exclusion'] = context
146
+ ec['Minerva.Exclusion(val.Id === obj.Id) '] = context
147
147
else:
148
148
context = {
149
149
'Id': data['id'],
@@ -228,7 +228,8 @@ script:
228
228
'Type': entryTypes['note'],
229
229
'ContentsFormat': formats['markdown'],
230
230
'Contents': response.json(),
231
- 'HumanReadable': tableToMarkdown('Available groups', t=response.json(), headerTransform=pascalToSpace, removeNull=True)
231
+ 'HumanReadable': tableToMarkdown('Available groups', t=response.json(), headerTransform=pascalToSpace, removeNull=True),
232
+ 'EntryContext': create_entry_context(get_groups_url, response.json())
232
233
}
233
234
demisto.results(results)
234
235
0 commit comments