What is definition of the date fields in the REST API link, because the one returned by the API for example the startedDate is not the same as in the XSD (xs:dateTime)
Hi Chattan,
Thank you for reaching out to the Atlassian Community!
I appreciate you calling out the discrepancy between the API documentation and the API results.
This REST API does not have an XML result, so the XSD would not be applicable here. That being said, however, the nodes with type="xs:dateTime" in the XSD for these endpoints (example below) are Unix timestamps in milliseconds.
<xs:complexType name="restDeploymentResult">
</xs:complexType><xs:complexType name="restDeploymentVersion"> <xs:sequence> <xs:element name="id" type="xs:long"/> <xs:element name="name" type="xs:string" minOccurs="0"/> <xs:element name="creationDate" type="xs:dateTime" minOccurs="0"/> <xs:element name="creatorUserName" type="xs:string" minOccurs="0"/> <xs:element name="items" type="restDeploymentVersionItem" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="versionStatus" type="restDeploymentVersionStatus" minOccurs="0"/> <xs:element ref="operations" minOccurs="0"/> <xs:element name="creatorDisplayName" type="xs:string" minOccurs="0"/> <xs:element name="creatorGravatarUrl" type="xs:string" minOccurs="0"/> <xs:element name="planBranchName" type="xs:string" minOccurs="0"/> <xs:element name="ageZeroPoint" type="xs:dateTime" minOccurs="0"/> </xs:sequence></xs:complexType><xs:complexType name="restDeploymentVersionItem" abstract="true"> <xs:sequence> <xs:element name="id" type="xs:long"/> <xs:element name="name" type="xs:string" minOccurs="0"/> </xs:sequence></xs:complexType>
For example the startedDate in your screenshot –
startedDate: 1582171641497,
this translates as:
Please do not hesitate to reach out if you have any additional questions!
Cheers,
Elias | Bamboo Support
Thanks Elias
It looks like you're new here. Sign in or register to get started.