how to define default assignee for a Filed Against?
Accepted answer
The request is to, set a "default" owner based on the category of the work item (Filed Against).
First of all, I don't think there is a point in wasting the time and effort to automate this. Setting the owner does not provide any value, actually it makes things more complicated.
The person responsible for managing the requests for a tam area can use a query such as incoming unassigned to find the work items they have to assign. This goes away once you set the owner. So setting the owner does not provide any benefits, actually it removes them. The role and responsibility of the team member is defined by the process and not an attribute. So i would reject the request as useless. RTC provides all means to work as it is and to be ale to query/see the unassigned work items by default. You can setup dashboards and other means.
Making the user an administrator of the project area is not a good idea either. This is the typical one bad request causes other bad stuff to happen case.
Automation, attribute customization
- You can not use a default value provider as the filed against is not available when that executes.
- You would have to use a calculated value - on an attribute that is needed to be modified by users.
- The JavaScript API available does not support any API that has access to the team area structure, members and roles. If you want to avoid hard-coding, you would make the script configurable. https://jazz.net/wiki/bin/view/Main/AttributeCustomization explains how.
- The Java API would allow to access the information of the team area and the associated users https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/ shows the API
- Since Attribute customization does not work at all in certain contexts (e.g. work items created by Java API), a server follow up action would be safer. It would also avoid the problem having a calculated value on a user input attribute
-
Using a special role would be better than making users a team area admin to determine the "Default Owner" if you want to stick to this request
Comments
Hi Ralph,
You don’t have to be jazzdmin to deploy a server side extension. Server side extensions have to be deployed by IT server admins. Server extensions also work for the web UI and don’t require any client deployment.