It's all about the answers!

Ask a question

Reuse Custom attributes across different WI types


Amit Girme (1132027) | asked Feb 03 '13, 4:36 a.m.
 Hi,

I have created two attributes Planned Start Date and Planned End Date.
I have used those in one Work item Type say 'A'

 Can i reuse these same attributes in another work item type say 'B' ?

Thanks in Advance.

One answer



permanent link
sam detweiler (12.5k6195201) | answered Feb 03 '13, 8:30 a.m.
In the same project, yes

Comments
Amit Girme commented Feb 03 '13, 9:30 a.m.

 Hi Sam,


Thanks for your reply.

Now suppose i created two work items and i filled planned start date's in both WI

Since i have reused Planned Start Date, it will be Single attribute holding two values for WI A and WI B

When i will query this attributes then which value is it going to return??
Will that return for Type A or Type B?


Geoffrey Clemm commented Feb 03 '13, 9:40 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Each work item has its own instance of a given attribute, so it's isn't a single attribute holding two values ... it is two instances of the attribute, each with their own value.


sam detweiler commented Feb 04 '13, 12:10 a.m.

What Geoff said..
in the setup you define the variables for each INSTANCE, from the available choices which are global in the project.

When u add the variable to the workitem presentation, you add it as a variable to that workitem type instance.

a weird problem  tho.. as you can change a workitem type from story to defect to task to story..

if you complete the field on one workitem and change the value moves along to the new field.. but if the same field in the new layout already HAS a value.. what happens to that?

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.