Can You Lock Modiifcations to a Defect Work Item Based On A State?
So I have a customer with a pretty basic request, although unique. I am implementing the capability to generate a "Problem Report" (PR) from results in a RQM Test. "CreatePR" will fall under "Defect" in the drop down list when you select "Create Defect" in the RQM Test Record. Some of the data will automatically be entered in the PR, other data the user will enter and then select "OK". At this point a new PR record is created and a link from that RQM Test Record is also created. The customer now is ok with allowing the user to open this PR record under RTC but he does not want them to be able edit anything. Once they click "OK" they are locked down. I tried to do this with "permissions" but was not able to. I was hoping that I could use a "state" and then make that data "Read Only". Is there any way to do this?
One answer
RTC Provides 2 operation advisors (pre-conditions, actually) "Read-only Attributes for Condition", "Read-only Attributes for State". The former requires that Attribute Customization has one or more Conditions defined, the latter one can pick the work item type / state and then choose the attributes to be read-only.
The Condition looks like must be script based which requires JavaScript be written to test for your condition and give yes/no result.
Operation advisors are configured against RTC operation (e.g. Save Work Item, Deliver (server) ) and at least 1 Role. You'd probably want to align the pre-condition on a role assigned to users that would be in the scenario above and have other roles be able to "exit the loop"
Docs: https://www.ibm.com/support/knowledgecenter/en/SSYMRC_6.0.2/com.ibm.team.workitem.doc/topics/t_defining_precond_fuactions_web.html
Picked 6.0.2 at random. I believe these advisors have been around for a couple of versions of RTC now.