It's all about the answers!

Ask a question

Can we automatically assign value to Files Against and Owner based on the state of workitem?

Shuchita Tripathi (31435492) | asked Apr 02 '15, 6:21 a.m.
I want that when my work item goes to 'In Progress' state, the filed against and Owned By should be automatically assigned to a particular category and user.
Is that possible? I am not sure which script based attribute customization will work.

Accepted answer

permanent link
Ralph Schoon (62.3k33643) | answered Apr 02 '15, 7:02 a.m.
This is problematic with Javascript. If you hard code the uuid of the user and the category, you still need to detect the state change, which is not easy.

The best approach for this is a Java based server extension: See to get started. The referenced Extension workshop has code to get you started. The rest of the code you'd need can be found in .
Shuchita Tripathi selected this answer as the correct answer

Your answer

Register or to post your answer.