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

[plain java] Adding Timesheetentry to query?

I want to use Plain Java API query workitems with Timesheetentry.

I used the following source, but it not work.(error).

source:

  String strTimesheet = ModelPackage.eINSTANCE.getTimeSheetEntry().getName();
  IQueryableAttribute timesheetAttribute= queryableAttributeFactory.findAttribute(projectArea, strTimesheet, auditableClient, progressMonitor);
  AttributeExpression timesheetExpression= new AttributeExpression(timesheetAttribute, AttributeOperation.EXISTS, projectArea);
  expression.add(timesheetExpression);

I think that Timetracking(TimeSheetEntry) is not an attribute? How to do it? Could anyone help me to resolve it?

0 votes


Accepted answer

Permanent link
No it isn't it is a different object with a relationship. See https://rsjazz.wordpress.com/2015/03/31/the-work-item-time-tracking-api/ . I haven't tried to use these in queries, so you will have to find this out on your own. I have not been very successful with queries across relationships. A lot of questions you would like to ask lack a query mechanism that would allow to answer them.
guoping chen selected this answer as the correct answer

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,940
× 1,700

Question asked: May 09 '16, 9:12 p.m.

Question was seen: 2,477 times

Last updated: May 10 '16, 2:28 a.m.

Confirmation Cancel Confirm