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

I want to get the work items resolved on specific date and time using RTC query.

 Hello, 

I want to fetch the ALM workitems resolved on a specific date and time using RTC query.
But when I am querying, I am getting the query result only based on the Date value. Time is ignored. 

Kindly provide your insights on fetching ALM workitems resolved on a specific date and time using RTC query. 

Please find below sample code snippet used for querying. 

java.sql.Timestamp timestampTill = new java.sql.Timestamp(calendar.getTime().getTime());


IQueryableAttribute resolutionDateAttribute = QueryableAttributes.getFactory(IWorkItem.ITEM_TYPE)
        .findAttribute(projectArea, IWorkItem.RESOLUTION_DATE_PROPERTY, iauditableCommon, progressMonitor);

Expression resDateTillExp = new AttributeExpression(resolutionDateAttribute, AttributeOperation.BEFORE, timestampTill);

Term queryTerm = new Term(Term.Operator.AND);
queryTerm.add(resDateTillExp);

queryResult = queryClient.getResolvedExpressionResults(projectArea, queryTerm, IWorkItem.FULL_PROFILE);


Please let me know if there is any other ways we can fetch the workitems based on Date and time value.


Thanks in advance,
Sneha Bhaskar

0 votes



One answer

Permanent link

 I'd suggest to build the query in the Tool UI. Once you have that, you should have all information needed to create it as query/expression.

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
× 12,019

Question asked: Sep 26 '23, 1:06 a.m.

Question was seen: 764 times

Last updated: Sep 26 '23, 1:51 a.m.

Confirmation Cancel Confirm