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.
|
One answer
![]()
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.
|
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,