Web service API

How to use PageSeeder's Web service API

get task

/members/{member}/tasks/{taskid} [GET]

com.pageseeder.comment.GetDiscussion

Description

Load a single task from accessible groups.

Note

The @status, @priority, @due attributes and <assignedto> element may not be included if comments=first or none and the last comment in the task is not loaded.

Parameters

NameDescriptionRequiredTypeDefault value
comments the comments to include, can be "none","first","last","all","archive" no string all
returngroups the groups to return in the output, can be "none","user","all"(administrator only will include all comments) no string none
tasksize the maximum number of comments to return per task no string 1000

Permission

Undocumented permissions requirements.

Response

The output has the following format:

<task id="123"
      title="My thread"
      lastcommentid="234"
      lastcommentdate="2012-08-20T14:27:48+10:00"
      status="Open"
      priority="High"
      due="2012-08-25T18:00:00+10:00">
   <uri id="789">...</uri>
   <locator fragment="2"/>
   <assignedto id="34"
               date="2012-08-20T14:27:48+10:00" ...> ... </assignedto>
   <comment id="234"
            contentrole="File Attachment"
            created="2012-03-08T12:34:00+10:00">
      <title>My thread</title>
      <content type="text/plain">
         Some text
      </content>
      <attachment>
         <uri id="189">...</uri>
      </attachment>
      <attachment fragment="5">
         <uri id="289">...</uri>
      </attachment>
   </comment>
</task>

Error handling

CodeCause / Description
0x1316 the discussion was not found

Created on , last edited on