It's all about the answers!

Ask a question

What is the best way to configure a numeric data range in a work item?

Daniel Ruebush (9715987) | asked Mar 08 '16, 9:53 a.m.
Hi Everyone,

I am consulting with a team and need to add an attribute to all work item types called Quantity.  The

value range would be from 0 to 100.  What would be the best way to add this attribute. 

Would I create an enumeration?  I don't want to have a
Quantity only valid to just one attribute type that is really the same attribute and value.

The quantity shouldn't be a string.  It should be a numeric value.  So for all these different quantities it is really the same attribute. 

So one way would be to use an enumeration.  That way it would show up in any of the work items attribute section if added.      

I don't want to add all those enumerations.  I would rather   
use a numeric data type that could be a global attribute that would     
be available to add to any of the attributes. 

What are your suggestions?

Accepted answer

permanent link
Daniel Ruebush (9715987) | answered Mar 31 '16, 1:37 p.m.
I ended up creating a numeric range attribute with a integer range validator.
Ralph Schoon selected this answer as the correct answer

2 other answers

permanent link
Ralph Schoon (63.2k33646) | answered Mar 08 '16, 9:56 a.m.
Please read and consider look at the available data types for attributes and consider a validator as well.

permanent link
Matt Muller (59813674) | answered Mar 08 '16, 10:27 a.m.
edited Mar 08 '16, 10:28 a.m.

Hi Daniel,

I guess it depends on what you want the attribute to do and how users/teams/projects will use it?

"Quality" is very generic and can potentially be different for each Work Item type;

If users are to input the value how do you provide guidance on the scale?

Enumerations can be simple and then you can easily group for reporting, Querying, Dashboards and the Icon's are very useful when using a plan / or list view to sort / order / group.

So for me it's the Requirements for the new attribute and how it support your process and reporting.

Just some of my thoughts.


Matt Muller

Your answer

Register or to post 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.