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

workitem type

I am coding for external repository manager.Can someone help to get work item type through code .

Thanks

0 votes



3 answers

Permanent link
I am coding for external repository manager.Can someone help to get
work item type through code .

You find the related methods in IWorkItemClient/IWorkItemCommon, e.g.

IWorkItemClient#findWorkItemTypes(projectArea, monitor)

--
Regards,
Patrick
Jazz Work Item Team

0 votes


Permanent link
Thanx for quick reply but i could see that my method i need is workItem.getWorkItemType(); and since my application is jazz server extension i couldnt get how to get reference for IWorkitem.

0 votes


Permanent link
What you want to do violates the intended use of an external repository manager in the Item Connector framework. An external repository manager is fed data that has already been transformed into the domain of the external system. The manager just has to apply the data. It should neither know nor care what the source of the data was. Synchronization rules define how the data is transformed between the external domain and the Jazz domain.

For example, here is how the mapping between work item types and CQ record types works for the CQ Connector. Let's say you have a work item type named "Defect". That will be one of the possible values for the "Type" property of a work item. In CQ, the corresponding field name is "record_type". Let's say that the CQ schema has a record type named "BugReport" that you want to connect to Defect work items. You would create a synchronization rule that says that "Type" maps to "record_type", and the value "Defect" maps to "BugReport". Then, when a Defect work item is synchronized out to CQ, the external repository manager will receive data for the CQ record that includes the property "record_type", with value "BugReport". Hence, it has no need to know what the work item type was.

Can you explain why you think you need to determine the work item type?

John
Jazz ClearQuest Connector Team

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
× 10,959

Question asked: Dec 04 '08, 7:37 a.m.

Question was seen: 6,344 times

Last updated: Dec 04 '08, 7:37 a.m.

Confirmation Cancel Confirm