tfsaggregator / aggregator-cli

A new version of Aggregator aiming at Azure DevOps (ex Visual Studio Team Services)
https://tfsaggregator.github.io/
Apache License 2.0
73 stars 32 forks source link

Can we copy picklist values dynamically from one field to Other #191

Closed prashanthbv12 closed 3 years ago

prashanthbv12 commented 3 years ago

Hello,

Whenever a certain values are selected from pick list is it possible to dynamically copy those values to another picklist field using this tool. If yes, please give a suggestion how to do it. Thanks in advance

giuliov commented 3 years ago

Short answer: no.

As @jessehouwing said:

It runs on the server and is always one save away from the UI. It can do fancy calculations the rules engine won't allow and can work across hierarchies and queries (which the built-in rules won't allow), but needs a round-trip to the server. Thus it is only reactive and may need a UI refresh for calculations to show up. It cannot be used to block updates either. The data has already been saved once the aggregator runs. You could do compensating changes, but can't prevent them. When aggregator changes a value, it will also invoke itself once more (it runs on every change), so rules must run idempotent.

prashanthbv12 commented 3 years ago

Short answer: no.

As @jessehouwing said:

It runs on the server and is always one save away from the UI. It can do fancy calculations the rules engine won't allow and can work across hierarchies and queries (which the built-in rules won't allow), but needs a round-trip to the server. Thus it is only reactive and may need a UI refresh for calculations to show up. It cannot be used to block updates either. The data has already been saved once the aggregator runs. You could do compensating changes, but can't prevent them. When aggregator changes a value, it will also invoke itself once more (it runs on every change), so rules must run idempotent.

This means can I can create a pick list with values A,B,C and save work item first. And then can i have a rule to trigger copy the values A,B,C from first picklist to another picklist.

jessehouwing commented 3 years ago

Standard WIT rules can copy from one field to another within the same WI. You don't need Aggregator for that.