Associate "Filed against" with a default "Owned by" without hard-coding the relationship
I want to solve the same problem as the question asked here: https://jazz.net/forum/questions/104716/rtc-401-how-can-i-set-an-owned-by-default-based-on-the-value-of-filed-against
But I'm wondering how to associate owners to categories without hard-coding the relationship. Like with the previously asked question, when someone makes a selection for the "Filed against" field in a work item, I want a user to be automatically selected in the "Owned by" field. I know I can use a Script Based Calculated Value to return a user ID based on the contents of the "Filed Against" field, but as far as I can tell, I would need to hard-code this association. Instead, I would like a privileged user to be able to make this association through a GUI. Is there any way that this can be accomplished?
But I'm wondering how to associate owners to categories without hard-coding the relationship. Like with the previously asked question, when someone makes a selection for the "Filed against" field in a work item, I want a user to be automatically selected in the "Owned by" field. I know I can use a Script Based Calculated Value to return a user ID based on the contents of the "Filed Against" field, but as far as I can tell, I would need to hard-code this association. Instead, I would like a privileged user to be able to make this association through a GUI. Is there any way that this can be accomplished?
Accepted answer
You could do a Server-side participant that runs after the save that *if* the user did not assign an owner, you could do some setting. The FiledAgainst field (Category) gets mapped to a Team Area, and you could have a specific role (like "default owner". During your SSP, you could look to see if OwnedBy is set and if not, get the Team Area, load the users and roles of that team area, find the person with the "Default Owner" role, and set the Owned By.
Comments
He asked for a way without writing any extension.
Hi Susan, this sounds like it'll be the route I'll end up taking; thanks for pointing me in the right direction. I found a workshop (https://jazz.net/library/article/1000) that looks like it explains how to create a server-side participant, so I'll be taking a look at that. Thanks!
Sam, I meant that I didn't want to have the relationship between categories and users written into the code (e.g. a map between category ID's and user ID's just stored the code as a variable) since I want that GUI-editable; sorry if I wasn't clear in my post, I should have mentioned that I was writing a script or plugin.