Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How get work Item Parent in the script dojo

Hello,

I use RTC 4.0.1, I want to recover the value a attribut of WorkItem Parent in the script dojo. Is possible?


0 votes

Comments

Is this JavaScript in an attribute customization or your own web site?

attribute customization.

I want to recover the Work Item Parent in the dojo script.

attribute customization.

I want to recover the Work Item Parent in the dojo script.


Accepted answer

Permanent link
You can't as far as I am aware. You can only access attributes. See https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript for what you can do. I tried to be more specific about what you can and can't in https://jazz.net/library/article/1093 at the beginning of Lab 5.

For some cases https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ could be a solution. Other approaches could be using Java Extensions. If there is a feasible approach depends on your use case.
Ralph Schoon selected this answer as the correct answer

0 votes

Comments

In my script dojo, I can access a field summary of work item Parent??

As far as I am aware no.

From all I know, in an attribute customization script with JavaScript you neither get access to the link, nor (as a consequence) access to the element at the other end of the link (and so also not to its attributes).

You can access the attribute values of the work item context the script runs in. You have limited support for complex data types such as team areas and the like. Consider reading the links I put into the first answer.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 28 '14, 9:03 a.m.

Question was seen: 3,027 times

Last updated: Oct 28 '14, 11:14 a.m.

Confirmation Cancel Confirm