It's all about the answers!

Ask a question

Unable to modify constraint date even when constraint type is set as "Start not earlier than" or "Finish not later than"


Aradhya K (1.4k54345) | asked Jun 06 '12, 11:01 a.m.
JAZZ DEVELOPER

In a formal project open a sprint backlog plan. For an existing or new work item change the constraint type to SNET or FNLT. This action should set the Constraint Date editable. But instead a error is shown in the UI and the Constraint Date field does not get editable.Below is the error.

TypeError: this.getPlanModel().findAttribute(_17) is null

([object Object])@https://localhost:9443/ccm/web/_js/?exclude=A&include=com.ibm.team.apt.web.ui.internal.page.PlanningPageMain.js~com.ibm.team.apt.web.ui.internal.page.PlanningSearchProvider.js~com.ibm.team.dashboard.web.ui.internal.SearchProvider.js~com.ibm.team.scm.web.ui.internal.view.search.ScmSearchProvider.js~com.ibm.team.workitem.web.ui.internal.page.SearchProvider.js&_proxyURL=%2Fccm&locale=zh:1251

([object Object])@https://localhost:9443/ccm/web/_js/?exclude=A&include=com.ibm.team.apt.web.ui.internal.page.PlanningPageMain.js~com.ibm.team.apt.web.ui.internal.page.PlanningSearchProvider.js~com.ibm.team.dashboard.web.ui.internal.SearchProvider.js~com.ibm.team.scm.web.ui.internal.view.search.ScmSearchProvider.js~com.ibm.team.workitem.web.ui.internal.page.SearchProvider.js&_proxyURL=%2Fccm&locale=zh:6895

([object Object])@https://localhost:9443/ccm/web/_js/?exclude=A&include=com.ibm.team.apt.web.ui.internal.page.PlanningPageMain.js~com.ibm.team.apt.web.ui.internal.page.PlanningSearchProvider.js~com.ibm.team.dashboard.web.ui.internal.SearchProvider.js~com.ibm.team.scm.web.ui.internal.view.search.ScmSearchProvider.js~com.ibm.team.workitem.web.ui.internal.page.SearchProvider.js&_proxyURL=%2Fccm&locale=zh:6698

([object Object])@https://localhost:9443/ccm/web/_js/?exclude=A&include=com.ibm.team.apt.web.ui.internal.page.PlanningPageMain.js~com.ibm.team.apt.web.ui.internal.page.PlanningSearchProvider.js~com.ibm.team.dashboard.web.ui.internal.SearchProvider.js~com.ibm.team.scm.web.ui.internal.view.search.ScmSearchProvider.js~com.ibm.team.workitem.web.ui.internal.page.SearchProvider.js&_proxyURL=%2Fccm&locale=zh:3800

([object Object])@https://localhost:9443/ccm/web/_js/?include=A~&etag=CR3LnUhJu_zh:17

((function () {return _67.apply(_66, arguments || []);}))@https://localhost:9443/ccm/web/_js/?exclude=A&include=com.ibm.team.apt.web.ui.internal.page.PlanningPageMain.js~com.ibm.team.apt.web.ui.internal.page.PlanningSearchProvider.js~com.ibm.team.dashboard.web.ui.internal.SearchProvider.js~com.ibm.team.scm.web.ui.internal.view.search.ScmSearchProvider.js~com.ibm.team.workitem.web.ui.internal.page.SearchProvider.js&_proxyURL=%2Fccm&locale=zh:1872

([object Object],[object Array],[object Object])@https://localhost:9443/ccm/web/_js/?exclude=A&include=com.ibm.team.apt.web.ui.internal.page.PlanningPageMain.js~com.ibm.team.apt.web.ui.internal.page.PlanningSearchProvider.js~com.ibm.team.dashboard.web.ui.internal.SearchProvider.js~com.ibm.team.scm.web.ui.internal.view.search.ScmSearchProvider.js~com.ibm.team.workitem.web.ui.internal.page.SearchProvider.js&_proxyURL=%2Fccm&locale=zh:3795

([object Object],[object Object],[object Array],[object Object],[object Array])@https://localhost:9443/ccm/web/_js/?exclude=A&include=com.ibm.team.apt.web.ui.internal.page.PlanningPageMain.js~com.ibm.team.apt.web.ui.internal.page.PlanningSearchProvider.js~com.ibm.team.dashboard.web.ui.internal.SearchProvider.js~com.ibm.team.scm.web.ui.internal.view.search.ScmSearchProvider.js~com.ibm.team.workitem.web.ui.internal.page.SearchProvider.js&_proxyURL=%2Fccm&locale=zh:2077

()@https://localhost:9443/ccm/web/_js/?exclude=A&include=com.ibm.team.apt.web.ui.internal.page.PlanningPageMain.js~com.ibm.team.apt.web.ui.internal.page.PlanningSearchProvider.js~com.ibm.team.dashboard.web.ui.internal.SearchProvider.js~com.ibm.team.scm.web.ui.internal.view.search.ScmSearchProvider.js~com.ibm.team.workitem.web.ui.internal.page.SearchProvider.js&_proxyURL=%2Fccm&locale=zh:2033

()@https://localhost:9443/ccm/web/_js/?include=A~&etag=CR3LnUhJu_zh:17

Accepted answer


permanent link
Aradhya K (1.4k54345) | answered Jun 06 '12, 11:08 a.m.
JAZZ DEVELOPER
The error means the plan is not able to get to the constraint type customer attribute for the work item.
Check that the Constraint Type customer attribute in the process spec is not tampered. The attribute ID should be 
com.ibm.team.apt.attribute.constrainttype.
Then check the Planning --> Plan Attributes settings.
Make sure that the complexity attribute is not set to Constraint Type.
Also check that the attribute mapping is
<attribute id="com.ibm.team.apt.attribute.planitem.constraintType" implementation="com.ibm.team.apt.client.WorkItemAttribute" internal="false" name="约束类型" readOnly="false" type="ENUMERATION">
        <parameters>
            <parameter key="attribute" value="com.ibm.team.apt.attribute.constrainttype"/>
        </parameters>
    </attribute>
The main point is for the mapping the ID should be com.ibm.team.apt.attribute.planitem.constraintType.
And the custom attribute ID should be com.ibm.team.apt.attribute.constrainttype.
Spencer Murata selected this answer as the correct answer

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.