Hi,
I am trying to create report using Table transformer using JIRA as source. I would like to display no of tickets those have status='blocked' along with other columns using below query
SELECT SUM(T1.'Story Points'::integer) as 'Days Needed'
,count(T1.'Assignee') NoOfTickets
,(select count(T1.'Assignee') from T1 where T1.'Status' LIKE "%BLOCK%") as 'Blocked Tickets'
, T1.'Assignee' as 'Assignee'
,CEIL(DATEDIFF(DAY,NOW(),"17-01-2023")) as 'Calendars Days Left'
FROM T1
group by T1.'Assignee'
But, this show blocked tickets for all assignee same if one of them has it. I am not able to corelate assignee to sub query from T1.Assignee table. As only one of the assignee has blocked status tickets but result shows same value for assignees.
Please advise.