jen_at_haverstack Posted September 15, 2020 Report Share Posted September 15, 2020 If I do something like this: const metadataResult = await session.create( 'Metadata', {parent_id: "7bd2c20a-f7a1-11ea-8466-005056829324", key: "builds", parent_type: "Breakdown", value: "foo"} ); ...the contents of `metadataResult` will be: { action: "create", data: { __entity_type__: "Metadata", key: "builds", parent_id: "7bd2c20a-f7a1-11ea-8466-005056829324", parent_type: "Milestone", value: "foo" } } Notice how the `parent_type` key is listed as `Milestone` when it should be `Breakdown`. For further context, `Breakdown` is a custom object created via the Objects interface and it has the 'Status' box checked. Link to comment Share on other sites More sharing options...
jen_at_haverstack Posted September 15, 2020 Author Report Share Posted September 15, 2020 As an additional bit of information, attempting to update the `parent_type` key with `session.update` has no effect. Metadata created via the Python API, e.g. `breakdown['metadata']['builds'] = "foo"`, has the correct `parent_type`. Link to comment Share on other sites More sharing options...
Simon Stålner Posted September 17, 2020 Report Share Posted September 17, 2020 Hi Jen, Thank you for sending this to us. I’ve reported this as a bug and our development team will take a look at it. Thanks again for the great information! Regards Simon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now