{"id":7403,"date":"2006-05-25T18:51:00","date_gmt":"2006-05-25T18:51:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2006\/05\/25\/answer-to-an-e-mail-comment-concerning-policies-for-work-item-types\/"},"modified":"2019-02-14T17:52:35","modified_gmt":"2019-02-15T01:52:35","slug":"answer-to-an-e-mail-comment-concerning-policies-for-work-item-types","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/answer-to-an-e-mail-comment-concerning-policies-for-work-item-types\/","title":{"rendered":"Answer to an e-mail comment concerning policies for work item types"},"content":{"rendered":"<p>We received the following e-mail from khurram:<\/p>\n<p>&#8220;<font size=\"2\">I am using VSTS Workgroup Edition, and want to enforce certain policies to Work Items in Project eg<\/font><\/p>\n<p><font size=\"2\">&#8211; Project Administrator can update &#8220;any&#8221; work item<br>&#8211; Only &#8220;Assigned&#8221; person can mark the work item &#8220;Resolved&#8221;<br>&#8211; Unless &#8220;Planned Hours&#8221; or other certain field is populated work item cannot be marked &#8220;Resolved&#8221;<\/font><\/p>\n<p><font size=\"2\">and so forth<\/font><\/p>\n<p><font size=\"2\">Any pointers will be helpful..<\/font>.&#8221;<\/p>\n<p>The answer is that all of these things are possible. <\/p>\n<p>1. If the project administrator is a member of the Team Foundation Administrators group, or the Contributors group, then they can edit any work item. The specific permission required is <strong>Edit work items in this node<\/strong>. For more information, see <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/ms253077.aspx\">Team Foundation Server Default Groups, Permissions, and Roles<\/a>.<\/p>\n<p>2. To restrict state changes in a work item to a specific user or group, you must customize the work item type. There&#8217;s a great example of this in the topic <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/ms194954.aspx\">Transition Security<\/a>.<\/p>\n<p>3. To restrict state changes based on other fields states, such as required fields, again you must customize the work item type. In the state that you define, indicate that a field is required. For example:<\/p>\n<p>&lt;STATE value=&#8221;Resolved&#8221;&gt;<br>&nbsp;&nbsp; &lt;FIELDS&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FIELD refname=&#8221;Example.PlannedHours&#8221;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;REQUIRED \/&gt;<br><\/p>\n<p>Hope this helps,<\/p>\n<p>David Chesnut [MSFT]<br><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We received the following e-mail from khurram: &#8220;I am using VSTS Workgroup Edition, and want to enforce certain policies to Work Items in Project eg &#8211; Project Administrator can update &#8220;any&#8221; work item&#8211; Only &#8220;Assigned&#8221; person can mark the work item &#8220;Resolved&#8221;&#8211; Unless &#8220;Planned Hours&#8221; or other certain field is populated work item cannot be [&hellip;]<\/p>\n","protected":false},"author":125,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"acf":[],"blog_post_summary":"<p>We received the following e-mail from khurram: &#8220;I am using VSTS Workgroup Edition, and want to enforce certain policies to Work Items in Project eg &#8211; Project Administrator can update &#8220;any&#8221; work item&#8211; Only &#8220;Assigned&#8221; person can mark the work item &#8220;Resolved&#8221;&#8211; Unless &#8220;Planned Hours&#8221; or other certain field is populated work item cannot be [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/7403","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\/125"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=7403"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/7403\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=7403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=7403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=7403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}