Lead Name based on Team Area selected
Hello, I have a requirement to pre-populate Team Area Lead Name based on Team area selected on a work item. Please help me |
2 answers
Geoffrey Clemm (30.1k●3●30●35)
| answered Nov 02 '15, 11:42 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am not aware of an out-of-the-box Team Area Lead Name property, so I assume this is some custom property defined in your project area. To provide a computed default value such as this, I assume that you will need to write a custom Operation Behavior post-condition on the Save Work Item operation (Ralph's blogs give you guidance on how to do this).
|
Ralph Schoon (63.6k●3●36●47)
| answered Nov 03 '15, 2:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
If you really look into default values, you quickly realize how few data is actually available on work item creation. The team area is not available, as this needs to be specified by the user after the creation. So default values don't get you that far. Calculated values could be used but have the disadvantage of always being calculated. So you have to be able to distinguish between when to calculate and return another value and when to return the current one.
Then there is the "The team lead changes the team or employer" situation that might need careful consideration. So the first question would be where that name is supposed to be in - in terms of an attribute. If this is just a string attribute or another additional contributor attribute, you can
Unfortunately you lack to explain what the requirement is actually supposed to help with. It would be easy enough to display the team organization in a dashboard which could directly lead to the team where you can see the team member role in a dashboard widget. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.