It's all about the answers!

Ask a question

Required Properties not working??


Susan Hanson (1.6k2201194) | asked Sep 12 '12, 1:38 a.m.
We are having issues in one specific project area

We have 3 project areas on 2 different repositories:
Test on production server
Prod on production server
LittleProd on test server

The Prod and LittleProd configuration are kept in-sync (manually) by copy/paste of the configuration source XML.

I have configured "Required Properties" for a Defect work item (Summary for example), in all 3 project areas.
Test on production server and LittleProd on test server .. .this works as expected ... asterisk next to field in editor, error message if not filled in.

But on Prod on production server, I get nothing... no asterisk, no error, and it lets you create the work item regardless.  We've double-checked the process configuration source and cannot figure out why this is happening.  It also doesn't matter if the person is an Admin or not, we've also confirmed that a non-admin also is allowed to create one without required properties.


Here is a snippet of the xml source for the precondition:
        <behavior>
            <role id="default">
                <operation id="com.ibm.team.workitem.operation.workItemSave">
                    <preconditions>
                        <precondition xmlns="http://com.ibm.team.workitem/requiredProperties" description="Work items must be Filed Against a specific category and a Summary must be provided so that the team can quickly evaluate who is responsible for the issue." id="com.ibm.team.workitem.advisor.requiredProperties" name="Required Properties">
                            <properties workItemTypeCategory="com.ibm.team.workitem.workItemType">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                                <property id="com.ibm.team.workitem.attribute.category"/>
                            </properties>
                            <properties workItemTypeCategory="com.ibm.team.workitem.cmvctask">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                                <property id="com.ibm.team.workitem.attribute.category"/>
                            </properties>
                            <properties workItemType="com.ibm.team.workitem.workItemType.retrospective">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                                <property id="com.ibm.team.workitem.attribute.category"/>
                            </properties>
                            <properties workItemType="com.ibm.team.apt.workItemType.story"/>
                            <properties workItemType="feature"/>
                            <properties workItemType="story-persona">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                            </properties>
                            <properties workItemTypeCategory="ReleaseNote">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                                <property id="targetrelease"/>
                            </properties>
                            <properties workItemTypeCategory="com.ibm.team.workitem.worktype.RiskIssue">
                                <property id="targetrelease"/>
                            </properties>
                            <properties workItemTypeCategory="Story-Persona">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                                <property id="targetrelease"/>
                            </properties>
                            <properties workItemTypeCategory="com.ibm.team.workitem.workItemType.retrospective">
                                <property id="targetrelease"/>
                            </properties>
                            <properties workItemTypeCategory="com.ibm.ws.webam.workItemType.feature">
                                <property id="poc"/>
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                            </properties>
                            <properties workItemTypeCategory="com.ibm.team.workitem.workItemType.story">
                                <property id="targetrelease"/>
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                            </properties>
                            <properties workItemTypeCategory="com.ibm.team.workItem.workitemType.epic">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                            </properties>
                            <properties workItemTypeCategory="design_issue">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                            </properties>
                            <properties workItemTypeCategory="com.ibm.team.workitem.workItemType.defect">
                                <property id="targetrelease"/>
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                            </properties>
                            <workflowProperties stateId="ReleaseNoteWorkflow.state.s2" workItemTypeCategory="ReleaseNote">
                                <property id="rn-resolution"/>
                                <property id="RN-problem"/>
                                <property id="rn-fixbeforeega"/>
                                <property id="rncategory"/>
                                <property id="edition"/>
                            </workflowProperties>
                            <properties workItemTypeCategory="com.ibm.team.workitem.workItemType.cmvcdefect">
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                                <property id="targetrelease"/>
                            </properties>
                        </precondition>


As you can see, our defect is supposed to have 2 required attributes:
                            <properties workItemTypeCategory="com.ibm.team.workitem.workItemType.defect">
                                <property id="targetrelease"/>
                                <property id="com.ibm.team.workitem.attribute.summary"/>
                            </properties>

But I have no asterisk and dont' have to fill in either, and it still allows a save.

HELP!!
Susan

One answer



permanent link
sam detweiler (12.5k6195201) | answered Sep 13 '12, 7:00 a.m.
just for grins, using the Process config UI editor, turn off the required field advisor, then turn it back on.
does that work?

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.