Hello
Recently we had an accidental deletion of the Username field for 1800+ objects in our Insight (installed on Jira Service Management Server).
My plan is to restore these in the backend postgres DB by pulling the OLD_VALUE from the history table and inserting into the objects username field. The below sql gets me the OLD_VALUE that was removed however I am struggling to find where in schema/table structure the Username is stored per object. I suspect that this is more complex as its likely pulled/linked to the main Jira user tables as its a username picker. Any pointers would be appreciated please.
select a."NAME", c."OLD_VALUE" from "AO_8542F1_IFJ_OBJ" AS a inner join "AO_8542F1_IFJ_OBJ_TYPE" AS b ON a."OBJECT_TYPE_ID" = b."ID" inner join "AO_8542F1_IFJ_OBJ_HIST" AS c ON a."ID" = c."OBJECT_ID" WHERE b."NAME" = 'Computing Devices' AND c."AFFECTED_ATTRIBUTE" = 'Username';
Thank you in advance.
M