Assign User in an attribute based on Team Area
One answer
As far as I can tell, the only ways to do this are:
- A Java Based default Value Provider. Example code can be found here: https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ ; Note there is code for finding specific roles at the end of that post and you should be able to reuse most of it
- A Work Item Save Participant, that sets the value after the save in a second save
Using JavaScript won't work, as there is no way to iterate the team structure in it. The only way would be a static mapping with the contributor UUID's coded into the calculated value provider.