Indicate the time spent on an answer #35
Labels
topic: contracts
All the stuff related to the contracts
topic: ticketing
All the stuff related to the tickets
type: new
Global features that aren't there yet
Milestone
Estimation: 3d
User story
As technical,
I want to indicate how much time I spent on an answer,
so it allows an appropriate billing and/or to provide an analysis of the support activity (e.g. the most time-consuming types of requests)
Overview
An new button is added to the answer form in order to enter spent time.
When clicking on the button, it's replaced by an input (number type).
This number is sent with the rest of the form and create a
TimeSpent
.The
TimeSpent
is associated to the current contract if it's ongoing.The individual spent time appears in the ticket timeline.
The total charged time must appear in the contracts list and in the contract block of the ticket.
When the charged time is above the contract max hours, the contract is considered as finished.
Rule idea
Configure the contract to charge by step (e.g. 30 minutes) to allow the tech to indicate the real spent time and let the app to calculate the charged time e.g. 12 minutes must be charged 30 minutes.
Technical
Organization of the answer form
The form to answer must be reorganized so it doesn't look cluttered.
The work has already begun (see #437), but there are still things to do:
Entity
A new entity
TimeSpent
must be created:ticket
(Ticket)time
(int)real_time
(int)contract
(?Contract)Permissions
Two new permissions must be added
orga:create:tickets:time_spent
orga:see:tickets:time_spent
Changing the ticket contract
When the contract of the ticket is changed, a checkbox must be added to ask the user if the time already spent must be reassigned to this contract.
The text was updated successfully, but these errors were encountered: