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

How can I use REST API to find work items that do not have a parent?

I'm trying to use REST to find "orphaned" task work items - that is tasks that do not have a parent story or defect. There are two parts to the problem.

1) I tried adding a filter query on parent/id but it's not queryable. I also just tried "parent" but get "unsupported type name" error. Is there some other way that I can filter based on parent?

2) Assuming there is a way to filter on parent, there's a more general question: How do I use REST API to detect that a field is empty/null/not set?

0 votes



One answer

Permanent link
I don't think you can test empty/null/nonexistence when using the REST API.

If you do not have to use the REST API, a simple work item query should suffice. Just set the condition to (Parent do not exist) & (Type is Task). If you need to do some post-processing using some kind of script, you can download the result set as a CSV file.

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,023
× 12
× 9
× 1

Question asked: Jun 24 '16, 3:08 p.m.

Question was seen: 2,975 times

Last updated: Jun 26 '16, 8:29 p.m.

Confirmation Cancel Confirm