Hi, Jared - I have found that Resilient stores Select and Multiselect fields as an integer or set of integers which then need to be looked up to recover the displayable (text) label. This is known as enumeration.
The same thing appears to be true for Artifacts. I have written a little Python code to run in Circuits, initiated when an Artifact is added to or removed from an Incident. The attached screen capture shows the Table of other Incidents related to the current one and at the right I attempt to show the Artifact(s) as Label: Value that relate this Incident to the currently viewed one.
However the Label is 1 which I believe corresponds to IP Address and IIRC 27 equates to Port.
My code fragment shows how these are obtained from Resilient.
I am trying to find where the 'key' to this enumeration may be found so that I can convert the integers returned in the 'type' as displayable labels. Equivalent keys for all the regular Select/Multiselect fields in Resilient Incidents are readily available so that is why I state that it is a well-established process to look up this enumerated 'type' to recover the displayable label. I am sure you must have done this dozens of times, as I have.
Thanks and regards - Edwin Bolton
------------------------------
Edwin Bolton
------------------------------
Original Message:
Sent: 03-01-2019 04:12 PM
From: Jared Fagel
Subject: Artifact 'type' - resolving enumerated value to label
I'm confused by what you are asking. Artifacts can only be of type string?
Can you explain what you mean by this? Perhaps with code?
"it is a well-supported process to resolve the enumerated value of Select/Multi-Select fields and Activity Fields etc, to get a displayable label."
------------------------------
Jared Fagel
Cyber Security Analyst Intern
Public Utility
------------------------------