Displaying work item resolution on closed work items
![]()
I've changed the defect workflow state of "resolved" into two states:
"resolved" with a resolution of "fixed" or "duplicate" and "returned" with a resolution of "more information" or "not recreateable" and I've also added a "closed" state. In the case of "returned" and "not recreateable", the originator of the work item would "accept answer", and the work item would transfer to "closed" state. I would like to keep the "resolution" on the closed work item. But when "accept answer" action is selected, the resolutions disappears. I can get it to work, by checking "show resolution" on the "Closed" state. However, it does allow the user to edit the "resolution" and possibly change the value when the "accept answer" action is selected. Is there some why which the resolution can be displayed and not allow the user to change the value? I've tried to see if I could make the value "resolution" as read only, on certain states. But it seem that resolution is a special variable, and does not allow setting. From what I can tell of the behavior, it seems the resolution attribute is assumed to be transient data associated with a certain state, and not persistent data associated with the work item. |
2 answers
![]()
with the out of the box solutions, if you have multiple resolutions for a state, you cannot prevent it being changed.
you could write a participant that forces it to stay as previously selected, altho that might be weird for the user, who set it to another value, and it didn't stay set that way. or you can trigger an error in an advisor, that says, sorry, you can't change the value on this action. |
Comments
I am having the same problem.
What I am doing now is to create a Resolution custom field, and make it only show up at Resolved and Closed states.
I wonder if anyone has a better solution.