getting value from an enum of Workitem through Plain Java Library
Hi,
I looked at the Manipulating Work Item Enumeration Values. But it gives me an error at the method getIdentifier2() of ILiteral all the time. I tried 3.x version and even 4.x But no luck. It is quite urgent. Please help me.
Thanks.
I looked at the Manipulating Work Item Enumeration Values. But it gives me an error at the method getIdentifier2() of ILiteral all the time. I tried 3.x version and even 4.x But no luck. It is quite urgent. Please help me.
Thanks.
private ILiteral getLiteralbyID(Identifier findLliteralID, IAttributeHandle iAttribute) throws TeamRepositoryException { IWorkItemClient workItemClient = (IWorkItemClient) teamRepository().getClientLibrary(IWorkItemClient.class); IEnumeration enumeration = workItemClient.resolveEnumeration(iAttribute, null); List literals = enumeration.getEnumerationLiterals(); for (Iterator iterator = literals.iterator(); iterator.hasNext();) { ILiteral iLiteral = (ILiteral) iterator.next(); if (iLiteral.getIdentifier2().equals(findLliteralID)) { return iLiteral; } } return null; }