It's all about the answers!

Ask a question

How to fetch work item based on Project area, Team area and Planned for attributes ?


Navin R S (13512) | asked Aug 17 '17, 6:30 a.m.

Hello Team,

How to fetch work item based on Project area, Team area and Planned for using Java API?
I am trying to fetch work items based on Project area, Team area and Planned for attributes

Below is the code snippet used to fetch work items based on Project area and Work Item type.

    Term term = new Term(Operator.AND);
    term.add(prjAreaExpression);
    term.add(workItemTypeExpression);
    term.add(workItemModifiedExpression);
 

    IQueryResult<IResolvedResult<IWorkItem>> queryResult =
        queryClient.getResolvedExpressionResults(projectArea, term, IWorkItem.FULL_PROFILE);


Can anyone please tell me how to do this.

Thank you.

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Aug 18 '17, 3:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

See https://rsjazz.wordpress.com/2012/11/19/using-expressions-for-automation/ for some more details. Basically you have to create query-able attributes and expressions and hook them together.

Your answer


Register or to post your answer.