Configure any custom outbound mappings you need for your outbound table map. You can selectively remove fields from JSD meshlet mappings (which will remove the field from the mapping body before being sent to JSD) by setting a flag value in your ServiceNow outbound table map. This is done by setting a value to JIRA_IGNORE_FLAG via a script if you want that field to be removed from the mapping body before being sent to JSD. This is useful if you want to conditionally include a value in your JSD meshlet mapping, since you can only have one meshlet mapping for each action. For example, if you want to include the field state only if active is true, you could use a script on your mapping for state as such: Code Block |
---|
| if (current.active === true) {
answer = current.state;
} else {
answer = "JIRA_IGNORE_FLAG";
} |
NOTE: In the JSD meshlet, if JIRA_IGNORE_FLAG is detected in a field value in a request being sent to JSD, that field is removed. |