Selectively contributing to Team Artifacts view
Hi,
I'm contributing a new domain that I want to appear under project areas (same as build, work items, etc). I've had no trouble doing this by overriding the supportsCategory method. However, what I really want to do is have the domain appear under SOME project areas, but not all, depending on some new Configuration Data I'm adding to the project area. The domain I'm contributing will only apply to project areas configured in a certain way, so I don't want the domain to appear in project areas where it doesn't apply. I had hoped that I could just code the supportsCategory method to check the configuration data for the project area, but I can't see a way to figure out what project area I'm in. I see that when I'm in the Project Area editor, the category is IProjectAreaEditorCategory and I can do getProjectArea. But, for the main Team Artifacts view, I can't see a way to get the project area from ProjectAreaCategory. The Category.getCategoryElements is returning all of the connected project areas, which doesn't help me. Any ideas or suggestions?? Thanks! Robin |
2 answers
Robin
What you are attempting to achieve is not supported. If a domain supports IProjectAreaCategory then it is designed to be shown in the TAN for all project areas to maintain consistancy within the UI. You can code your domain to return no children within its content provider when supplied with a DomainSubtreeRoot whose #getCategoryElement is a project area with/without the required configuration data. HTH Darin Jazz Process Team "ryehle" <ryehle> wrote in message news:h162lv$427$1@localhost.localdomain... Hi, |
Thank you Darin for getting back to me. I have opened enhancement request 86452 for this issue.
Robin Hi, |
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.