È possibile utilizzare questa business rule per richiamare ulteriori informazioni di un work item dal sistema CLM come Rational Team Concert.
=XPathValueFetcher('CALM link attribute',"URL parameters","XPath expression","Global User ID")
Parametro | Descrizione |
---|---|
Attributo link CALM | L'attributo di link CALM che definisce il link ad una specifica area del progetto in un Jazz Team Server |
Parametri URL | Il parametro URL per eseguire una query delle informazioni richieste sul work item. |
Espressione XPath | Specificare l'espressione per accedere all'elemento richiesto e il calcolo che è necessario eseguire dal valore richiamato. |
ID utente globale | Specificare l'ID utente globale |
=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'