Possible to automatically assign approver based on an attribute selection?
Hi there,
Is it possible to automatically set up an approval, complete with the approver, when an 'Contributor' attribute is selected?
For example, if I have n 'Approver' attribute with Contributor based presentation, and i select Amy Whitehouse from that attribute. I would like an automatic approval to be set up, with the approver Amy Whitehouse automaically selected.
Is this possible?
Thanks,
KH
Is it possible to automatically set up an approval, complete with the approver, when an 'Contributor' attribute is selected?
For example, if I have n 'Approver' attribute with Contributor based presentation, and i select Amy Whitehouse from that attribute. I would like an automatic approval to be set up, with the approver Amy Whitehouse automaically selected.
Is this possible?
Thanks,
KH
One answer
As far as I can tell, the only way this could be implemented today is as Advisor or Participant plug-in.
See: https://jazz.net/library/article/1000 for an example how to create a Participant (follow up action). https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExampleThe and http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ for a precondition. http://rsjazz.wordpress.com is where I blog my experience with the API's, http://rsjazz.wordpress.com/2012/10/01/adding-approvals-to-work-items-using-the-plain-java-client-libraries/ shows an example for creating an approval with approver. The example is for a client, not a server extension, however the code is very similar. You only have to replace the client libraries by the similar services.
See: https://jazz.net/library/article/1000 for an example how to create a Participant (follow up action). https://jazz.net/wiki/bin/view/Main/RTCSDK20_ProcessPreConditionExampleThe and http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ for a precondition. http://rsjazz.wordpress.com is where I blog my experience with the API's, http://rsjazz.wordpress.com/2012/10/01/adding-approvals-to-work-items-using-the-plain-java-client-libraries/ shows an example for creating an approval with approver. The example is for a client, not a server extension, however the code is very similar. You only have to replace the client libraries by the similar services.