It's all about the answers!

Ask a question

How to show default resolution upon workitem submission?


Mohanraj Ragupathi (54520) | asked Mar 07 '16, 5:50 a.m.
 We are using RTC 502 and have "Defect" workitem states "Draft"<== "Analysis" ==> "Implementation" ==> "Integration" ==> "Validation" ==> "Done".
The process template is enabled to show resolution "Duplicate" / "Reject" / "Fixed" values in the following states "Implementation" ==> "Integration" ==> "Validation" ==> "Done".

Now the customer wants to make it uniform and show "None" in "Draft" and "Analysis" state. Along with that, upon Defect submission, they want to show "None". So that the other person can see the resolution as "None" in "Analysis" and "Draft" by default (not selectable by user).

When I move the defect from "Analysis" ==> "Draft", it is showing "None" without any issue. But when I submit a new defect, the "Resolution" field is always "blank", though I "enabled" to show "Resolution" in all these three actions.

What could be the issue?

3 answers



permanent link
sam detweiler (12.5k6195201) | answered Mar 07 '16, 7:32 a.m.
the resolution is not initialized to None when a workitem is created.  it is only set on the state changes where resolution would be used

Comments
Mohanraj Ragupathi commented Mar 07 '16, 9:33 a.m. | edited unknown

  Once it is submitted, it will be in "Analyze" state and the resolution should be visible in this state which is nothing but "None". Why it is not happening?


Mohanraj Ragupathi commented Mar 07 '16, 9:34 a.m.

  Once it is submitted, it will be in "Analyze" state and the resolution should be visible in this state which is nothing but "None". Why it is not happening?


sam detweiler commented Mar 07 '16, 9:47 a.m.

is 'Analyze' in a closed state group? If not, resolution does not apply.


Mohanraj Ragupathi commented Mar 09 '16, 5:47 a.m.

 'Analyze" is in Open state group. But we have option to select "Resolution' in "Initialize" action. And the same can be displayed in "Analysis" state using "Show resolution". Both are selected. 

FYI: when we move the defect from "Analysis" to "Draft" state using "Set Draft" action, we are able to see "None" and upon save and after save we are able to see "None" in "resolution field" Here "Draft" is also configured in "Open" state group.


permanent link
Mohanraj Ragupathi (54520) | answered Mar 10 '16, 5:16 a.m.
edited Mar 24 '16, 3:08 a.m.
 Finally I found a solution using "dojo"script. Inside "Attribute Customization" under "Calculated Values", I have added the below script. Then this "calculated value" is selected in "Resolution" field of the "Defect" workitem. Now it is working fine.

dojo.provide("com.visteon.workitem.resolutionrestore");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
debug=true;
console.log("im here");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("com.visteon.workitem.resolutionrestore", null, {
  getValue: function(attributeId, workItem, configuration)
  {
  var workitemstate = workItem.getLabel(WorkItemAttributes.STATE);
  var Resolution_Val= workItem.getValue(WorkItemAttributes.RESOLUTION);
// console.log("worktem state is " + workitemstate);       
// console.log("worktem Resolution_Val is " + Resolution_Val);       
           var type= workItem.getValue(WorkItemAttributes.TYPE);

if(type == "defect")
{

   if((workitemstate == ""))
   {
   Resolution_Val = "0";  
          }

     return Resolution_Val;

}

  }
  
});
})(); 

permanent link
Mohanraj Ragupathi (54520) | answered Apr 25 '16, 11:22 a.m.
 Even in this case, customer or engineer who ever submit the defect they are not able to see the resolution. Only after closing the defect window and reopen the window, they are able to see the resolution. This is not acceptable by the customer.

Comments
Donald Nong commented Apr 25 '16, 9:33 p.m.

You can claim "not acceptable" for whatever reason. But what is the requirement? Does the customer want to submit a defect with a closed/resolved state straightaway? If true, that is quite bizarre.

Your answer


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