It's all about the answers!

Ask a question

How do I make a child WI have a value that is inherited from a parent WI as read only?


Daniel Ruebush (9713887) | asked May 09 '14, 3:12 p.m.
 Basically, I have a parent work item and a child work item.
I would like to have the child work item pull in a value (ex. a build number) from the parent and have that read only in the child.

How would I configure this?

Accepted answer


permanent link
sam detweiler (12.5k6189201) | answered May 09 '14, 3:34 p.m.
this cannot be 'configured', you would have to write a server side extension to do it.

as links cannot be manipulated with JavaScript, you will have to write a java Participant extension.
see https://jazz.net/library/article/1000

Daniel Ruebush selected this answer as the correct answer

Comments
Daniel Ruebush commented May 09 '14, 3:38 p.m.

But I don't really need to modify any links I just want to create a child work item and have that data be automatically populated in the child. Would that be some sort of dependent variable? 


sam detweiler commented May 09 '14, 3:41 p.m. | edited May 09 '14, 4:36 p.m.

see more data in answer

One other answer



permanent link
sam detweiler (12.5k6189201) | answered May 09 '14, 4:36 p.m.
you can't USE (manipulate) the link in Javascript  to find the parent is the problem
there are no builtin functions to copy data from related workitems
see https://jazz.net/library/article/1093
workbook,
https://jazz.net/library/content/articles/clm/2012/process-enactment-workshop/workbook/pew-lab-workbook.pdf
lab5
"It is not possible to access the relationships of a work item, especially to other work items from the links
tab. It is possible to access work item attributes of type work item. This will return the work item handle
but will currently not allow to resolve the referenced work item."

Comments
Daniel Ruebush commented May 12 '14, 2:26 p.m.
Then what is use of the feature allowing attributes from others WI types?

sam detweiler commented May 12 '14, 2:27 p.m.

Sorry. Please explain where you see that. 


Daniel Ruebush commented May 12 '14, 5:57 p.m.
During WI design you can add attributes from other WI types. So what is the use of this feature?

N Z commented May 12 '14, 6:20 p.m.

It's just a way of reusing already defined attributes, however, each work item has it's own copy of it. That is, the data is not shared between the work item types, so it's not like a global variable.

Your answer


Register or to post your answer.