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

How to Create Expression for Field Against attribute using Java API

Exception in thread "main" java.lang.IllegalArgumentException: Argument must be an instance of IAuditableHandle
    at com.ibm.team.workitem.common.internal.model.SetAttributeType.toString(SetAttributeType.java)
    at com.ibm.team.workitem.common.internal.expression.AttributeValueFactory$ConstantValue.saveState(AttributeValueFactory.java)
    at com.ibm.team.workitem.common.expression.AttributeExpression.saveValueProxy(AttributeExpression.java)
    at com.ibm.team.workitem.common.expression.AttributeExpression.saveState(AttributeExpression.java)
    at com.ibm.team.workitem.common.expression.Term.saveState(Term.java)
    at com.ibm.team.workitem.common.internal.expression.XMLExpressionSerializer.serialize(XMLExpressionSerializer.java)
    at com.ibm.team.workitem.common.internal.expression.XMLExpressionSerializer.serialize(XMLExpressionSerializer.java)
    at com.ibm.team.workitem.common.internal.query.impl.QueryDescriptorCustomImpl.setExpression(QueryDescriptorCustomImpl.java)
    at com.ibm.team.workitem.common.internal.query.impl.QueryDescriptorCustomImpl.setExpression(QueryDescriptorCustomImpl.java)
    at com.ibm.team.workitem.common.internal.query.QueryCommon.createQuery(QueryCommon.java)
    at com.ibm.team.workitem.common.internal.query.QueryCommon.getResolvedExpressionResults(QueryCommon.java)

0 votes



One answer

Permanent link

See https://jazz.net/forum/questions/244541/how-to-create-expression-for-planned-for-attribute-using-java-api/244553

Also on of the examples of questions that fall into the "to be ignored" category based on the lack of useful information in the question. Learn here: How should I ask a question in the Forum if I want to receive useful answers?

0 votes

Comments

It is basically the same problem and same approaches apply. You can't pass a string, you have to find the category. Tons of examples for this kind of stuff here: https://rsjazz.wordpress.com/

You can also  use Google on this site. This question has been answered before here.

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
× 7,495
× 6,121
× 1,700

Question asked: Nov 24 '17, 5:03 a.m.

Question was seen: 3,019 times

Last updated: Nov 24 '17, 5:23 a.m.

Confirmation Cancel Confirm