I am trying to create a filter in jira to match/find the last created ticket – only one ticket which was created last.
I came up with the following filter but it matches the last day. If yesterday there was no ticket created the result of this filter would be empty – but the filter I am trying to create must guarantee to return one last created ticket. How can I make it to find and return the last created ticket?
project = "<project_name>" AND reporter = <reporter_id> AND created >= -1d ORDER BY created DESC
Some background info why I need to get the latest ticket. This is needed to build a test result summary chart in jira dashboard. We use jira-xray tool to report testrun results, jira-xray creates test executions a kind of jira ticket basically and there are dashboard/chart templates to build test result summary I just need to pass a filter which matches one – last created test_execution_id and it will do the job for me.