Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Error while opening a custom workitem type

I am seeing the following error when opening an custom workitem type ...

Error running operation 'Loading Work Item'
Reason:
No editor layout defined! At least the default editor: 'com.ibm.team.workitem.editor.default' has to be defined in the process specification!

Usage:
I have created 2 custom workitem types called Customer & Defect and have custom attributes for those types. I have 2 custom editor elements for presentation which bind to the above mentioned types. I do not have a default editor. I use the ClearQuest connector to sync the users, Project and Defect from CQ to Jazz. The data has synchronized correctly and I see the data when I run a query to list all the workitems. Now when I try to open the workitem, it gives me the above error.

Note: If I create the Defect custom workitem type manually (by right clicking on Work Items->New->Work Item and selecting the Defect type), I can open the saved Defect workitem using the editor that was bound to the type.

Seems like the link between the type and editor is lost/not set when synce'd using CQ connector. Any ideas?

Shashi

0 votes



6 answers

Permanent link
You can then bind an editor structure to a certain Work Item type.
<configuration-data id="com.ibm.team.workitem.editor.configuration.workitemTypeEditorIdBinding"
xmlns="http://com.ibm.team.workitem.editor/workitemTypeEditorIdBinding">
<workitemTypeEditorIdBinding
workitemType="com.ibm.team.workitem.extension.workItemType.ticket"
editorId="com.ibm.team.workitem.editor.extension.ticket" />
</configuration-data>

Here are the links:
https://jazz.net/learn/LearnItem.jsp?href=content/docs/work-items/index.html
https://jazz.net/wiki/bin/view/Main/WorkItemCustomizableEditorDesign

Lorelei

0 votes


Permanent link
As mentioned in my previous message I have already done the binding of the editor to the workitem type. Below I have pasted part of the process spec...

<configuration-data xmlns="http://com.ibm.team.workitem/workitemTypes" id="com.ibm.team.workitem.configuration.workItemTypes">
<type id="com.ibm.team.workitem.extension.cq.workitemType.Customer" name="Customer" category="com.ibm.team.workitem.extension.cq.workitemType.Customer" icon="platform:/plugin/com.ibm.team.workitem.common/icons/obj16/wi_task.gif" dimmedicon="platform:/plugin/com.ibm.team.workitem.common/icons/obj16/wi_task_dim.gif"/>
<customAttributes category="com.ibm.team.workitem.extension.cq.workitemType.Customer">
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.dbid" name="dbid" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.is_active" name="is_active" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.version" name="version" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.lock_version" name="lock_version" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.locked_by" name="locked_by" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.record_type" name="record_type" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Name" name="Name" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Phone" name="Phone" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Fax" name="Fax" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Email" name="Email" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.CallTrackingID" name="CallTrackingID" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Description" name="Description" type="string"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Company" name="Company" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.PreferredContact" type="com.ibm.team.workitem.extension.cq.attribute.PreferredContact" name="PreferredContact"/>
</customAttributes>
<type id="com.ibm.team.workitem.extension.cq.workitemType.Defect" name="Defect" category="com.ibm.team.workitem.extension.cq.workitemType.Defect" icon="platform:/plugin/com.ibm.team.workitem.common/icons/obj16/wi_bug.gif" dimmedicon="platform:/plugin/com.ibm.team.workitem.common/icons/obj16/wi_bug_dim.gif"/>
<customAttributes category="com.ibm.team.workitem.extension.cq.workitemType.Defect">
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.record_type" name="record_type" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.dbid" name="dbid" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.is_active" name="is_active" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.id" name="id" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.State" name="State" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.version" name="version" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.lock_version" name="lock_version" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.locked_by" name="locked_by" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.is_duplicate" name="is_duplicate" type="integer"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.unduplicate_state" name="unduplicate_state" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Headline" name="Headline" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Description" name="Description" type="string"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Priority" type="com.ibm.team.workitem.extension.cq.attribute.Priority" name="Priority"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Severity" type="com.ibm.team.workitem.extension.cq.attribute.Severity" name="Severity"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Submit_Date" name="Submit_Date" type="timestamp"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.old_id" name="old_id" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Keywords" type="com.ibm.team.workitem.extension.cq.attribute.Keywords" name="Keywords"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Symptoms" type="com.ibm.team.workitem.extension.cq.attribute.Symptoms" name="Symptoms"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Note_Entry" name="Note_Entry" type="string"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Notes_Log" name="Notes_Log" type="string"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Resolution_Statetype" name="Resolution_Statetype" type="smallString"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.Resolution" type="com.ibm.team.workitem.extension.cq.attribute.Resolution" name="Resolution"/>
<customAttribute id="com.ibm.team.workitem.extension.cq.attribute.customer_severity" type="com.ibm.team.workitem.extension.cq.attribute.customer_severity" name="customer_severity"/>
</customAttributes>
</configuration-data>

<configuration-data xmlns="http://com.ibm.team.workitem.editor/presentations" id="com.ibm.team.workitem.editor.configuration.presentations">
<editor id="com.ibm.team.workitem.extension.cq.editor.Customer">
<tab tabId="com.ibm.team.workitem.extension.cq.tab.Customer.&Customer" title="&Customer"/>
</editor>
<tab id="com.ibm.team.workitem.extension.cq.tab.Customer.&Customer" layout="builtInCustomAttributesLayout">
<section title="Details" sectionId="com.ibm.team.workitem.section.Customer.&Customer.details" slot="left"/>
</tab>
<section id="com.ibm.team.workitem.section.Customer.&Customer.details">
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.CallTrackingID"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Name"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Company"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Email"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Phone"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Fax"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Description"/>
<presentation id="com.ibm.team.workitem.presentation.attachments" kind="com.ibm.team.workitem.kind.internal.attachments"/>
</section>
<editor id="com.ibm.team.workitem.extension.cq.editor.Defect_Base">
<tab tabId="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Main" title="&Main"/>
<tab tabId="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Notes" title="&Notes"/>
<tab tabId="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Resolution" title="&Resolution"/>
<tab tabId="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Attachments" title="&Attachments"/>
<tab tabId="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&History" title="&History"/>
<tab tabId="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Customer" title="&Customer"/>
</editor>
<tab id="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Main" layout="builtInCustomAttributesLayout">
<section title="Details" sectionId="com.ibm.team.workitem.section.Defect_Base.&Main.details" slot="left"/>
</tab>
<section id="com.ibm.team.workitem.section.Defect_Base.&Main.details">
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Headline"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Keywords"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Severity"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Priority"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Owner"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Symptoms"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Description"/>
</section>
<tab id="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Notes" layout="builtInCustomAttributesLayout">
<section title="Details" sectionId="com.ibm.team.workitem.section.Defect_Base.&Notes.details" slot="right"/>
</tab>
<section id="com.ibm.team.workitem.section.Defect_Base.&Notes.details">
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Note_Entry"/>
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Notes_Log"/>
</section>
<tab id="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Resolution" layout="builtInCustomAttributesLayout">
<section title="Details" sectionId="com.ibm.team.workitem.section.Defect_Base.&Resolution.details" slot="left"/>
</tab>
<section id="com.ibm.team.workitem.section.Defect_Base.&Resolution.details">
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.Resolution"/>
</section>
<tab id="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Attachments" layout="builtInCustomAttributesLayout">
<section title="Details" sectionId="com.ibm.team.workitem.section.Defect_Base.&Attachments.details" slot="right"/>
</tab>
<section id="com.ibm.team.workitem.section.Defect_Base.&Attachments.details">
<presentation id="com.ibm.team.workitem.presentation.attachments" kind="com.ibm.team.workitem.kind.internal.attachments"/>
</section>
<tab id="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&History" layout="builtInHistoryLayout">
<section title="Details" sectionId="com.ibm.team.workitem.section.Defect_Base.&History.details" slot="left"/>
</tab>
<section id="com.ibm.team.workitem.section.Defect_Base.&History.details">
<presentation id="com.ibm.team.workitem.presentation.history" kind="com.ibm.team.workitem.kind.internal.history"/>
</section>
<tab id="com.ibm.team.workitem.extension.cq.tab.Defect_Base.&Customer" layout="builtInCustomAttributesLayout">
<section title="Details" sectionId="com.ibm.team.workitem.section.Defect_Base.&Customer.details" slot="left"/>
</tab>
<section id="com.ibm.team.workitem.section.Defect_Base.&Customer.details">
<presentation attributeId="com.ibm.team.workitem.extension.cq.attribute.customer_severity"/>
</section>
</configuration-data>

<configuration-data xmlns="http://com.ibm.team.workitem.editor/workitemTypeEditorIdBinding" id="com.ibm.team.workitem.editor.configuration.workitemTypeEditorIdBinding">
<workitemTypeEditorIdBinding workitemType="com.ibm.team.workitem.extension.cq.workitemType.Customer" editorId="com.ibm.team.workitem.extension.cq.editor.Customer"/>
<workitemTypeEditorIdBinding workitemType="com.ibm.team.workitem.extension.cq.workitemType.Defect" editorId="com.ibm.team.workitem.extension.cq.editor.Defect_Base"/>
</configuration-data>

0 votes


Permanent link
Now I understand the problem. I created a new work item, https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=46177.

Lorelei

0 votes


Permanent link
Now I understand the problem. I created a new work item, https://jazz.net/jazz/web/projects/Jazz%20Project#action=com.ibm.team.workitem.viewWorkItem&id=46177.

Lorelei

0 votes


Permanent link
Shashi,

Can you provide me the the Type property mapping for your Defect sync rule or Customer sync rule?

Lorelei

0 votes


Permanent link
Thanks Lorelei.

I did not have the property mapping for the defect or customer type. After I added this mapping, I am able to open the custom workitem type.

Shashi

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

Question asked: Feb 28 '08, 10:56 a.m.

Question was seen: 6,052 times

Last updated: Feb 28 '08, 10:56 a.m.

Confirmation Cancel Confirm