If Timespent attribute in not null then status/state should change automatically to inprogress? is it possbile by script or any other way?
i have a attribute in task wi that is Timespent . if timespent is not null means if it contains any values, status should change inprogress automatically . is it possible ?
i use below script but it doesn't work
dojo.provide("com.example.Condition");
dojo.require("com.ibm.team.workitem.api.common.Severity");
dojo.require("com.ibm.team.workitem.api.common.Status");
(function() {
dojo.declare("com.example.Condition", null, {
getValue: function(attributeId, workItem, configuration) {
var Status1 = com.ibm.team.workitem.api.common.Status;
var timespent1 = workItem.getValue(WorkItemAttributes.TIME_SPENT);
if(timespent1!= null)
return new Status1("Start working");
}
});
})();
please suggest me the solution.
|
One answer
It seems you attempt to use attribute customization scripts. These can only be used for calculating attribute values or validation attributes. Work item state is not simply an attribute value you could modiy like this.
|
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.