You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @sviyh 👋 I'm really struggling to reproduce the issue you're seeing. At a quick glance, the bloblang code you shared above isn't valid, since the keys in the issue object you're trying to create aren't double quoted. For example, this works just fine:
You'd get nulls if the input message doesn't have the fields which are being referenced via this, but I'm not sure how to reproduce the error you're seeing.
This works:
pipeline:
processors:
- mapping: |
root.issue = {
self: this.self,
id: this.id,
key: this.key,
}
root.issue.creator = this.fields.creator.displayName
while this doesn't:
pipeline:
processors:
- mapping: |
root.issue = {
self: this.self,
id: this.id,
key: this.key,
creator:this.fields.creator.displayName
}
It returns the error which explains nothing: "failed assignment (line 1): mapping returned invalid key type: "
The text was updated successfully, but these errors were encountered: