How do check if a work item exists

Description
johnj
Posts: 1
Joined: Wed Aug 02, 2017 4:23 pm

How do check if a work item exists

Postby johnj » Wed Aug 02, 2017 4:34 pm

Hello,

I am new bie, I would like to know how to check if a given Work Item exists in the system using Wiki page. In our case, some of the work items got deleted from the referenced documents. Our wiki reporting is not working and the report generation hangs because of the deleted work item.

Any advice and suggestions will be greatly appreciated ...

Regards,
- Jijo

soukupm
Posts: 6
Joined: Tue Mar 26, 2013 3:32 pm

Re: How do check if a work item exists

Postby soukupm » Fri Aug 04, 2017 1:40 pm

Use IWorkItem.isUnresolvable(). If "false" is returned, everything is OK.

martins
Posts: 180
Joined: Thu Nov 05, 2009 3:24 pm

Re: How do check if a work item exists

Postby martins » Tue Aug 08, 2017 12:19 pm

In some cases it's a good idea in addition to check with IWorkItem.can().read() if the user is permitted to read the workitem. Otherwise your wiki page might fail because of lacking permissions.

Martin


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests