Skip to content

Conversation

@DanRibbens
Copy link
Contributor

What?

In a project that has jobs configured and the import/export plugin will error on start:

payload-jobs validation failed: taskSlug: createCollectionExport is not a valid enum value for path taskSlug.

Why?

The plugin was not properly extending the jobs configuration.

How?

Properly extend existing config.jobs to add the createCollectionExport task.

Fixes #

r1tsuu
r1tsuu previously approved these changes Jun 9, 2025
Copy link
Member

@r1tsuu r1tsuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@r1tsuu
Copy link
Member

r1tsuu commented Jun 9, 2025

oops, looks like build has failed

r1tsuu
r1tsuu previously approved these changes Jun 9, 2025
@DanRibbens DanRibbens merged commit ff615d3 into main Jun 9, 2025
75 checks passed
@DanRibbens DanRibbens deleted the fix/plugin-import-export-jobs branch June 9, 2025 18:40
@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2025

🚀 This is included in version v3.42.0

elliott-w pushed a commit to elliott-w/payload that referenced this pull request Jun 12, 2025
…dcms#12730) ### What? In a project that has `jobs` configured and the import/export plugin will error on start: `payload-jobs validation failed: taskSlug: createCollectionExport is not a valid enum value for path taskSlug.` ### Why? The plugin was not properly extending the jobs configuration. ### How? Properly extend existing config.jobs to add the `createCollectionExport` task. Fixes #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment