Looking at the Jira Cloud Rest API, some of resource ids are defined as string (eg: Project.id, Version.id, Issue.id...).
Now, if I look at the Jira Expression Types, same fields are defined as number.
Can I expect always having a number converted to a string in the Rest API responses ? (in other words, can I safely cast these strings to numbers ?)
This mismatch exists also inside the Rest API, because some "reference" fields are defined as number (eg: Component.projectId, Version.projectId)
The same mismatch exists in Jira Server, where the Jira Server Rest API defines string for entity ids, but if you access entity from the managers in java, internal datatypes are numbers...
Sorry, posted at the wrong place.
Topic dedicated to dev community. Re-posted here: https://community.developer.atlassian.com/t/datatype-mismatch-between-jira-expression-and-rest-api-can-we-expect-numbers-for-ids/34039
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.