Hi @Chasovskikh Kirill
It's Mary from Planyway
Yes, in Jira, it is possible to automate the creation of a daily report of time spent on all tasks for a user and send this report to Slack. This automation can be achieved by integrating Jira with Slack and using Jira's automation tools. Here's a general approach:
Jira and Slack Integration: First, ensure that Jira and Slack are integrated. This can be done through the Slack Marketplace where you can find apps that connect Jira with Slack.
Use Jira's Automation Feature:
Creating the Report:
Sending the Report to Slack:
Additional Tools/Scripts:
> The automation rule can be set to compile this data into a report format. This could involve summing up the total time spent, categorizing by task or project, etc.
Could you help, how to compile with automation worklog report for one user for one day from different tasks?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hope it'll help:
worklogAuthor = currentUser() AND worklogDate >= startOfDay() AND worklogDate < endOfDay()
. This query fetches all worklogs made by the current user during the current day.Use the "Lookup issues" action with your JQL query to fetch the relevant tasks.
Next, add an action to process these issues. You might need to use a "Branch rule / related issues" action to iterate over each issue returned by the JQL query.
For each issue, extract the worklog details. This could involve summing up the time spent on each issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the feedback!
To add values of worklog from all issues its possible to use
{{#lookupIssues}}
* {{key}} {{worklog.timeSpent}}
{{/}}
But, do you know how to obtain values only for today's worklogs? Condition
{{lookupIssues.worklog.started}} greater than startOfDay()
doesn't work.
Thank you in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please adjust the JQL for your Lookup Issues action to narrow to "today", as Maria suggested, or...
Try adding smart value, list filtering for the full lookup results: https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy and thank you for the reply!
I understand how to get issues, where a user spent time today.
worklogDate >= startOfDay() and worklogDate < startOfDay(1)
But the question is how to get from these issues worklogs only for current day?
As I can see in this article — there is no conditional logic for date-fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
While Jira's automation features are powerful, they have limitations in handling complex data processing tasks like filtering nested worklog entries by date. In such cases, a custom script using the Jira REST API provides more flexibility and control. However, there is a workaround using a combination of Jira automation and potentially a scripting solution.
Fetch Issues with Today's Worklogs:
worklogDate >= startOfDay() AND worklogDate < endOfDay()
. This should return issues that have worklogs added today.Iterate Over Issues and Extract Worklogs:
{{#lookupIssues}}
smart value to iterate over the issues returned by your JQL query.started
date of today.Worklog Smart Value Limitation:
{{issue.worklog}}
smart value will list all worklogs for an issue, but not necessarily allow for filtering by date.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.
Hello @Chasovskikh Kirill
Jira does not natively provide reporting capabilities to get the time logged per day per user.
To get such a report you would need to consider adding a third party app.
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.
There are a variety of plugins that provide a variety of functionality for reporting on time logged.
I don't know if any of them specifically include functionality for generating a report on a scheduling and sending it in any manner (slack, email, etc.). You would need to review the capabilities of the plugins to determine that.
Here is a search from the Atlassian Marketplace to help you get started.
https://marketplace.atlassian.com/search?hosting=cloud&product=jira&query=time%20report
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the answer!
Yes, I've tried to find any plugins for time tracking, but the main problem is to find a plugin, that could send reports with webhooks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.