Is it possible to update inherited Work Item type (system) with Azure Devops API ?

%3CLINGO-SUB%20id%3D%22lingo-sub-3291461%22%20slang%3D%22fr-FR%22%3EIs%20it%20possible%20to%20update%20inherited%20Work%20Item%20type%20(system)%20with%20Azure%20Devops%20API%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3291461%22%20slang%3D%22fr-FR%22%3E%3CP%20class%3D%22%22%3EFor%20example%2C%20I%20have%20create%20an%20inherited%20process%20named%20TestNewProcess8%20from%20CMMI%20and%20as%20u%20can%20see%20below%20the%20reference%20name%20of%20the%20WIT%20Review%20is%20by%20default%20%22Microsoft.VSTS.WorkItemTypes.Review%22.%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22j_hubault_5-1650554003979.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365873iEBD18BE79C478F41%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22j_hubault_5-1650554003979.png%22%20alt%3D%22j_hubault_5-1650554003979.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20to%20use%20this%20API%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fazure%2Fdevops%2Fprocesses%2Fwork-item-types%2Fupdate%3Fview%3Dazure-devops-rest-7.1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fazure%2Fdevops%2Fprocesses%2Fwork-item-types%2Fupdate%3Fview%3Dazure-devops-rest-7.1%3C%2FA%3E%20to%20update%20the%20WIT%20but%20we%20got%20an%20error%20that%20says%20the%20reference%20name%20is%20not%20found%20in%20this%20process%20%3A%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22j_hubault_4-1650553958527.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365872iDA0C29948CE9C33D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22j_hubault_4-1650553958527.png%22%20alt%3D%22j_hubault_4-1650553958527.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20only%20way%20to%20reference%20the%20WIT%20is%20to%20edit%20it%20with%20Azure%20Devops%20interface.%20Then%20the%20reference%20nam%20is%20automatically%20change%20and%20works%20with%20API%20as%20we%20can%20see%20below%20%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22j_hubault_3-1650553741419.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365870i716D0B6F1A8C1AE5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22j_hubault_3-1650553741419.png%22%20alt%3D%22j_hubault_3-1650553741419.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3302209%22%20slang%3D%22en-US%22%3ERe%3A%20Is%20it%20possible%20to%20update%20inherited%20Work%20Item%20type%20(system)%20with%20Azure%20Devops%20API%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3302209%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1369683%22%20target%3D%22_blank%22%3E%40j_hubault%3C%2FA%3E%2C%20I'm%20facing%20the%20same%20issue%2C%20did%20you%20find%20any%20solution%20to%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

For exemple, I have create an inherited process named TestNewProcess8 from CMMI and as u can see below the reference name of the WIT Review is by default "Microsoft.VSTS.WorkItemTypes.Review".

 

j_hubault_5-1650554003979.png

 

 

 

I tried to use this API, https://docs.microsoft.com/en-us/rest/api/azure/devops/processes/work-item-types/update?view=azure-d... to update the WIT but we got an error that says the reference name is not found in this process :

 

j_hubault_4-1650553958527.png

The only way to reference the WIT is to edit it with Azure Devops interface. Then the reference nam is automatically change and works with API as we can see below :

j_hubault_3-1650553741419.png

 

 

 

 

 

1 Reply

Hi @j_hubault, I'm facing the same issue, did you find any solution to this?