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

Added close ticket functionality #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ittyjose
Copy link
Contributor

@ittyjose ittyjose commented Nov 1, 2023

Issue closes: #6

This PR contains

Authenticate the request and build the user context in the middleware.

Fetch the latest ticket_revision from the ticket_id
Validate the to_stage and assignee with the available process_path from current_stage
If validated successfully update the ticket table with closed status
Create a new entry in the ticket_activity table with current_stage as ticket_closed id from stage table
If validation fails, send proper error message

Please review : @uttahb

Please let me know for any changes or suggestions.

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

Successfully merging this pull request may close these issues.

Close ticket function block
1 participant