Comments (6)
Hello! Do you mean to show somewhere how much time has passed since the creation?
from planka.
Hi! No, in this case I meant that the application can show the sum of all/the total hours/minutes/seconds spent in all tasks (where the timer has been used) for each project at least and ideally for each board. That would be pretty useful for me as a means of measuring/visualizing total effort or time investment. I wonder how possible or difficult it is to implement here.
from planka.
This. We can click timers to start tracking time on a task, but there seems to be no way to see a total tally of all time spent on all tasks total in a project. This means I would have to manually add up the hours each time to know how many hours are left, if for example a client has paid for X number of hours.
from planka.
I'm looking for this feature too, it could be very useful !
I have wrote a workaround, client side (in the browser JavaScript console).
Just paste this little script and hit Enter
when you are on your cards-board view.
// Select all span elements with class starting with "Stopwatch_wrapper*"
var allTimers = document.querySelectorAll('span[class^="Stopwatch_wrapper"]');
// Initialize a sum variable
var sumInSeconds = 0;
// Iterate through each timers and sum up their text content
allTimers.forEach(function(timer) {
// Extract the text content
var timeString = timer.textContent;
// Parse the time string into hours, minutes, and seconds
var timeParts = timeString.split(":");
if (timeParts.length === 3) {
var hours = parseInt(timeParts[0]);
var minutes = parseInt(timeParts[1]);
var seconds = parseInt(timeParts[2]);
// Convert hours and minutes into seconds
var totalTimeInSeconds = hours * 3600 + minutes * 60 + seconds;
// Add to the sum
sumInSeconds += totalTimeInSeconds;
}
});
// Convert the total seconds back to the hh:mm:ss format
var hours = Math.floor(sumInSeconds / 3600);
var minutes = Math.floor((sumInSeconds % 3600) / 60);
var seconds = sumInSeconds % 60;
// Output your sum
console.log("Total sum = " + hours + ":" + minutes + ":" + seconds);
The output is like : Total sum = 2:47:30
from planka.
I'm looking for this feature too, it could be very useful ! I have wrote a workaround, client side (in the browser JavaScript console). Just paste this little script and hit
Enter
when you are on your cards-board view.// Select all span elements with class starting with "Stopwatch_wrapper*" var allTimers = document.querySelectorAll('span[class^="Stopwatch_wrapper"]'); // Initialize a sum variable var sumInSeconds = 0; // Iterate through each timers and sum up their text content allTimers.forEach(function(timer) { // Extract the text content var timeString = timer.textContent; // Parse the time string into hours, minutes, and seconds var timeParts = timeString.split(":"); if (timeParts.length === 3) { var hours = parseInt(timeParts[0]); var minutes = parseInt(timeParts[1]); var seconds = parseInt(timeParts[2]); // Convert hours and minutes into seconds var totalTimeInSeconds = hours * 3600 + minutes * 60 + seconds; // Add to the sum sumInSeconds += totalTimeInSeconds; } }); // Convert the total seconds back to the hh:mm:ss format var hours = Math.floor(sumInSeconds / 3600); var minutes = Math.floor((sumInSeconds % 3600) / 60); var seconds = sumInSeconds % 60; // Output your sum console.log("Total sum = " + hours + ":" + minutes + ":" + seconds);The output is like :
Total sum = 2:47:30
Thanks, but I think this wouldnt show an entire project's hours, and instead show all the hours inside one board, correct?
from planka.
Thanks, but I think this wouldnt show an entire project's hours, and instead show all the hours inside one board, correct?
Correct, it's the sum of all cards in the viewed tab, if you want a global sum for a project, just switch to the next tab, run the script, etc... and sum all results at end. Not perfect but better than nothing.
from planka.
Related Issues (20)
- Is it possible to make all the users see all the projects ? HOT 2
- URL Parameters for Filtering HOT 1
- [Bug]: For one specific trello JSON file, titles and descriptions are imported without comments HOT 6
- Allow an existing secret to be used for secretkey and admin credentials in Helm values.yaml
- [Bug]: White screen when updating planka HOT 2
- Should we re-introduce a local event type for the webhooks? HOT 2
- Allow users to only see cards assigned to them
- [Bug]: docker container crashes on upstart after version 1.18.0 HOT 2
- default login first connection on a DOCKER installation via Unraid APPS ? (please read this because my request is not just a request for help, but much more important) HOT 11
- Implement “startDate” field for card object HOT 2
- [Bug]: labels remain when a card is moved to another board HOT 3
- [Bug]: Project owner deleted, can't regain access HOT 2
- Use current filter to feed a new card HOT 1
- WebHook cardUpdate Before/After
- searching function HOT 1
- Azure AD integration HOT 1
- [Bug]: No connection to server HOT 6
- OIDC integration - Azure AD - MS365 User without license HOT 5
- BASE_URL DOCKER COMPOSE ENVIRONMENT VARIABLE HOT 1
- [Bug]: Planka automatic installer does not have docker-compose.yml values updated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from planka.