Open lanitochka17 opened 2 days ago
Triggered auto assignment to @OfstadC (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Edited by proposal-police: This proposal was edited at 2024-10-17 18:38:25 UTC.
Compose Box - After create a group task user is not redirected to task conversation
Here we navigate to parent report screen after created the task.
Use optimisticTaskReport.reportID
instead of parentReportID
in Navigation.dismissModal
Navigation.dismissModal(optimisticTaskReport.reportID);
After create a group task user is not redirected to task conversation
When we create task, we only dismiss the modal and there is no other navigation logic.
In CreateTaskAndNavigate, Check if task has no assignee and is in group report then navigate user to the taskReport else do the current logic (dismiss modal). The condition for group report and no assignee is assumption based on steps in issue and can be changed if the requirement is different.
We need to update below portion in CreateTaskAndNavigate: https://github.com/Expensify/App/blob/f95b99baddd8ac8a99499d5cad73029231cbcac8/src/libs/actions/Task.ts#L315-L318
Change it to below logic:
if (!isCreatedUsingMarkdown) {
clearOutTaskInfo();
const reportId = !assigneeAccountID && ReportUtils.isGroupChat(parentReport) ? taskReportID : parentReportID;
Navigation.dismissModal(reportId);
}
After create a group task user is not redirected to task conversation
This issue happened because of this ticket, which states that after creating an IOU or task, the user should be redirected to the DM
When creating a task, we have shareDestination
and assignee
. If the assignee
exists, we need to redirect the user to the share destination; otherwise, redirect to the task report
//.src/libs/actions/Task.ts#L304
- Navigation.dismissModal(parentReportID);
+ Navigation.dismissModal(assigneeAccountID ? parentReportID : optimisticTaskReport.reportID);
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.50 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5083366&group_by=cases:section_id&group_order=asc&group_id=291936 Email or phone of affected tester (no customers): aatweq+22222223@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
After the user creates a task he/she should be redirected to the task conversation
Actual Result:
After the user creates a task he/she is redirected to the group conversation
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/346b1e17-dc0c-4331-b9ff-917ac3e42141
View all open jobs on GitHub