How do you define what attributes can get copied in a Copy Work Item operation?
We have a custom work item with multiple custom attributes. When users do a "Copy Work Item", we want to limit a couple of these custom attributes from being copied to the new work item.
I looked at a previous post (https://jazz.net/forum/questions/119172/create-work-item-copy-windows-attributes-can-be-hiddenremoved-from-it) and it looks like in 2011, it wasn't possible to configure RTC not to show that attribute in the Copy Work Item Window and that it just automatically shows all non-null. Is that still true in 4.0? If so, I'll open an enhancement request and go back to my stakeholder and let them know it isn't possible. Susan |
4 answers
Hi Susan,
Please see the comment 69 in Provide "Create Work Item Copy..." action in the Web UI. I've also copied it below:
The attributes are filled out in the following manner:
Hope that helps. Thanks.
Comments
Susan Hanson
commented Aug 15 '13, 9:26 p.m.
My problem is with #1 above, the "get all built-in and custom attributes in the work item". We need to restrict the ability to copy the value in a specific custom attribute, which is restricted to a be modified only by a specific role.
|
the copy rule says that ALL the attributes will be replicated.
only the ones CHANGED after the copy are access controlled. Comments
Susan Hanson
commented Aug 16 '13, 12:10 a.m.
ouch! this is a problem for us :-) I'll submit an enhancement request to allow/change this behavior OR allow us to specify somehow that a specific custom attribute value cannot be copied via the CopyWorkItem functionality.
|
'since changing the FiledAgainst'
yes, CHANGING uses the checks.. COPY does not. If the user has authority to copy then they must also have access to all the fields (in some form). I do not believe there is a specific extension point for copy (/move). Sam Comments
Susan Hanson
commented Aug 16 '13, 8:43 a.m.
Oh, I totally agree .. but in actually, this is not how RTC works.
sam detweiler
commented Aug 16 '13, 9:09 a.m.
"For example, in my exact scenario, only 1 role has "access" to modify a specific field .. normal Team Member does not."
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Follow-ons:
1) Does the save of the work item using Copy Work item follow the normal permissions? So if I have a custom work attribute that only Admin's can change, if a Team Member attempts to do Copy Work Item and the admin has set that attribute, can the team member create a copy of the work item that would then have that attribute set? I would hope not as that would violate the purpose of restricting that attribute to just Admins.
2) Is there a way to restrict the Copy Work Item command for the entire work item type (while that is extreme, it may be necessary)
3) If I can't get RTC to do this, is there a CopyWorkItem pre-condition plugin that I can use to write java code to allow or disallow the copy command AT ALL on the entire work item type or based on the role of the user perhaps.
Susan