1677
1677
bug = getUtility(IBugSet).createBug(create_bug_params)
1678
1678
if bug_watch_url is not None:
1679
1679
# fromText() creates a bug watch associated with the bug.
1682
1681
bugtask = bug.default_bugtask
1683
1682
if date_closed is not None:
1684
1683
bugtask.transitionToStatus(