It's all about the answers!

Ask a question

how can i get subcategories from a selected category attribute in filed against using java api


Nikhil Raut (114) | asked Mar 13 '23, 1:24 a.m.

 how to fetch subcategories from a selected category attribute in filed against using java api

One answer



permanent link
Luca Martinucci (1.0k396112) | answered Mar 13 '23, 3:25 a.m.

Provided that you know the process (i.e. either project or team) area associated to the category, you could use the method findCategoriesOfProcessArea of the plain Java API.

According to the plain Java API reference, it "finds all categories which are associated with the given process area. Sub-categories which have no explicit team area association inherit the team area from their parent and are therefore included as well."


Comments
Nikhil Raut commented Mar 13 '23, 6:23 a.m.

I want to fetch all sub categories which are there in a Parent category.


for example:

Parent Category
-> child category 1
-> child category 2


Luca Martinucci commented Mar 14 '23, 3:10 a.m. | edited Mar 14 '23, 3:11 a.m.

As a category is associated to a process area, if you know the process area of a category and you retrieve all categories of that area, you have all children categories of the parent category.

Your answer


Register or 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.