I am using 'Table Transformer' macro to pull out JIRA issues and their status using a JQL.
Let's assume that my query returns 3 issues with following statuses:
- Defect A with 'Open'
- Defect B with 'Closed'
- Defect C with 'In Progress'
Also, I am renaming the columns in my query for some reasons, something like:
SELECT T1.'Labels' as 'Project',
T1.'Count Closed' as 'Closed',
T1.'Count OPEN' as 'Open',
T1.'Count In Progress' as 'In Progress',
From T1 WHERE T1.'Labels' in (<my customer labels for JIRAs>);
And now let's assume that Defect 'C' was moved from 'In Progress' to 'Code Review'. But now the same query returns the error:
Column does not exist: Count In Progress
This is resulting in frequent page breaks. How can I add a condition in such a way that rename a column only if it exists?