This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Working with Tasks in AgileZen
Overview
The following operations allow you to work with tasks. Click an operation name to see details on how to use it.
For a sample proxy service that illustrates how to work with tasks, see Sample configuration.
Operation | Description |
---|---|
Creates a task in the specified story. | |
getTask | Retrieves a single task from the specified story. |
listTasks | Retrieves the list of tasks from the specified story. |
updateTask | Modifies a single task in the specified story. |
Operation details
This section provides further details on the operations related to tasks.
Creating a task in the specified story
The
operation creates a task in the specified story.createTask
<agilezen.createTask> <storyId>{$ctx:storyId}</storyId> <projectId>{$ctx:projectId}</projectId> <text>{$ctx:text}</text> <status>{$ctx:status}</status> </agilezen.createTask>
Properties
The ID of the story to which the task belongs.storyId:
The ID of the project to which the story belongs.projectId:
The text of the task.text:
The status of the task. Either complete or incomplete.status:
Sample request
Following is a sample REST/JSON request that can be handled by the createTask
operation.
{ "apiUrl": "https://agilezen.com", "apiKey": "7fb8d03c21d748e09fb31b62b1ba7d13", "format": "json", "storyId": 1, "projectId": 70025, "text": "Description for Task 0001", "status": "incomplete" }
Note
There are optional parameters available. For more information on the usage of these parameters please check the API document.
Related AgileZen documentation
http://dev.agilezen.com/resources/tasks.html#create_a_new_task
Retrieving a single task from the specified story
The
operation retrieves a single task from the specified story.getTask
<agilezen.getTask> <taskId>{$ctx:taskId}</taskId> <storyId>{$ctx:storyId}</storyId> <projectId>{$ctx:projectId}</projectId> </agilezen.getTask>
Properties
The ID of the task whose details would be retrieved.taskId:
The ID of the story to which the task belongs.storyId:
The ID of the project to which the story belongs.projectId:
Sample request
Following is a sample REST/JSON request that can be handled by the getTask
operation.
{ "apiUrl": "https://agilezen.com", "apiKey": "7fb8d03c21d748e09fb31b62b1ba7d13", "format": "json", "taskId": 2290026, "storyId": 1, "projectId": 70025 }
Note
There are optional parameters available. For more information on the usage of these parameters please check the API document.
Related AgileZen documentation
http://dev.agilezen.com/resources/tasks.html#get_a_task
Retrieving the list of tasks from the specified story
The
operation retrieves the list of tasks from the specified story.listTasks
<agilezen.listTasks> <storyId>{$ctx:storyId}</storyId> <projectId>{$ctx:projectId}</projectId> <filters>{$ctx:filters}</filters> <page>{$ctx:page}</page> <pageSize>{$ctx:pageSize}</pageSize> </agilezen.listTasks>
Properties
The ID of the story to which the tasks belong.storyId:
The ID of the project to which the story belongs.projectId:
Filter queries which the user can use to filter the returned data.filters:
The number of the page to be returned when response is paginated.page:
The number of responses to be returned in a call when response is paginated.pageSize:
Sample request
Following is a sample REST/JSON request that can be handled by the listTasks
operation.
{ "apiUrl": "https://agilezen.com", "apiKey": "7fb8d03c21d748e09fb31b62b1ba7d13", "format": "json", "storyId": 1, "projectId": 70025, "page": 1, "pageSize": 4 }
Note
There are optional parameters available. For more information on the usage of these parameters please check the API document.
Related AgileZen documentation
http://dev.agilezen.com/resources/tasks.html#list_tasks_within_a_story
Modifying a single task in the specified story
The
operation modifies a single task in the specified story.updateTask
<agilezen.updateTask> <taskId>{$ctx:taskId}</taskId> <storyId>{$ctx:storyId}</storyId> <projectId>{$ctx:projectId}</projectId> <text>{$ctx:text}</text> <status>{$ctx:status}</status> </agilezen.updateTask>
Properties
The ID of the task to update.taskId:
The ID of the story to which the task belongs.storyId:
The ID of the project to which the story belongs.projectId:
The text of the task.text:
The status of the task. Either complete or incomplete.status:
Sample request
Following is a sample REST/JSON request that can be handled by the updateTask
operation.
{ "apiUrl": "https://agilezen.com", "apiKey": "7fb8d03c21d748e09fb31b62b1ba7d13", "format": "json", "taskId": 2290026, "storyId": 1, "projectId": 70025, "text": "Description for Task 0001", "status": "incomplete" }
Note
There are optional parameters available. For more information on the usage of these parameters please check the API document.
Related AgileZen documentation
http://dev.agilezen.com/resources/tasks.html#update_a_task
Sample configuration
Following is a sample proxy service that illustrates how to connect to AgileZen with the init
operation and use the createTask
operation. The sample request for this proxy can be found in the createTask sample request.
<?xml version="1.0" encoding="UTF-8"?> <proxy name="agilezen_createTask" startOnLoad="true" statistics="disable" trace="disable" transports="https,http" xmlns="http://ws.apache.org/ns/synapse"> <target> <inSequence onError="faultHandlerSeq"> <property name="apiUrl" expression="json-eval($.apiUrl)"/> <property name="apiKey" expression="json-eval($.apiKey)"/> <property name="format" expression="json-eval($.format)"/> <property name="storyId" expression="json-eval($.storyId)"/> <property name="enrichments" expression="json-eval($.enrichments)"/> <property name="projectId" expression="json-eval($.projectId)"/> <property name="text" expression="json-eval($.text)"/> <property name="status" expression="json-eval($.status)"/> <agilezen.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <apiKey>{$ctx:apiKey}</apiKey> <format>{$ctx:format}</format> <enrichments>{$ctx:enrichments}</enrichments> </agilezen.init> <agilezen.createTask> <storyId>{$ctx:storyId}</storyId> <projectId>{$ctx:projectId}</projectId> <text>{$ctx:text}</text> <status>{$ctx:status}</status> </agilezen.createTask> <respond/> </inSequence> <outSequence> <send/> </outSequence> </target> <description/> </proxy>