Is there an specific API by Atlassian to fetch the size of the Entity Property?

I want to store data in Entity Property but there is some limitations (https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/#limitations-of-entity-properties):

  • The maximum length of an entity property key is 255 bytes.
  • The maximum length of an entity property value is 32768 bytes.

So is there any API to fetch the size of Entity Property? which will be helpful to avoid breaching the limit data size.

Hi @Thanhbosua ,

I don’t think there’s an API for this, but it should be reasonably easy to work out on the caller’s side. For example, in NodeJS you can calculate the size of a property key as follows:

const propertyKeyLength = Buffer.byteLength(propertyKey, "utf-8");

Regards,
Dugald

1 Like