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

Incorrect approval counter (closed tickets awaiting approval). #14025

Closed
2 tasks done
kofe88 opened this issue Feb 8, 2023 · 6 comments
Closed
2 tasks done

Incorrect approval counter (closed tickets awaiting approval). #14025

kofe88 opened this issue Feb 8, 2023 · 6 comments

Comments

@kofe88
Copy link

kofe88 commented Feb 8, 2023

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.6

Bug description

Incorrect display of tickets awaiting approval.

/front/ticket.php

image

/front/central.php

image

Question 1:

Shouldn't the approval be canceled when the Ticket closed?

Question 2:

Should the link lead to the "Approvals" tab?

Link to the Ticket in the "Personal view" on the page

/front/central.php

Throws it to the "Approvals" tab in the Ticket

/front/ticket.form.php?id=3927&forcetab=TicketValidation$1

image

On which the Ticket cannot be Approved or Refused.

image

You have to go to the "Ticket" tab and perform actions to Approve or Refuse the Ticket there.

image

Wouldn't it be easier if the link immediately links to the "Ticket" tab? Or if this is wrong, then add the option to "Approve" and "Refuse" to the "Approvals" tab?

Thanks for attention.

Relevant log output

No response

Page URL

No response

Steps To reproduce

  1. Create a ticket.
  2. Request approval in the ticket.
  3. Solve and close the ticket without approval.
  4. An Ticket for approval will be seen on the counter.
  5. There will be no Tickets for approval in the personal form.
  6. The closed Tickets will remain in the status "waiting for approval".

Your GLPI setup information

GLPI 10.0.6

Anything else?

No response

@cedric-anne
Copy link
Member

Hi,

Question 1:

Shouldn't the approval be canceled when the Ticket closed?

If ticket is closed and approval is still open, it means that no answer were given to approval request. In this case, we cannot tell wether this request was accepted or refused, so, to handle this, we should probably create a new Canceled status that would be automatically set when ticket is closed. This is an important change, as it intoruces a new value that will probably not be handled correctly by plugins, so it cannot be done on 10.0 branch.

On 10.0 branch, a short term solution could be to filter values to exclude closed tickets.

Question 2:

Should the link lead to the "Approvals" tab?

As validation can now be directly made in the ticket timeline, then, indeed, it would be probably better to target the main tab.

@cedric-anne cedric-anne added this to the 10.1.0 milestone Feb 8, 2023
@kofe88
Copy link
Author

kofe88 commented Feb 8, 2023

@cedric-anne

Greetings! Thank you so much for your answer and your work!

@cedric-anne
Copy link
Member

@kofe88

Thank you for your work too. Your issues are well explained, so it make the job easier for us.

@MarcSamD
Copy link
Contributor

MarcSamD commented May 11, 2023

Hi there,

I have the same issue as @kofe88 which stop me from easily "monitoring" tickets that I could have forget to approve and I agree with @cedric-anne short term solution: filter values to exclude closed tickets.

  1. It should be easy to implement.
  2. It keeps the consistency between the result of the counter and the result of GLPI 10 new button
    Tickets waiting for your approval that is already filtering the solved and closed tickets (but that it is much less convenient than a counter as it forces us to click on the link to check, even if there is no results)

Subsidiary question: How the button Tickets waiting for your approval is displayed ? Currently I can only see it in Super-Admin profile but not when using normal Technician profile (despite that I can use this profile to actually approve).

@cedric-anne
Copy link
Member

Subsidiary question: How the button Tickets waiting for your approval is displayed ? Currently I can only see it in Super-Admin profile but not when using normal Technician profile (despite that I can use this profile to actually approve).

User must have the Validation > Validate a request right and/or the Validation > Validate an incident right.

@cedric-anne
Copy link
Member

Done in #16317 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants