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

Javascript to get values of impact and probability in a WI

 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.

0 votes

Comments

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

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.

  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
 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.

0 votes

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
× 6,132

Question asked: Feb 26 '13, 7:15 a.m.

Question was seen: 3,932 times

Last updated: Feb 28 '13, 10:54 a.m.

Confirmation Cancel Confirm