TFS Tip: Making a field READONLY after the work item has changed states

Ever need to make a field read-only to everyone except for a specified group, but only once the work item has made it past a specific state?

You could achieve this by marking a field as read-only when it gets to a specified state. So after you enter the initial information, you move your work item to a state of Active (or you can use any other state), and within that state definition add a field rule to make it readonly. In the following sample, i’m making description readonly when the workitem is in the active state. Note that it is readonly for everyone, except for project administrators:

    <STATE value="Active">
     <FIELDS>
      <FIELD refname="Microsoft.VSTS.Common.ClosedDate">
       <EMPTY />
      FIELD>
      <FIELD refname="Microsoft.VSTS.Common.ClosedBy">
       <ALLOWEXISTINGVALUE />
       <EMPTY />
      FIELD>
      <FIELD refname="System.AssignedTo">
       <REQUIRED />
      FIELD>
      <FIELD refname="System.Description">
       <READONLY not="[Project]\Project Administrators" />
      FIELD>
     FIELDS>
    STATE>

You would have to apply the same rule to all the states in your work item that should have this rule.

156 thoughts on “TFS Tip: Making a field READONLY after the work item has changed states

  1. Haydn Porch

    Esteban, making a field readonly for all except project administrators is exactly what I am looking for. However, when I access the Task template using the Process Editor’s, ‘Open WIT from Server’. I can add the ‘REQUIRED’ rule but when I apply the ‘not’ clause I only have ‘[Global]’ groups in the drop down i.e. [Global]\Project Collection Administratore, etc. How can I input [project]\Project Administrators?

    Thanks

  2. Esteban Garcia

    Haydn,
    You can just type in the name of the group if you don’t see it in the drop-down list.

  3. Abertzowly

    скільки буде тривати війна в україні 2022 скільки триватиме війна в україні 2022 коли закінчиться війна

  4. IverHuche
  5. Chestergom

    https://stromectolgf.com/# stromectol for sale

  6. StromLiset

    stromectol 3mg tablets ivermectin 4 tablets price

  7. Cameronlar

    buy prescription drugs from india buy prescription drugs from canada

  8. ThomasTar

    online canadian drugstore canadian pharmacy

  9. Stevenamoca
  10. Cameronlar

    non prescription erection pills online prescription for ed meds

  11. ThomasTar

    ed meds online without doctor prescription pet antibiotics without vet prescription

  12. Stevenamoca
  13. MichaelMut

    how much is viagra buy viagra online usa

  14. BrandonFug

    buy generic 100mg viagra online viagra

  15. BrandonFug

    where to buy viagra viagra

  16. BrandonFug

    viagra from canada viagra amazon

  17. BrandonFug
  18. RaymondGon

    doxycycline 100mg price uk doxycycline uk online

  19. Stephenrab
  20. 3pomegranate

    1mandatory

  21. ShelbymiB
  22. Rickyinell

    doxycycline 100 mg buy online doxycycline cost united states

  23. Homermaype

    tamoxifen estrogen tamoxifen bone pain

  24. RaymondGon

    https://buymetformin.best/# metformin where to buy

  25. Homermaype

    tamoxifen and osteoporosis tamoxifen chemo

  26. EdwardQuaxy

    lipitor 10 mg lipitor cost

  27. RaymondGon

    https://buynolvadex.store/# tamoxifen 20 mg

  28. AnthonyVon

    https://buymetformin.best/# order metformin 500 mg online

  29. Williamsturf

    should i take tamoxifen tamoxifen cost

  30. GeorgeAlini

    https://diflucan.icu/# diflucan 50 mg capsule

  31. RobertFok
  32. MichealOpilt

    canadian drug pharmacy prescription drugs

  33. RobertFok

    https://cipro.best/# buy cipro cheap

  34. Isiahjat

    ed drugs compared best treatment for ed

  35. RobertFok
  36. Isiahjat

    ed dysfunction treatment ed remedies

  37. GeorgeAlini

    https://erectionpills.best/# what is the best ed pill

  38. RobertFok

    https://withoutprescription.store/# ed meds online without doctor prescription

  39. MichealOpilt

    neurontin 300 mg tablets neurontin canada

  40. Isiahjat

    generic neurontin buy neurontin uk

  41. RobertFok

    https://cipro.best/# cipro for sale

  42. 1bartender

    2quieter

  43. Isiahjat

    buy ed pills ed treatments

  44. RobertFok

    https://diflucan.icu/# cheap diflucan online

  45. GeorgeAlini

    https://cipro.best/# cipro pharmacy

  46. what is a dissertation paper

    custom dissertation writing services https://professionaldissertationwriting.org/

  47. custom dissertation writing
  48. a dissertation
  49. cheap dissertation help

    phd dissertation editing help https://dissertationwritingcenter.com/

  50. MichealOpilt

    online ed medications ed pills online

  51. online dissertation writing

    rutgers dissertation proposal help https://dissertationhelpexpert.com/

  52. dissertation topics

    dissertation help online free https://accountingdissertationhelp.com/

  53. dissertation help in delhi

    proposal and dissertation help geography https://examplesofdissertation.com/

  54. Isiahjat

    generic neurontin pill where can i buy neurontin online

  55. 18 month doctorate without dissertation
  56. dissertation introduction

    help writing a dissertation https://businessdissertationhelp.com/

  57. RobertFok

    https://diflucan.icu/# diflucan canada

  58. thesis dissertation writing
  59. writing an abstract for a dissertation
  60. uf dissertation award

    how do i write a dissertation https://dissertationhelpspecialist.com/

  61. buy dissertation online

    dissertation writing https://dissertationhelperhub.com/

  62. tips for writing a dissertation
  63. Davidcog
  64. Stevenjam

    https://doxycyclineonline.store/# doxycycline without prescription

  65. Danielfex

    cheap clomid cheap clomid

  66. DarrellMow

    cheap ed medication buy medications online

  67. Stevenjam

    https://stromectol.life/# ivermectin cream cost

  68. Stevenjam

    https://drugsonline.store/# male enhancement pills

  69. DarrellMow

    doxycycline without prescription doxycycline cap 50mg

  70. DanielZet

    cheap erectile dysfunction pill ed medication online

  71. Danielfex

    ed medication online online canadian pharmacy

  72. Stevenjam
  73. DarrellMow

    erection pills that work best ed drugs

  74. Williamwainc
  75. Phillipbon

    stromectol 3mg tablets order stromectol over the counter

  76. JamesMethy

    https://stromectoltrust.com/# stromectol 3 mg tablets price

  77. Phillipbon
  78. Richardirola

    pet antibiotics without vet prescription male dysfunction pills

  79. Larrygal

    https://pharmacyizi.com/# erectile dysfunction treatments

  80. Jamesdaw

    erectile dysfunction medication ed treatment pills

  81. Stevephasy

    natural ed cures best ed medication

  82. Arthurpievy

    https://pharmacyizi.com/# vacuum pump for ed

  83. Larrygal

    https://pharmacyizi.com/# erectile dysfunction remedies

  84. Stevephasy

    male dysfunction pills non prescription ed pills

  85. Arthurpievy

    https://pharmacyizi.com/# online canadian drugstore

  86. Richardirola
  87. Stevephasy

    ed men otc ed drugs

  88. Larrygal

    https://pharmacyizi.com/# prescription drugs without doctor approval

  89. EarnestSok

    natural remedies for ed best non prescription ed pills

  90. KeithJuP

    canada discount drug discount drugs online pharmacy

  91. GeraldDam

    us pharmacy trust pharmacy

  92. Thomasabodo
  93. Georgenip
  94. GeraldDam

    best ed treatment pills ed pills that really work

  95. Thomasabodo

    https://allpharm.store/# canadian drugs pharmacies online

  96. Georgenip

    https://onlinepharmacy.men/# canadian pharmacy reviews

  97. EarnestSok

    best over the counter ed pills ed pills cheap

  98. GeraldDam

    Periactin canadian drugs online pharmacy

  99. KeithJuP

    ed meds online without doctor prescription dog antibiotics without vet prescription

  100. las vegas casino online

    casino borgata online https://firstonlinecasino.org/

  101. all michigan online casino

    atlantic city online casino https://newlasvegascasinos.com/

  102. MatthewHex

    https://canadiandrugs.best/# best ed pills non prescription

  103. usa online casino

    vegas casino online no deposit bonus 2021 https://trust-online-casino.com/

  104. Thomasabodo

    https://erectionpills.shop/# cheap erectile dysfunction

  105. casino world online

    wind creek casino online https://onlinecasinosdirectory.org/

  106. hard rock online casino nj

    riversweeps 777 online casino app https://9lineslotscasino.com/

  107. chumba casino online gambling

    online casino no deposit codes https://free-online-casinos.net/

  108. chumba online casino

    inferno online casino https://internet-casinos-online.net/

  109. real online casino usa

    bester online casino bonus https://cybertimeonlinecasino.com/

  110. GeraldDam

    best australian online pharmacy online pharmacy australia

  111. Georgenip

    https://onlinepharmacy.men/# online pharmacy no prescription needed

  112. mgm michigan online casino

    zone online casino msn games https://1freeslotscasino.com/

  113. online casino free bet

    online casino no deposit https://vrgamescasino.com/

  114. river casino online

    platinum play online casino https://casino-online-jackpot.com/

  115. reddit online casino

    gta 5 online casino mystery prize how to claim https://onlineplayerscasino.com/

  116. fast payout online casino

    biggest online casino https://ownonlinecasino.com/

  117. mgm online casino michigan
  118. online casino usa

    vegas 7 online casino https://casino8online.com/

  119. Thomasabodo

    https://erectionpills.shop/# non prescription ed drugs

  120. GeraldDam

    best non prescription ed pills prescription without a doctor’s prescription

  121. Georgenip

    https://onlinepharmacy.men/# canadian pharmacy coupon code

  122. Thomasabodo

    https://erectionpills.shop/# best ed pills online

  123. GeorgeFed

    https://stromectolbestprice.com/# ivermectin for lice

  124. CareyZiT

    ivermectin horse wormer tractor supply pig wormer ivermectin pour on

  125. JeffreyBrupe

    https://stromectolbestprice.com/# ivermectin gold for horses

  126. JamesMip

    erectile dysfunction medications erection pills online

  127. kamagra oral jelly pagamento alla consegna

    Hi! I’m at work browsing your blog from my new iphone
    3gs! Just wanted to say I love reading your blog and
    look forward too all your posts! Carry onn the fantastic work!

    Here is myy webpage – kamagra oral jelly pagamento alla consegna

  128. Michaelcop

    doctors for erectile dysfunction ed trial pack

  129. WilliamAgele

    https://drugsbestprice.com/# erectial disfunction

  130. Dustinthymn

    https://medrxfast.com/# canadian online drugstore

  131. DavidQuips

    ed meds online without doctor prescription pain meds online without doctor prescription

  132. Dustinthymn

    https://medrxfast.com/# canadian pharmacy

  133. DavidQuips

    canadian pharmacy online canadian pharmacy

  134. Dustinthymn

    https://medrxfast.com/# ed meds online without doctor prescription

  135. free vpn account

    best vpn for netflix https://freevpnconnection.com/

  136. avast vpn

    free vpn for kodi https://ippowervpn.net/

  137. free trial vpn

    download free vpn https://imfreevpn.net/

  138. DavidQuips

    online canadian pharmacy carprofen without vet prescription

  139. vpn free download for pc

    best vpn for roku https://superfreevpn.net/

  140. best affordable vpn

    free vpn for phone https://free-vpn-proxy.com/

  141. vpn for windows
  142. Dustinthymn

    https://medrxfast.com/# online prescription for ed meds

  143. Dustinthymn

    https://medrxfast.com/# canadian drug pharmacy

  144. DavidQuips

    prescription drugs dog antibiotics without vet prescription

  145. ThomasRoN

    https://medrxfast.com/# prescription drugs

  146. Dustinthymn

    https://medrxfast.com/# buy prescription drugs without doctor

  147. DavidQuips

    ed meds online without prescription or membership buy anti biotics without prescription

  148. Dustinthymn

    https://medrxfast.com/# canadian drugs online

  149. DavidQuips
  150. ThomasRoN

    https://medrxfast.com/# how to get prescription drugs without doctor

  151. Dustinthymn

    https://medrxfast.com/# ed drugs online from canada


Leave a Reply

Your email address will not be published. Required fields are marked *