Can not change Contributor list (type) and Duration (type) to readOnly.
My client is having an issue to set an attribute of
[1] Contributor list (type) - Contributor list (kind) and
[2] Duration (type) - Time Duration (Kkind)
to ReadOnly,
We have tested this many times with different configurations & settings but we can not make these attributes to be ReadOnly.
Please see the screen shot of the issue and let me know if there is any other way to make these attributes to be ReadOnly.
[1] Contributor list (type) - Contributor list (kind) and
[2] Duration (type) - Time Duration (Kkind)
to ReadOnly,
We have tested this many times with different configurations & settings but we can not make these attributes to be ReadOnly.
Please see the screen shot of the issue and let me know if there is any other way to make these attributes to be ReadOnly.
3 answers
Hi Ryosuke ,
You Can make it read only by adding precondition "Read-Only Attributes For Type and State" in Operation Behavior and set the attribute accordingly.
Regards,
Anurag
Hi, this is a very interesting question and observation. I tested this with 3.0.1.1 and it appears there is no way to do that in 3.x. I have found some defects for 4.x for example defect 208023 so apparently there are issues with some attribute types.
I tried another approach which was to make the contributor list attribute read only in general, but even that did not fix the issue, unfortunately. The trouble with the estimate could be caused by the fact that the presentation actually is built from several attributes. I have seen issues with that presentation in the past.
The only way how I think you could save this in 3.x would be to create your own operational behavior. An advisor (pre-condition), that checks if the values have changed and prevents from saving the change. See http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ for example code. Please be aware that that is a follow up action and you want to create an advisor. http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ describes an advisor and talks about the differences. The last post is however for a different operation. You want your advisor for the operation used in the first post. The posts have also links to https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations where you can look up the ID's for the operations used.
I tried another approach which was to make the contributor list attribute read only in general, but even that did not fix the issue, unfortunately. The trouble with the estimate could be caused by the fact that the presentation actually is built from several attributes. I have seen issues with that presentation in the past.
The only way how I think you could save this in 3.x would be to create your own operational behavior. An advisor (pre-condition), that checks if the values have changed and prevents from saving the change. See http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ for example code. Please be aware that that is a follow up action and you want to create an advisor. http://rsjazz.wordpress.com/2012/11/01/restrict-delivery-of-changesets-to-workitem-types-advisordelivery-of-changesets-associated-to-wrong-work-item-types-advisor/ describes an advisor and talks about the differences. The last post is however for a different operation. You want your advisor for the operation used in the first post. The posts have also links to https://jazz.net/wiki/bin/view/Main/CustomPreconditionsTable#operations where you can look up the ID's for the operations used.