Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

how to set owned by in attribute customization?

 How to set owned by value same the person modifying the status of the defect =Resolved?
Currently the example customization need to identify the id of the owner , but i wanted it dependent on who is currenly changing the defect status, no predefined value. Is this possible?  I tried this but didnt work

dojo.provide("com.acme.providers.script.OwnedByAutoAssign");

dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");

(function() {
var scriptname = "OwnedByAutoAssign";
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;

var OwnedByAutoAssign= dojo.declare("org.example.OwnedByAutoAssign", null, {

    getValue: function(attributeId, workItem, configuration) {
        if (workItem.getValue(WorkItemAttributes.TYPE) === "defect" && workItem.getValue(WorkItemAttributes.STATE) === "3")  {
            return workItem.getValue(WorkItemAttributes.MODIFIED_BY);
        } else {
            return workItem.getValue(WorkItemAttributes.OWNER);
        }
    }
});
})();

0 votes



2 answers

Permanent link
According to previous discussion, you have one way to do it, but only in the Web GUI.
https://jazz.net/forum/questions/133477/work-item-customization-getting-current-user-as-logged-in-user

0 votes


Permanent link
Any other suggestion how I can do this?

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 152

Question asked: Apr 04 '16, 2:27 p.m.

Question was seen: 3,282 times

Last updated: Apr 13 '16, 1:50 p.m.

Confirmation Cancel Confirm