I need to make a selection of epics that have tasks for which time has been logged.
Since the time logged in tasks is not counted towards the epic itself, I cannot use "timespent >0".
Are there any options on how to do this with JQL?
Also, can I choose a period of time, when the time was logged? For example, to show only those epics that have time logged between 1st and 31th of December?
Hi @Anastasia
I’m Charlotte, a support engineer at Appfire and I’m here to help you.
Unfortunately, using vanilla JQL, you’ll not be able to do it dynamically.
In the app where my team works, JQL Search Extensions for Jira, you can use this query to find Epics that have tasks for which time has been logged:
issue in epicsOfChildrenInQuery("type = task AND timespent > 0")
Please contact our support if you have any other questions about this query.
We’ll be happy to help you!
Hi @Anastasia
ActivityTimeline add-on could potentially help. It includes a Timesheet Reports feature that allows for grouping data by epic and filtering by specific time periods, like December 1st to 31st:
It might be worth exploring to see if it meets your needs. If you have any questions or would like to learn more, feel free to schedule a free demo.
Svitlana, ActivityTimeline team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anastasia
It's Mary from Planyway time tracker for Jira
To achieve your goal of selecting epics in Jira that have tasks with time logged, especially when the logged time isn't counted towards the epic itself, you'll have to leverage Jira Query Language (JQL) in a slightly indirect manner. Jira doesn't natively support directly querying epics based on the time logged in their child issues (like tasks and stories) using basic JQL due to its hierarchical issue structure. However, there are strategies you can employ to get the information you need.
For example, with ScriptRunner, you can write a query to find tasks with time logged and then get the parent epics of those tasks.
worklogDate >= "2023-12-01" AND worklogDate <= "2023-12-31"
If you consider time tracking third-party apps, I think it might ease your journey, For example, in Planyway time tracking reports you can view only issues with tracked time by issue type for the selected period. Time entries are synced with Tracked time field in Jira so there won't be aby difficulty to view data for the previous period.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anastasia ,
This is not possible out of the box, though you may be able to achieve such a JQL with 3rd party tools like ScriptRunner. One option would be to add a custom field in the epic, and then an automation to update the field whenever the timespent field in a child ticket is updated.
Then you can use a simple JQL query like
issuetype = Epic AND custom_timespent > 0
Hope that helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.