def to_youtrack_state(trac_resolution, yt_bundle):
    """
    Creates YT state in yt_bundle with trac_resolution name.

    Args:
        track_resolution: Name of new state to add.
        yt_bundle: FieldBundle to create new state in.

    Returns:
        New resolved YT state with trac_resolution name.
    """
    state = yt_bundle.createElement(trac_resolution.name)
    state.isResolved = True
    return state
