File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -846,19 +846,18 @@ def update_work_item(
846846 fields will stay untouched.
847847 """
848848 assert work_item .id is not None
849- work_item_type = work_item .type or oa_types .UNSET
850- if work_item_type :
849+ if work_item .type :
851850 logger .warning (
852- "You are attempting to change the type of Work Item %s to %s." ,
851+ "Attempting to change the type of Work Item %s to %s." ,
853852 work_item .id ,
854- work_item_type ,
853+ work_item . type ,
855854 )
856855
857856 response = patch_work_item .sync_detailed (
858857 self .project_id ,
859858 work_item .id ,
860859 client = self .client ,
861- change_type_to = work_item_type ,
860+ change_type_to = work_item . type or oa_types . UNSET ,
862861 body = self ._build_work_item_patch_request (work_item ),
863862 )
864863
You can’t perform that action at this time.
0 commit comments