Limiting RRC Artifact type to be linked only with certain artifact type
My customer has a unique requirement that he want's to cater in RRC. He has asked for creation of two new types of artifacts and only allow certain type of linkage (i.e. Parent/Child link) between these two types. He does not want to allow the linkage of these type of artifacts to any other artifacts,
My question is can this be accomplished in RTC? if yes then how? Regards, Ahmed |
3 answers
Hi Ahmed,
I'm not aware of a built-in way to restrict link types. You could probably write a custom advisor you could apply to the Work Item Save operation that would check if the work item is of type A, links were only of type B. The problem I see with this approach is that users would still be able to create the links in the work item--they just wouldn't be able to successfully save them, which could be confusing. https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation has information on writing advisors. |
Ahmed,
In RRC, I don't think there's a way to completely restrict creating certain types of links to specific artifacts of a certain type. However, there is a feature in RRC called "Preferred Link Types" that can be managed through the Artifact Types editor of the Manage Project Properties UI. From the Artifact Types editor, you should be able to select certain "To" and "From" Link Types that artifacts of this Artifact Type can use. However, remember that these are only *preferences* - whenever a user goes to create a link by normal means, the menu will display, by default, the preferences you chose, but it will also present a "More..." option, which the user can chose and still create a link of a non-preferred type.
Does this make sense? Hope it helps!
Mike Jaworski
Comments
Ahmed Omair
commented Mar 06 '14, 8:00 a.m.
Well i knew this and can work with it but can we restrict an artifact type say A be able to only link with artifact type say B. These artifacts shall not be able to link with any other artifacts?
Ahmed,
Like I said, I don't think there's a way to completely restrict linking in this way. There was a plan at one point to add this feature to RRC (I believe back in 4.0.1) but the complexity associated with this kind of change was a bit too much to be contained, so we opted to introduce Preferred Link Types instead. I think there is still a plan to complete this work via this plan item: Type Based Link Enforcement (59440). You may want to look through the Children links to this work item to see what kind of specific stories are being planned.
Hope this helps,
Mike
|
Ahmed in your post you refer to RRC and then to work items. RRC artifacts are managed by the RM application, and work items are managed by the CCM application (which is the main part of RTC). Lauren's answer is about work items.
The optimal way to address your question differs for the RM and CCM applications. I will answer for RM:
|
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.