itflow-org / itflow

Free and open-source web application for MSPs. Unifies IT documentation, ticketing, invoicing.
https://itflow.org
GNU General Public License v3.0
544 stars 141 forks source link

Scheduled tickets (appointments) #867

Closed o-psi closed 7 months ago

o-psi commented 7 months ago

This pull request includes the following changes:

This is seen to be used with appointments in the future, hopefully linking to an external calendar. TODO: Send an ical email to add the event to outlook calendars, or sync calendars another way.

wrongecho commented 7 months ago

Test these changes at: https://scheduledtickets867.pr-review.itflow.org
(automatic message)

johnnyq commented 7 months ago

@o-psi We currently already have scheduled tickets (Im sure you already know that), is this different than that or set to replace or merge with it by integrating into one table called tickets?

o-psi commented 7 months ago

The current 'scheduled tickets' is better described as 'reoccurring tickets'.

Rather, this is for when a ticket exists, but the work for it is scheduled sometime in the future.

johnnyq commented 7 months ago

I see now, technically scheduled tickets is named improperly due to its function.

So heres a thought what about using scheculed tickets tables and views/edit/create but being able to select Just once under frequency, Im open to your opinions and suggestions on this one

o-psi commented 7 months ago

Originally, that is how i thought it would work best aswell, and maybe we can add a link there. But I think we need to rename scheduled tickets to recurring tickets, then it will no longer make sense to have this feature under a Once option. Things do not reoccur once...

Maybe I can spend some time in the docs explaining it.

johnnyq commented 7 months ago

hmmm im almost wondering about merging scheduled (aka recurring tickets into the tickets table and just make it one entity with flags indicating recurring, scheduled or regular ticket.

wrongecho commented 7 months ago

What's being proposed here and the existing scheduled/recurring tickets are entirely separate in my view. This is about scheduling a future time to work on a ticket.

I'd support renaming scheduled tickets to recurring, but perhaps this function should be part of the Pending/On Hold flow instead? Tickets would automatically be moved back to an open / working state once the scheduled time arrives. Ideal for planned site visits, new starters, OOH work, etc.

o-psi commented 7 months ago

Wrong Echo, perfectly stated.

I support adding a link on the pending to open this modal when set to pending aswell.

o-psi commented 7 months ago

Im gonna get to work on the proposed changes tomorrow.

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

o-psi commented 7 months ago

How do we want to include this into the pending or onhold flow?

johnnyq commented 7 months ago

Lets hold off on the pending and on-hold flow for right now and play around with what you got I reviewed the code Its ready to be reeled in except for the Database changes need to be updated as we recently added AI items to the DB. Along with new DB Dump db.sql for new installs