{"id":68797,"date":"2023-05-18T05:50:13","date_gmt":"2023-05-18T13:50:13","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/devops\/?p=68797"},"modified":"2024-02-23T10:50:10","modified_gmt":"2024-02-23T18:50:10","slug":"make-test-cases-readonly-in-azure-devops-services","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/make-test-cases-readonly-in-azure-devops-services\/","title":{"rendered":"Make Test Cases Readonly in Azure DevOps Services"},"content":{"rendered":"<p>This blog content is compiled by\u00a0<a href=\"https:\/\/techcommunity.microsoft.com\/t5\/user\/viewprofilepage\/user-id\/645975\">@Ahetejaz<\/a>\u00a0from Azure DevOps CSS support team. Recently, he helped a customer in making a TestCase Readonly in Inherited Process.<\/p>\n<p><strong>Requirement:<\/strong>\u00a0Azure DevOps Services (inherited Process Template): Test cases to be made read only. Other work item types should be editable.<\/p>\n<p><strong>Scenario:<\/strong>\u00a0Generally, test cases move from &#8220;Design&#8221;, &#8220;Ready&#8221; and &#8220;Closed&#8221; state. In Design state, tester will construct the test case and will move it to Ready state once the construction is completed. At this point, team may want to freeze the test case from further editing and admin would like to make it read only.<\/p>\n<p>1&#46; Make sure to have access to modify process template<\/p>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/devops\/organizations\/settings\/work\/manage-process?view=azure-devops#prerequisites\">https:\/\/docs.microsoft.com\/en-us\/azure\/devops\/organizations\/settings\/work\/manage-process?view=azure-devops#prerequisites<\/a><\/p>\n<p>2&#46; Navigate to the process template ->\u00a0<a href=\"https:\/\/dev.azure.com\/%7bYourOrgName%7d\/_settings\/process\">https:\/\/dev.azure.com\/{YourOrgName}\/_settings\/process<\/a>\u00a0and select your customized Inherited process. Select work item type &#8211; Test Case.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image1-2.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image1-2.png\" alt=\"Image image1 2\" width=\"1355\" height=\"593\" class=\"alignnone size-full wp-image-68799\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image1-2.png 1355w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image1-2-300x131.png 300w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image1-2-1024x448.png 1024w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image1-2-768x336.png 768w\" sizes=\"(max-width: 1355px) 100vw, 1355px\" \/><\/a><\/p>\n<p>3&#46; Navigate to the \u2018Rules\u2019 section and create below custom rules.<\/p>\n<p>4&#46; Create a rule &#8216;when a work item state is Ready&#8217; and make the available fields read only in the Actions.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image2-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image2-1.png\" alt=\"Image image2 1\" width=\"747\" height=\"807\" class=\"alignnone size-full wp-image-68802\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image2-1.png 747w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image2-1-278x300.png 278w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/a><\/p>\n<p>At the time of writing the blog, we have specific limit on actions which could be included as part of one rule hence we will add other fields as part of another rule.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image3-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image3-1.png\" alt=\"Image image3 1\" width=\"742\" height=\"557\" class=\"alignnone size-full wp-image-68804\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image3-1.png 742w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image3-1-300x225.png 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/a><\/p>\n<p>5&#46; Add new rule to restrict the transition from Ready to Design and Ready to Closed.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image4-1.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image4-1.png\" alt=\"Image image4 1\" width=\"755\" height=\"494\" class=\"alignnone size-full wp-image-68806\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image4-1.png 755w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image4-1-300x196.png 300w\" sizes=\"(max-width: 755px) 100vw, 755px\" \/><\/a><\/p>\n<p>In case if the rule is no longer needed then it could be disabled.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image5.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image5.png\" alt=\"Image image5\" width=\"601\" height=\"313\" class=\"alignnone size-full wp-image-68808\" srcset=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image5.png 601w, https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2024\/02\/image5-300x156.png 300w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/a><\/p>\n<p>Cheers!<\/p>\n<p>Ahmad<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog content is compiled by\u00a0@Ahetejaz\u00a0from Azure DevOps CSS support team. Recently, he helped a customer in making a TestCase Readonly in Inherited Process. Requirement:\u00a0Azure DevOps Services (inherited Process Template): Test cases to be made read only. Other work item types should be editable. Scenario:\u00a0Generally, test cases move from &#8220;Design&#8221;, &#8220;Ready&#8221; and &#8220;Closed&#8221; state. In [&hellip;]<\/p>\n","protected":false},"author":148453,"featured_media":68799,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[253],"tags":[],"class_list":["post-68797","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure-devops-server"],"acf":[],"blog_post_summary":"<p>This blog content is compiled by\u00a0@Ahetejaz\u00a0from Azure DevOps CSS support team. Recently, he helped a customer in making a TestCase Readonly in Inherited Process. Requirement:\u00a0Azure DevOps Services (inherited Process Template): Test cases to be made read only. Other work item types should be editable. Scenario:\u00a0Generally, test cases move from &#8220;Design&#8221;, &#8220;Ready&#8221; and &#8220;Closed&#8221; state. In [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/68797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/148453"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=68797"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/68797\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/68799"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=68797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=68797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=68797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}