WorkRequests.getCount (Method)

Returns the number of work requests. You can use this method's arguments so that CommonSpot returns one kind of work request and the request's urgency.

Returns:

NonNegativeInteger

Arguments:

Name Type Required Description
objectID PageID_0_NEG1 Required A page's ID. If this value is 0, CommonSpot returns the number of general work requests. If it is -1, CommonSpot returns the total number of the site's work requests.
filterCriteria WorkRequestFilter Optional. Defaults to 'All'. A string specifying the state of a work request; for example, 'all open', 'open assigned to me', 'completed assigned to me', and so on.
urgencyFilter PriorityFilter Optional. Defaults to 'All'. A string identifying a work request's priority, as follows: 'All', 'High', 'Medium', or 'Low'.
workRequestStateFilter WorkRequestStateFilter Optional. Defaults to 'All'. A string identifying a work request's state, as follows: 'completed', 'all', 'pending', 'accepted', 'rejected'.

Context:

License Requirements None
Permission Requirements Contributor
Deny Context None
Require Context None
Author Lock (not required)
Transaction Logging Transaction logging is disabled for this method
Customization This method may be customized at the site level

Error Codes:

None

Notes:

None