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

Rules import fails when a field picklist has a new value #55

Open
mpburtt opened this issue Jan 7, 2021 · 0 comments
Open

Rules import fails when a field picklist has a new value #55

mpburtt opened this issue Jan 7, 2021 · 0 comments

Comments

@mpburtt
Copy link

mpburtt commented Jan 7, 2021

I'm importing a process to a target organisation that already has an old version of my process. This normally works fine (so long as the process name is different) but, in this case, my source organisation Process has had a new value added to one of the picklist fields on the User Story work item type and rules have been defined for the User Story that apply when that new picklist value is used. When process-migrator imports the updated process it fails when importing the rule saying that the new picklist value is not one of the valid values and then lists the valid values, which do not include the new one that has been added....

[VERBOSE] [2021-01-07T16:25:17.471Z] Begin step 'Create rule '139afccb-54e6-4d27-9d07-4a5f216af1cf' in work item type 'PowerObjectsAgile0.7.UserStory''.
[VERBOSE] [2021-01-07T16:25:17.746Z] Exception message:VS403221: The value 'Fit with technical configuration' is not an allowed value for field 'HCL_FitGap'. Valid values are Fit, Gap, Partial, TBC.
Call stack:Error: VS403221: The value 'Fit with technical configuration' is not an allowed value for field 'HCL_FitGap'. Valid values are Fit, Gap, Partial, TBC.
at RestClient. (C:\Users\einar.larusson\AppData\Roaming\npm\node_modules\process-migrator\node_modules\typed-rest-client\RestClient.js:173:31)
at Generator.next ()
at fulfilled (C:\Users\einar.larusson\AppData\Roaming\npm\node_modules\process-migrator\node_modules\typed-rest-client\RestClient.js:6:58)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[ERROR] [2021-01-07T16:25:17.747Z] Import failed, see log file for details. Unable to create rule '139afccb-54e6-4d27-9d07-4a5f216af1cf' in work item type 'PowerObjectsAgile0.7.UserStory', see logs for details.

I can see that early in the process-migrator log the picklist field gets created successfully...

[VERBOSE] [2021-01-07T16:21:20.741Z] Begin step 'Create picklist for field Custom.HCL.PowerObjectsAgile.FitGap'.
[VERBOSE] [2021-01-07T16:21:21.387Z] Finished step 'Create picklist for field Custom.HCL.PowerObjectsAgile.FitGap'.

So why can't the rule be created successfully? It seems like the rule creation isn't aware that the list of values on the field has changed.

If I manually add the new picklist value to the field in the target organisation for the old version of the process and then re-run the import to bring in the new version, the updated process loads just fine.

Note that I've tried resolving the problem by setting the "overwritePicklist" option to true but that made no difference.

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

1 participant