It's all about the answers!

Ask a question

How to gel all the project area list within an Advisor

Kurtulus YILDIRIM (681119) | asked Oct 12 '16, 9:38 a.m.
I am trying to develop a operation advisor that will check workitem status in a different project area. The problem is I need to search that project area every time my advisor works. I already found IProjectArea.findProcessArea method but it works in client side so I can not use it in an advisor.
Thank you.

Accepted answer

permanent link
Ralph Schoon (63.2k33646) | answered Oct 12 '16, 10:06 a.m.
edited Oct 12 '16, 11:23 a.m.
I used and there where some promising hits.

I'd try and and see f that is server API. You can definitely seems to do the trick. Note, it implements which has most of the API you want.
Kurtulus YILDIRIM selected this answer as the correct answer

Kurtulus YILDIRIM commented Oct 13 '16, 12:56 a.m.

As I understand, I need to have full project name but I have only first 6 character which is a unique id for project name.

Kurtulus YILDIRIM commented Oct 13 '16, 4:12 a.m.

I solved it.
                IProcessServerService processService = getService(IProcessServerService.class);

                IContributorHandle user = this.getAuthenticatedContributor();
                IRepositoryItemService itemService = getService(IRepositoryItemService.class);              
                IContributor loggeduser = (IContributor) itemService.fetchItem(user, null);
                IProcessArea[] userProjects= processService.findProcessAreas(loggeduser, null, null);

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.