RTC: Instigate Naming Convention when creating components
We have a naming convention where each component should be called
<Project Area Name>.<Team Area Name>.<Product being Created>.<Type>
eg
JKE-Banking.Systems-Analysis.BankTellingMachine.Dev
Ideally when creating a new component the Project Area Name and Team Area name would be resolved with the current details and the user would be left to fill in the Product being created and type parts in the component name field of the dialog as per our guidelines
Is it possible to do this, if so how?
2 answers
You can use a calculated value attribute to define a JS script that fill the component name with your template based on the workitem attributes.
Assuming a component means a SCM component, I am fairly certain, that we can't do that. JavaScript is only available for work items. I am not aware of an extension point that could
1. Influence the component name when creating a new component
2. Prevent saving a component with a name that does not conform the schema.
Again, since the question leaves so much open I assume RTC SCM component. Adding How should I ask a question in the Forum if I want to receive useful answers? if you want to improve.
Comments
Hi Ralph,
You seem to have go the gist of what I wanted to know, thanks for taking the time to answer my query. I suspected there was nothing to enforce my schema, but it was worth asking the question. You are right that a feature such as the one you outline in point 2 is much more likely to exist and easier for IBM to develop than auto filling the New Component box I had in mind. I would raise a feature request, but am a little busy, hopefully I will remember to in a couple of weeks. I didn't think my question was ambiguous, but you only have your own experience as a reference, mine will not be as deep as yours on the RTC front.
Hi Richard,
especially component is so overused in the industry, you never know 8).
Please file enhancement requests. I think we should have a lot more ways to enforce specific rules. This one has come up with other customers as well.
Comments
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 21 '17, 2:24 p.m.Note that ideally most components would be re-useable across more than one project, so including the project area name and the team area name in the name of a component is normally not recommended, because it can cause confusion when that component is re-used in a different project.