I want to select through MS SQL checkbox attribute of Tempo Worklog (It's called Overtime)
This is how it works before
SELECT
W.ID
,[IsOvertime] = CONVERT(bit, IIF(PS2.propertyvalue LIKE '_Overtime_=_Overtime_', 1, 0))
FROM jira.worklog W
LEFT JOIN jira.jiraissue JI ON JI.ID = W.issueid
LEFT JOIN jira.propertyentry PE2 ON PE2.ENTITY_NAME = 'Tempo.Worklog' AND PE2.PROPERTY_KEY = 'Tempo.WorklogAttributes' AND PE2.ENTITY_ID = W.ID AND PE2.propertytype=5
LEFT JOIN jira.propertystring PS2 ON PS2.ID = PE2.ID
I don't remember the date it has changed... probably Tempo ver 8 or earlier, however right now it's not working and I cannot find where Tempo stores attributes of worklog.
Please suggest