How to count the number of attributes in a WItype ?
Is there an easy way to count the number of attributes, better yet of custom attributes, in a WItype ?
Maybe it wouldn't be so bad, manually, if we had followed advises to keep the number of custom attributes under 100 in a WItype. But we have 624 in one of the 7 similar WItypes.
|
Accepted answer
The easiest way I can think of is to count the attribute entries in the process configuration source. RTC Eclipse client may not have this feature, but any advanced text editors, such as Notepad++, have the feature to count the occurrence of patterns. Custom attributes look like this in the source.
<customAttributes category="com.ibm.team.workitem.workItemType" >Search "</customAttributes >" should give you the exact number. long TRUONG selected this answer as the correct answer
Comments
long TRUONG
commented Nov 19 '14, 11:01 p.m.
Thx Don,
My comment is too long: will use the answer for it.
Thx Don,
For the quick and right answer. Didn't get the full understanding of what to look for before pulling the notepad++ (what could we hve done before there is notepad++) search literally for a copy of your string "</customattributes>" but here are the details for slow poke like me:
new 4 (44 hits)
Line 391: </customAttributes>
Line 419: </customAttributes>
Line 1045: </customAttributes>
Line 1051: </customAttributes>
Line 1080: </customAttributes>
Not sure what was that noise after my first edit. It may return after I save this one
sam detweiler
commented Nov 19 '14, 11:37 p.m.
Don, that is amazing!!.. never had an editor that would return counts.. nice
Donald Nong
commented Nov 20 '14, 12:15 a.m.
Long,
long TRUONG
commented Nov 20 '14, 3:52 p.m.
Nothing a night rest won't help discover if you sleep on it: Have not realized before that you can choose to search by regExp on notepad++
use search string "</customattributes>|<customAttributes category=" and voila, neatly arranged without having to manipulate in .xls or sort:
new 1 (88 hits)
...
Line 420: <customAttributes category="com.ibm.team.workitem.bugType">
Line 1045: </customAttributes>
...
hence for WItype bug there are (1045-420+1)-2 (for lines 420 and 1045)= 624
long TRUONG
commented Dec 03 '14, 1:27 p.m.
Out of neceessity, some regExp did not work as thought, found the simplest search strings:
"</customAttributes" for WItypes & their count of custom attributes
"</customAttributes*" for WItypes & their custom attributes
showing 5 of 6
show 1 more comments
|
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
We'll you could write a little utility to count them.
Thx Sam