BugEntityProperties
Retrieves the data stored against an entity. The argument of this method should be the key that was used when the same data was stored.
Table Specific Information
Entity-properties are key-value pairs stored against the bug entities. They can be used for storing details that are needed for API integrations but don't have to be visible in the UI. The key has to be a String and the Value could be a simple string or a json object. You can store multiple key-value pair for a single entity. These entity properties can be stored / retrieved / updated / deleted using the following queries.
Select
- BugId and PropertyKey are required to retrieve Bug Entity Properties.
SELECT * FROM BugEntityProperties WHERE BugId = '123456000000034087' AND PropertyKey = 'key1'
Insert
To add a new Bug Entity Property specify the BugId, PropertyKey and PropertyValue fields.
INSERT INTO BugEntityProperties (BugId, PropertyKey, PropertyValue) VALUES ('123456000000034087', 'key1', 'This is a test value')
Update
ZohoProjects allows updates for the PropertyValue column.
UPDATE BugEntityProperties SET PropertyValue = 'This is an updated property value' WHERE BugId = '123456000000034087' AND PropertyKey = 'key1'
Delete
Bug Entity Properties can be deleted by providing Id, BugId, PropertyKey and issuing a DELETE statement.
DELETE FROM BugEntityProperties WHERE BugId = '166135000000034087' AND PropertyKey = 'key1' AND Id = '166135000000035001'
Columns
Name | Type | ReadOnly | Description |
Id [KEY] | String | False |
Bug Entity Property Id. |
BugId [KEY] | String | False |
Bug Id. |
PropertyKey [KEY] | String | False |
Bug Entity Property Key. |
PropertyValue | String | False |
Bug Entity Property Value. |