Calculated value script not triggering on csv import for work item creation
I have created a calculated value script that works as expected when any dependent attribute changes for a work item. However, this script is not being triggered when using a csv for importing a work item set for both creating a new work item or updating a work item attribute (which you think would trigger a save...). This is a big problem as our teams use csv imports quite often for both updating and creating new items. How can I get the script to trigger for csv imports so that it is not strictly limited to manual updates.
Accepted answer
To my knowledge, attribute customization only works in the Web UI and in the EWM Eclipse client. The attribute customization scripts are not run in other contexts e.g. when adding and modifying work items using
- The plain Java client Libraries
- The OSLC API
- Automation such as CSV import
It is possible to create automation that does run in all of these contexts. This would require server extensions such as follow up actions. Caveat here is that a follow up action would only run AFTER the user saves the work item. It is technically possible to create custom editor presentations, but the effort is quite high.