Your code had an error! Traceback (most recent call last): File "<string>", line 110, in the_function File "<string>", line 39, in update_object Exception: Failed to update object. Status code: 400. Response text: {"errorMessages":[],"errors":{"rlabs-insight-attribute-211":"2024-18-09T00:00:00.000+00:00 is not valid (Date)"}}
Your code had an error! Traceback (most recent call last): File "<string>", line 110, in the_function File "<string>", line 39, in update_object Exception: Failed to update object. Status code: 400. Response text: {"errorMessages":[],"errors":{"rlabs-insight-attribute-247":"\"2024-09-18T00:00:00.000Z\" is not valid (DateTime)"}}
I've manually set the DateTime in the asset, copied the value that is returned for the DateTime value and it still fails.
"objectTypeAttributeId": "247",
"objectAttributeValues": [
{
"value": "2024-09-18T00:00:00.000Z",
"displayValue": "18/Sep/24 12:00 AM",
"searchValue": "2024-09-18T00:00:00.000Z",
"referencedType": false
}
],
"objectId": "7878"
I'm not sure if theres a bug in the Date and DateTime asset API or I'm making a very simple error. If I do not escape the quotes are the time it reports that its not serializable json, which is a bit odd...
There was actually a formatting issue with my json payload which was causing the date issue.
I know this is a long shot being 2 years old, but what was the final format answer and issue you were having with the JSON payload? Having this issue now and it's driving me nuts.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you!!! That'll be a huge help. Now to get everything to play nice. Really hate working with dates / times in Atlassian products.
Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.