How to initialize the value everytime when loading a workitem ?
I'm trying to init value (calculated script based) when loading workitem. but it will always be triggered when I save workitem. I plan to have a custom attribute which has the calculated script value (System date - Due Date). I would like it change everyday when I load (open) the workitem without modification. . but the value is always the same when day passed since I don't have any modification. Any suggestion for doing this feature ?
3 answers
Hello Tommy,
I would use Default Provider - Script Based Default
Please refer to https://jazz.net/library/article/1003/
Hope it helps,
Eric
Comments
There is no mechanism that calculates the value of a work item just because it is loaded. The value providers work on
- Creating a work item
- Changing a dependent attribute
- Clicking on an attribute
I quite don't get the use case either.
Comments
The only viable approach I am aware of would be a custom non attribute based presentation. See https://jazz.net/wiki/bin/view/Main/ContributingAttributePresentationsV2