您可以使用此商業規則,從 CLM 系統(例如,Rational® Team Concert)提取更多工作項目資訊。
=XPathValueFetcher('CALM link attribute',"URL parameters","XPath expression","Global User ID")
參數 | 說明 |
---|---|
CALM 鏈結屬性 | 定義 Jazz™ Team Server 中特定專案區域鏈結的 CALM 鏈結屬性 |
URL 參數 | 查詢必要工作項目資訊的 URL 參數。 |
XPath 表示式 | 指定表示式以導覽至必要元素,並指定需要從擷取值執行的運算。 |
廣域使用者 ID | 指定廣域使用者 ID |
=XPathValueFetcher('Work Items',"/?oslc_cm.properties=rtc_cm%3Astate%7B*%7D", "//rtc_cm:state/dc:title[text()]" ,"13","update_interval=3")
=(XPathValueFetcher('Work Items',"/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children/?oslc_cm.properties=rtc_cm:timeSpent","sum(//rtc_cm:timeSpent[text()])","13","run_at=1")) / ( 1000*60*60 )
=(XPathValueFetcher('Work Items',"/rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.children/?oslc_cm.properties=rtc_cm:estimate","sum(//rtc_cm:estimate[text()])","13","run_at=1")) / ( 1000*60*60 )
=(XPathValueFetcher('Work Items', "/?oslc_cm.properties=rtc_cm%3AprogressTracking%7B*%7D", "//oslc_pl:workCompleted[text()]" ,"13", "update_interval=3")) / ( 1000*60*60 )
=(XPathValueFetcher('Work Items',"/?oslc_cm.properties=rtc_cm%3AprogressTracking%7B*%7D", "//oslc_pl:effortRemaining[text()]" ,"13","update_interval=3")) / ( 1000*60*60 ) + 'Actual Effort'