It's all about the answers!

Ask a question

Display parent work item's attribute value in a child?


Rachel Alderman (331518) | asked May 28 '12, 11:48 a.m.
Is it possible to display the value of a parent work item's attribute in a child work item?

I know it is possible to query children work items that have a parent work item attribute with a specific value, but I'd like to display the parent work item's attribute in the child work item.

I have two custom work items. One the parent, has a field which indicates whether the work item was raised internally or externally and the child tasks resolve the problem in multiple streams. But I'd like to display on the child task whether the problem was discovered internally/externally as set by the parent (so it would be readonly in the child).

Thanks
Rachel

Comments
Sachin Nairy commented Sep 17 '13, 6:28 a.m.

Dear Rachel,

Did u got any solution for this query? if yes please share the link.

Thanks

Sachin Nairy

3 answers



permanent link
VK L (8177155159) | answered May 28 '12, 10:12 p.m.
Hello,
Did you try using the calculated value script for this particular field - where you can try getting the value of the attibute's value in the parent item.

Otherwise, a custom plugin code to do this.

Thanks.

permanent link
Ralph Schoon (63.1k33646) | answered May 29 '12, 2:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
To my knowledge, scripted custom value providers won't work in this context. As far as I know there is no way to access the links to other work items, or the linked work items.

I would suggest to look into

https://jazz.net/library/article/784
https://jazz.net/library/article/634

One way to do this would be using a followup action to set the value in child work items if it changes.

permanent link
Ralph Schoon (63.1k33646) | answered Sep 17 '13, 6:31 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
It is impossible with JavaScript. You have to write a follow up action/participant as described here: https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/

Comments
Ralph Schoon commented Sep 17 '13, 6:33 a.m. | edited Sep 17 '13, 6:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The only other way would be a UI extension with a presentation that gets the data from the parent/child. This is quite complex and would not work with all clients either.

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.