Anonymous     Python     05 Apr 2012    
1
2
3
4
5
6
7
from com.atlassian.jira import ComponentManager
components = issue.getComponents()
for component in components:
if component == "test":
issue.setAssigneeId("kalinchenko")