It's all about the answers!

Ask a question

IEndPointDescriptor without using deprecated INSTANCE


Lukas Steiger (3131625) | asked Jan 03 '19, 4:04 a.m.
edited Jan 03 '19, 4:07 a.m.

Dear Jazz API experts, 


If I want to get an endpoint of a built-in link type, I could either do it like this (where INSTANCE is deprecated)
IEndPointDescriptor parentEndpoint = ILinkTypeRegistry.INSTANCE.getLinkType("com.ibm.team.workitem.linktype.parentworkitem").getTargetEndPointDescriptor();
or like this (which uses INSTANCE internally:
WorkItemEndPoints.PARENT_WORK_ITEM
I'm using a custom link type, so I have to stick with
IEndPointDescriptor myEndpoint = ILinkTypeRegistry.INSTANCE.getLinkType("com.my.company.linktype.mycustomlink").getTargetEndPointDescriptor();
Is there a way to get the EndpointDescriptor without using a deprecated API?

Happy new year to all of you and thanks in advance for your help,
Lukas

Be the first one to answer this question!


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.