Allow any group member to complete unassigned tasks#85831
Allow any group member to complete unassigned tasks#85831
Conversation
When a task has no assignee, the canActionTask function now allows any participant of the parent report to complete or reopen the task, instead of restricting it to only the task owner. Co-authored-by: Daniel Gale-Rosen <dangrous@users.noreply.github.com>
|
The failing check Analysis: The error is Evidence: The same Re-running the failed job should resolve it. |
|
The failing checks are unrelated to this PR's changes. Failing checks:
Why these are unrelated:
All code-quality checks pass: ESLint, typecheck, all 8 test jobs, prettier, spellcheck, storybook, and perf-tests. |
|
@MelvinBot Mark this PR Ready for review |
|
This PR has been marked as Ready for Review as requested by |
|
@ikevin127 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-03-19.at.16.02.58.mov |
|
@MelvinBot Please sync this PR with latest main, hopefully that will fix the failing workflow checks 🤞 |
|
I can only make code changes (including merging main) when directed by the PR author, an assignee, or an existing co-author. Currently To have me sync this branch with main, either:
|
trjExpensify
left a comment
There was a problem hiding this comment.
Have you tested these changes with the Concierge onboarding tasks? To make sure we haven't just opened up letting users edit those.
|
@trjExpensify Good point. I checked, and Concierge tasks are individual to every member as in their own Concierge chat that only they can complete the tasks. What I did test was:
User B is allowed to complete Workspace A Let me know if there's another case that I might have missed, or how to reproduce the Concierge case you referred to. |
If the person signing up gets assigned a guide, then the onboarding tasks go in the #admins chat. I was curious about that case to ensure they work as they do today: can be completed/marked as incomplete, can't be edited or deleted. |
@trjExpensify Just verified the case you mentioned (see video below), and the WS Owner himself cannot edit / delete the onboarding Screen.Recording.2026-03-19.at.17.56.24.mov |
|
Great, thanks for confirming! |
|
@MelvinBot please merge main |
…dTaskCompletionByGroupMembers Co-authored-by: Daniel Gale-Rosen <dangrous@users.noreply.github.com>
|
@ikevin127 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Done! I've merged |
|
The failing check is unrelated to this PR. Failing check: Analysis: This is a build infrastructure/dependency issue with Expo's autolinking Gradle script missing from Evidence: The error originates in |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
The failing checks are unrelated to this PR's changes and cannot be fixed with a code change. PR changes: Only two TypeScript files — Failing checks:
Evidence: All code-level checks (ESLint, TypeScript, Prettier, all 8 test jobs, spellcheck) pass. The failures are in native mobile builds which are unaffected by TypeScript-only changes. Recommendation: Re-run the failed workflows. These are transient CI/infrastructure issues. |
|
The failing checks are unrelated to this PR's changes. Failing checks:
Why unrelated: This PR only modifies |
|
This should hopefully be fine, it looks like these builds are broken everywhere? We can remerge main and merge next week I guess, or later today if it clears up. |
Explanation of Change
When a task is created in a group chat without an assignee, the
canActionTaskfunction only allowed the task owner to complete/reopen it, because the assignee check compared againstmanagerID = 0which never matches any real user. This change adds a fallback: when a task has no assignee, any participant of the parent report (the group chat) can now action the task.Fixed Issues
$ #85220
PROPOSAL: #85220 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari