Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate the time spent on an answer #35

Closed
marien-probesys opened this issue Sep 28, 2022 · 0 comments
Closed

Indicate the time spent on an answer #35

marien-probesys opened this issue Sep 28, 2022 · 0 comments
Assignees
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

Comments

@marien-probesys
Copy link
Member

marien-probesys commented Sep 28, 2022

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:

  • remove the "solution" checkbox (passing the status to "resolved" marks the answer as the solution)
  • change the status select box by a menu on the right of the "Answer" button (to answer and change the status)

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.

@marien-probesys marien-probesys added this to the Version 0.1-dev milestone Sep 28, 2022
@marien-probesys marien-probesys changed the title Indicate spent time on an answer or task Indicate spent time on an answer Sep 13, 2023
@marien-probesys marien-probesys added the topic: contracts All the stuff related to the contracts label Sep 13, 2023
@marien-probesys marien-probesys self-assigned this Sep 28, 2023
@marien-probesys marien-probesys changed the title Indicate spent time on an answer Indicate the time spent on an answer Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant