Project

General

Profile

Actions

roos-fs tasks #488

open

Impliment the new logic for the Statuses on mobile

Added by Vadim Pariev 7 months ago. Updated 5 days ago.

Status:
Closed
Priority:
Normal
Start date:
09/29/2025
Due date:
% Done:

0%

Estimated time:

Description

Underneath you would find the flow that is to be implimented on the backend side. THe same have to be applicabe on the Mobile end.
ATTENTION
Make sure that the old services created before the new feature release are still working.

SERVICES and TASKS FLOW desciption

the service when created receives the status CREATED
the tasks in this service receive the state CREATED
the service is then manually transferred to the stated BOOKED (the user is OBLIGED to set the date - it is mandatory. P.S. reuse the same form that was used for the task when set to the boked state)

the tasks are AUTOMATICALLY change the status to OPEN
from the OPEN state the user can set the planned date (OPTIONALLY)
from the OPEN state with or without a date the user can set the task in status IN PROGRESS
from IN PROGRESS the tasks can be set to COMPLETED
the service could be set to COMPLETED only if all Tasks are in CANCELLED or COMPLETED state (there could be 1 in cancelled and 1 in completed so simply all tasks in one of the states)
The task could be cancelled from any status starting from the OPEN
Service can be cancelled at any time and the tasks would be outo cancelled
FURTHER REQUIREMENTS
Adjust the API for mobile and remove unnessesary endpoints. The main point is that the API for the mobile is mirrowing the Behaviour in web.
Expected behaviour

cancellation logic remain intact
completion triggers the report creation
activity log remains the same
data validations from the tasks is removed
all views of the tasks adn services remain the same
old statuses are removed if not used
All validations inside of the taks remains


Files

.trashed-1763883376-Screenshot_2025-10-24-10-06-00-16_334366aa60c95a830342eca788ba1737.jpg (237 KB) .trashed-1763883376-Screenshot_2025-10-24-10-06-00-16_334366aa60c95a830342eca788ba1737.jpg picture 2. Olena Tretjakova, 10/24/2025 08:39 AM
.trashed-1763883376-Screenshot_2025-10-24-09-56-41-43_334366aa60c95a830342eca788ba1737.jpg (277 KB) .trashed-1763883376-Screenshot_2025-10-24-09-56-41-43_334366aa60c95a830342eca788ba1737.jpg picture 1. Olena Tretjakova, 10/24/2025 08:39 AM
.trashed-1763883376-Screenshot_2025-10-24-10-14-30-63_334366aa60c95a830342eca788ba1737.jpg (231 KB) .trashed-1763883376-Screenshot_2025-10-24-10-14-30-63_334366aa60c95a830342eca788ba1737.jpg picture 3. Olena Tretjakova, 10/24/2025 08:39 AM
Screenshot_2025-10-24-10-46-09-07_334366aa60c95a830342eca788ba1737.jpg (225 KB) Screenshot_2025-10-24-10-46-09-07_334366aa60c95a830342eca788ba1737.jpg picture 4. Olena Tretjakova, 10/24/2025 08:39 AM
Screenshot_2025-10-24-10-51-59-58_334366aa60c95a830342eca788ba1737.jpg (257 KB) Screenshot_2025-10-24-10-51-59-58_334366aa60c95a830342eca788ba1737.jpg picture 5. Olena Tretjakova, 10/24/2025 08:39 AM
Screenshot_2025-10-24-10-54-19-03_334366aa60c95a830342eca788ba1737.jpg (272 KB) Screenshot_2025-10-24-10-54-19-03_334366aa60c95a830342eca788ba1737.jpg picture 6. Olena Tretjakova, 10/24/2025 08:39 AM
Screenshot_2025-10-24-11-07-41-33_334366aa60c95a830342eca788ba1737.jpg (264 KB) Screenshot_2025-10-24-11-07-41-33_334366aa60c95a830342eca788ba1737.jpg picture 7. Olena Tretjakova, 10/24/2025 08:39 AM
Screenshot_2025-10-24-11-23-26-59_334366aa60c95a830342eca788ba1737.jpg (275 KB) Screenshot_2025-10-24-11-23-26-59_334366aa60c95a830342eca788ba1737.jpg picture 9. Olena Tretjakova, 10/24/2025 09:25 AM
Screenshot_2025-10-24-11-15-40-23_334366aa60c95a830342eca788ba1737.jpg (255 KB) Screenshot_2025-10-24-11-15-40-23_334366aa60c95a830342eca788ba1737.jpg picture 8. Olena Tretjakova, 10/24/2025 09:25 AM
Screenshot_2025-10-24-11-24-53-06_334366aa60c95a830342eca788ba1737.jpg (190 KB) Screenshot_2025-10-24-11-24-53-06_334366aa60c95a830342eca788ba1737.jpg picture 10. Olena Tretjakova, 10/24/2025 09:25 AM
app-debug_488(2).apk (35.3 MB) app-debug_488(2).apk Victoria Grishkova, 10/25/2025 03:50 PM
app-release_488(2).aab (20.3 MB) app-release_488(2).aab Victoria Grishkova, 10/25/2025 03:51 PM
Actions #1

Updated by Vadim Pariev 7 months ago

  • Description updated (diff)
Actions #2

Updated by Vadim Pariev 7 months ago

  • Status changed from Backlog to Open
Actions #3

Updated by Victoria Grishkova 7 months ago

  • Status changed from Open to In progress
Actions #4

Updated by Victoria Grishkova 7 months ago

  • Status changed from In progress to In review
Actions #5

Updated by Vadim Pariev 7 months ago

  • Status changed from In review to Deployed (QA)

Updated by Olena Tretjakova 6 months ago · Edited

Environment: Staging.

Actual Result:

  1. All Statuses changed according expected result.
  2. When 'Canceled' is selected for a task, the 'Cancellation Reason' window appears. After selecting a reason, the 'Confirm the Cancellation' button should be enabled (except in the case when 'Other' is selected as the reason). However, in reality, the 'Confirm the Cancellation' button becomes enabled only after a comment is entered in the 'Comment' field.

Expected Result:

  1. The service status can be changed from 'Created' to 'Booked' (setting a date in the 'Set Date' field is required).
  2. The task automatically receives the 'Open' status when the corresponding service gets the 'Created' status.
  3. The task status can be changed from 'Open' to 'Set Planned Date' (setting a date in the 'Set Date' field is required).
  4. The task status can be changed from 'Open' to 'In Progress'.
  5. The task status can be changed from 'Set Planned Date' to 'In Progress'.
  6. The task status can be changed from 'In Progress' to 'Completed' (if the checklist related to this task is completed).
  7. The task status can be changed from 'Open' to 'Canceled'.
  8. The task status can be changed from 'Set Planned Date' to 'Canceled'.
  9. The task status can be changed from 'In Progress' to 'Canceled'.
    10.The service status can be changed from 'Booked' to 'Completed' (if all related tasks have the status 'Completed' or 'Canceled').
  10. The service status can be changed from 'Created' to 'Canceled'.
  11. The service status can be changed from 'Booked' to 'Canceled'.

Preconditions:

  1. Create the 'Task Statuses in mobile' Task Template with one of the boolean field in checkbox. https://screenrec.com/share/PFAhnmxcp4

Steps to Reproduce:

Task statuses: Created → Opened → Set Planned Date → In Progress → Completed
Service statuses: Created → Set Planned Date → Completed

  1. Create the service (Service ID: 24532, Vehicle VIN: OLENA121212121212, Task ID: ). Status – Created.
    https://screenrec.com/share/h1ZerBSVIQ
    https://screenrec.com/share/LrZaC8Vg0M
    Task ID: 42771, Status – Created.
    https://screenrec.com/share/SU90gLdkRM
  2. Open the mobile build. Find the vehicle with VIN: OLENA121212121212. Open the task 'All Statuses (Mobile)', Status: 'Created'.
    picture 1.
  3. Click on 'Book Service'. Select the booking date 10/24/2025 and time 8:50. Click the 'Submit' button.
    picture 2.
    https://screenrec.com/share/JNwYmd0ZT3
  4. The 'CheckALLStatuses' task now has the status 'Opened'.
    picture 3.
  5. Click on the task.
  6. Click on 'Set Planned Date'. The 'Set Planned Date' page opens.
    picture 4.
  7. Select the date 10/24/2025 and time 18:00. Click the 'Submit' button.
    picture 5.
  8. The option 'Set Planned Date' disappears, the status does not change to 'Set Planned Date', but in the API request Task Detail, the information about the planned date appears.
    https://screenrec.com/share/0hvabU7V91
  9. Click on 'In Progress'. The 'In Progress' modal window opens. Click 'Yes'. The task status changes to 'In Progress'.
    picture 6.
    https://screenrec.com/share/8KRPsd2SuZ
  10. Click on the task checklist. Enter text: complete. Click the 'Submit' button. The message 'Checklist update successful' appears.
    picture 7.
  11. Send the Get Task Details request. The checklist is marked as completed.
    thttps://screenrec.com/share/r5pDbqRtHN
  12. Click on the 'Completed' item on the 'CheckALLStatuses' task detail page.
  13. The 'Complete' modal window appears.
    picture 8.
  14. Click 'Yes'. The message 'Task completed successfully' appears, and the task status changes to 'Completed'.
  15. Send the Get Task Details request.
    https://screenrec.com/share/aWcMYzR72Z
  16. Click the 'Back' button on the task detail page.
    picture 9.
  17. Click on the 'Complete Service' item.
  18. The 'Complete Service' modal window appears. Click 'Yes'.
  19. The message 'Service completed successfully' appears. The service is marked as 'Completed'.
    picture 10.

Task statuses: Created → Opened → In Progress → Completed
Service statuses: Created → Set Planned Date → Completed

  1. Create the Service (ID Service: 24533, VIN Vehicle: VIN: OLENA121212121212, Task ID: ). Status - Created.
    https://screenrec.com/share/s7SJEDlrmi
  2. Send request Get Service Detail. Response: Service status is 'Created.
    https://screenrec.com/share/IUtqlc15Hy
    Task ID: 42772, Status Created.
    https://screenrec.com/share/TyiK3fQ9Ct
  3. Open mobile bild. Vehicle with VIN: OLENA121212121212. Open task ' All Statuses (Mobile) 1 Status: 'Created'.
  4. Click on 'Book Service'. Select Booking Date 10/24/2025 and time 14:30. Click 'Submit' button.
  5. Send request Get Service Detail. Response: Service status is 'Booked'
    https://screenrec.com/share/Wvrn9Rghtk
  6. The 'CheckALLStatuses' task has status 'Opened'.
  7. Click on the task.
  8. Click on the 'In Progress'. The 'In Progress' modal window opens. Click on the 'Yes'. Status task change to 'In Progress'.
  9. Send request Get Service Detail. Response: Service status is '
    https://screenrec.com/share/ay6r1Km7XD
  10. Click on the task Check List. Complete the checklist . Click on the 'Submit' button. The 'Checklist update successefull' appears.
  11. Send reques Get Task Details. The checklist is marked as a completed. https://screenrec.com/share/f8q7rlKZHO
  12. Click on the 'Completed' item on the'checkAllStatuses' task Detail page.
  13. The 'Complete' modal windows appears.
  14. Click on the 'Yes'.The 'Task completed successefull' appears and status task changes to 'Completed'.
  15. Send reques Get Task Details. https://screenrec.com/share/qZFBvfbToI
  16. Click the 'Back' button on the Task Detail page.
  17. Click on the 'Complete Servise' item.
  18. The 'Complete Service' modal window appears. Click on the 'Yes'.
  19. The 'Service Completed successefully appears. The service is marked as a 'Completed'.
  20. Send Request Get Service Detail. (Service ID 24533). Response: https://screenrec.com/share/RFOdbl9hA5
  21. The Service has a status 'Completed'.

Task statuses: Created → Opened → In Progress → Completed
Service statuses: Created → Set Planned Date → Completed

  1. Create the service (Service ID: 24534, Vehicle VIN: OLENA121212121212, Task ID: ). Status – Created.
    https://screenrec.com/share/fYmxUgJEPs

  2. Send the Get Service Detail request. Response: Service status is 'Created'.
    https://screenrec.com/share/N7QG1lPgVc
    Task ID: 42773, Status – Created.
    https://screenrec.com/share/OhE4VGUZ7X

  3. Open the mobile build. Find the vehicle with VIN: OLENA121212121212. Open the task 'All Statuses (Mobile) 2', Status: 'Created'.

  4. Click on 'Book Service'. Select the booking date 10/24/2025 and time 14:30. Click the 'Submit' button.

  5. Send the Get Service Detail request. Response: Service status is 'Booked'.
    https://screenrec.com/share/8LMlKqVha2

  6. The 'CheckALLStatuses' task now has the status 'Opened'.

  7. Click on the task.

  8. Click on 'Set Planned Date'. Select date and time.

  9. Click on 'Cancel'. The 'Cancel Reason' page opens.

  10. Select one of the reasons. Click 'Confirm the Cancellation'.

  11. The 'Confirm the Cancellation' button is disabled. Add a comment in the 'Comment' field. Click 'Confirm the Cancellation' again.

  12. The task status changes to 'Canceled'.

  13. Send the Get Task Details request. Response:
    https://screenrec.com/share/cPiGNEQWqO

  14. Click the 'Back' button on the task detail page.

  15. Click on the 'Complete Service' item.

  16. The 'Complete Service' modal window appears. Click 'Yes'.

  17. The message 'Service completed successfully' appears. The service is marked as 'Completed'.

  18. Send the Get Service Details request. Response:
    https://screenrec.com/share/yuKZ8z5ItD

  19. The Service is marked as 'Completed'.

    Task statuses: Opened → In Progress → Canceled
    Service statuses: Created → Booked → Canceled

  20. Create the service (Service ID: 24538, Vehicle VIN: OLENA121212121212, Task ID: ). Status – Created.

  21. Send the Get Service Detail request. Response: Service status is 'Created'.
    https://screenrec.com/share/KhivSBf4Q8
    Task ID: 42773, Status – Created.
    https://screenrec.com/share/bnOyL48roR

  22. Open the mobile build. Find the vehicle with VIN: OLENA121212121212. Open the task 'All Statuses (Mobile) 3', Status: 'Created'.

  23. Click on 'Book Service'. Select the booking date 10/24/2025 and time 14:30. Click the 'Submit' button.

  24. Send the Get Service Detail request. Response: Service status is 'Booked'.
    https://screenrec.com/share/hKaRLDtTdj

  25. The 'CheckALLStatuses' task now has the status 'Opened'.

  26. Click on the task.

  27. Click on 'In Progress'. The 'In Progress' modal window appears. Click 'Yes'.

  28. Send the Get Task Details request. Response:
    https://screenrec.com/share/V45I6sJu9n

  29. Click on 'Canceled'. The 'Cancel Reason' page opens.

  30. Select one of the reasons. Click 'Confirm the Cancellation'.

  31. The 'Confirm the Cancellation' button is disabled. Add a comment in the 'Comment' field. Click on the 'Attachment' field. Select 'From Photos'. Choose a photo from the computer. Click 'Confirm the Cancellation'.

  32. The task status changes to 'Canceled'.

  33. Send the Get Task Details request. Response:
    https://screenrec.com/share/T4KD6ZxPp0

  34. Click the 'Back' button on the task detail page.

  35. Click on the 'Canceled Service' item.

  36. The 'Cancel Reason' page opens.

  37. Select one of the reasons. Click 'Confirm the Cancellation'.

  38. The 'Confirm the Cancellation' button is disabled. Add a comment in the 'Comment' field. Click the 'Confirm the Cancellation' button. The service becomes 'Canceled'.

  39. Send the Get Service Details request. Response:
    https://screenrec.com/share/pFRo4IB7mP

    Complete the service when one task is completed and the other is canceled.

  40. Create the service (Service ID: 24541, Vehicle VIN: OLENA121212121212, Task ID: ). Status – Created.
    https://screenrec.com/share/LJryTOEVYB
    Task IDs: 42780, 42781, Status – Created.
    https://screenrec.com/share/jGE2pfgzsb

  41. Open the mobile build. Find the vehicle with VIN: OLENA121212121212. Open the task 'All Statuses (Mobile) 5', Status: 'Created'.

  42. Click on 'Book Service'. Select the booking date 10/24/2025 and time 16:50. Click the 'Submit' button.

  43. The service is marked as 'Booked' on the 'Service Detail' page.

  44. Send the Get Service Details request. Response:
    https://screenrec.com/share/xf0MJEuWG9
    Task IDs: 42780, 42781, Status – Opened.

  45. Send the Get Task Details request. Response:
    https://screenrec.com/share/Y6vFecN2XJ
    https://screenrec.com/share/GWMxQ21rJa

  46. Click on the first task.

  47. Click on 'Set Planned Date'. The 'Set Planned Date' page opens.

  48. Select the date 10/24/2025 and time 18:00. Click the 'Submit' button.

  49. The option 'Set Planned Date' disappears, and the status does not change to 'Set Planned Date', but in the API request Task Detail, the information about the planned date appears.
    https://screenrec.com/share/AJUL9H2qt5

  50. Click on 'In Progress'. The 'In Progress' modal window opens. Click 'Yes'. The task status changes to 'In Progress'.

  51. Send the Get Service Details request. Response:
    https://screenrec.com/share/cm65Pu9s3G

  52. Click on the task checklist. Complete the checklist. Click the 'Submit' button. The message 'Checklist update successful' appears.

  53. Click on the 'Completed' item on the task detail page.

  54. The 'Complete' modal window appears.

  55. Click 'Yes'. The message 'Task completed successfully' appears, and the task status changes to 'Completed'.

  56. Send the Get Task Details request.
    https://screenrec.com/share/tn2VG0pASa

  57. Click the 'Back' button on the task detail page.

  58. Click on the second task.

  59. Click on 'In Progress'. The 'In Progress' modal window appears. Click 'Yes'.

  60. Send the Get Task Details request. Response:
    https://screenrec.com/share/xWwNieAD0K

  61. Click on 'Cancel'. The 'Cancel Reason' page opens.

  62. Select one of the reasons. Click 'Confirm the Cancellation'.

  63. The 'Confirm the Cancellation' button is disabled. Add a comment in the 'Comment' field. Click 'Confirm the Cancellation' again.

  64. The task status changes to 'Canceled'.

  65. Send the Get Task Details request. Response:
    https://screenrec.com/share/JdRpY1mwN7

  66. Click the 'Back' button on the task detail page.

  67. Click on the 'Completed Service' item.

  68. The 'Complete' modal window appears. Click 'Yes'.

  69. Send the Get Service Details request. Response:
    https://screenrec.com/share/HT4agksw83

  70. The Service is marked as 'Completed'

Actions #7

Updated by Olena Tretjakova 6 months ago

  • Status changed from Deployed (QA) to QA Failed

Updated by Victoria Grishkova 6 months ago

test results were integrated. new builds (v.2) are attached.

Actions #9

Updated by Victoria Grishkova 6 months ago

  • Status changed from QA Failed to Deployed (QA)
Actions #10

Updated by Olena Tretjakova 6 months ago

  • Status changed from Deployed (QA) to Ready for Deployment (prod)

** Environment: Staging.**

  1. Create the service (Service ID: 24538, Vehicle VIN: OLENA121212121212, Task ID: ). Status – Created.

  2. Send the Get Service Detail request. Response: Service status is 'Created'.https://screenrec.com/share/KhivSBf4Q8

  3. Task ID: 42773, Status – Created.https://screenrec.com/share/bnOyL48roR

  4. Open the mobile build. Find the vehicle with VIN: OLENA121212121212. Open the task 'All Statuses (Mobile) 3', Status: 'Created'.

  5. Click on 'Cancel'. The 'Cancel Reason' page opens.

  6. Select one of the reasons. Click 'Confirm the Cancellation'.

  7. The task status changes to 'Canceled'.

Actual Result: The acceptance criteria are completely done.

Actions #11

Updated by Vadim Pariev 6 months ago

  • Status changed from Ready for Deployment (prod) to Closed
Actions #12

Updated by Albert Katasonov 5 days ago

  • Project changed from 8 to Roos-fs-ZIP
Actions

Also available in: Atom PDF