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

How to migrate completed assignments? #102

Open
Ayushyadav19 opened this issue Jan 27, 2023 · 1 comment
Open

How to migrate completed assignments? #102

Ayushyadav19 opened this issue Jan 27, 2023 · 1 comment

Comments

@Ayushyadav19
Copy link

Hi,
I was using migrate_assignments.py to migrate assignments from the classic project and the new project during the migration I encountered an error - "Assignments not migrated successfully. Unknown error".
When I checked the new project I found that only the Assigned and In Progress assignments got migrated. While going through the Migrate a Classic Workforce project blog i have found that we can optionally provide and attribute called where “status IN (0,1,2)”. Refer to the below screenshot for the same.

image.

I just wanted to what is the status code we need to provide for migrating the completed assignments or how we can migrate the completed assignments.?

Any help would be really appreciated.

Thanks
Ayush

@apulverizer
Copy link
Contributor

You can find the Workforce Classic Schema here:
https://doc.arcgis.com/en/workforce/android-phone/help/workforce-schema-classic.htm

Completed assignments are 3 and cancelled ones are 6 so just change your where clause to status IN (3, 6) if you want to migrate those. The default where clause, which does everything except completed and cancelled assignments can be found here:

default="status IN (0, 1, 2, 4, 5)")

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

No branches or pull requests

2 participants