It's all about the answers!

Ask a question

Javascript to get values of impact and probability in a WI


VK L (8177156159) | asked Feb 26 '13, 7:15 a.m.
edited Feb 26 '13, 9:12 a.m.
 Hi All,
 I am trying to automate the custom enumeration attribute based on
impact and probability values - (risk workitem). RTC Screenshots as below: 

Issue: I am not able to retrieve the values of risk and probability 
attributes  via the java script. I referred to exposure provider class 
and tried using similar methods 

Please advise on the appropriate method to use to retrieve the values. 

* Tried workitem.getvalue("com.ibm. team.workitem.workItemType. risk.impact") 
-> Failed with a general dojo load error

Thanks.

Comments
Ralph Schoon commented Feb 26 '13, 8:34 a.m. | edited Feb 26 '13, 8:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Valli, please don't paste web content into the question field. To me the content above is cluttered with html tag information and unreadable.


Ralph Schoon commented Feb 26 '13, 8:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

In addition, as stated in the e-mail, I received the same error. So reading this attribute type from JavaScript might not yet be supported or have a bug. You might want to greate a defect or enhancement request, if you don't get a solution here.


VK L commented Feb 26 '13, 10:34 a.m.

  Hi All,

              These are used in the exposure provider calculation script -> which is built-in. It works based on the same 2 attributes. Referred to the methods in the associated javascript - but couldnt succeed. 

One answer



permanent link
VK L (8177156159) | answered Feb 28 '13, 10:54 a.m.
 Hi All,
             This works. just a few syntax fixed and just used the complete attribute id for impact and probability to retrieve the values.

Thanks.

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.