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 Projects in ActiveCollab
Overview
The following operations allow you to work with projects. Click an operation name to see details on how to use it.
For a sample proxy service that illustrates how to work with projects, see Sample configuration.
Operation | Description |
---|---|
Retrieves details of a project. | |
listProjects | Retrieves details of all projects. |
createProject | Creates a new project. |
renameProject | Renames an existing project. |
listCurrencies | Retrieves details of all currencies. |
listCompletedProjects | Retrieves details of all completed project. |
completeProject | Completes a project. |
listProjectNames | Lists all existing name of the project. |
Operation details
This section provides further details on the operations related to projects.
Retrieving a project details
The getProject
operation retrieves details of a particular project.
<activecollab.getProject> <projectId>{$ctx:projectId}</projectId> </activecollab.getProject>
Properties
projectId:
Sample request
Following is a sample REST/JSON request that can be handled by the getProject
operation.
{ "email":"emailId@gmail.com", "password":"1234", "apiVersion":"v1", "clientVendor":"XYZ", "clientName":"ABC", "blocking":"false", "projectId":"10" }
Retrieving details of all projects
The listProjects
operation Retrieves details of all projects.
<activecollab.listProjects/>
Sample request
Following is a sample REST/JSON request that can be handled by the listProjects
operation.
{ "email":"emailId@gmail.com", "password":"1234", "apiVersion":"v1", "clientVendor":"XYZ", "clientName":"ABC", "blocking":"false" }
Creating a new project
The
operation adds a new project.createProject
<activecollab.createProject> <companyId>{$ctx:companyId}</companyId> <name>{$ctx:name}</name> <leaderId>{$ctx:leaderId}</leaderId> <categoryId>{$ctx:categoryId}</categoryId> <members>{$ctx:members}</members> </activecollab.createProject>
Properties
name:
Required- The project name.companyId:
The ID of the client company that you are working for on this project.leaderId:
members:
categoryId:
Sample request
Following is a sample REST/JSON request that can be handled by the createProject operation.
{ "email":"emailId@gmail.com", "password":"1234", "apiVersion":"v1", "clientVendor":"XYZ", "clientName":"ABC", "blocking":"false", "name":"New project", "categoryId":"10", "leaderId":"1", "companyId":"13", "members":[ 2, 3 ] }
Renaming an existing Project
The renameProject
operation renames a project.
<activecollab.renameProject> <name>{$ctx:name}</name> <projectId>{$ctx:projectId}</projectId> </activecollab.renameProject>
Properties
projectId:
name:
Sample request
Following is a sample REST/JSON request that can be handled by the renameProject
operation.
{ "email":"emailId@gmail.com", "password":"1234", "apiVersion":"v1", "clientVendor":"XYZ", "clientName":"ABC", "blocking":"false", "projectId":"10", "name":"New Name" }
Retrieving details of currencies
The listCurrencies
operation retrieves details of all currencies.
<activecollab.listCurrencies/>
Sample request
Following is a sample REST/JSON request that can be handled by the listCurrencies
operation.
{ "email":"emailId@gmail.com", "password":"1234", "apiVersion":"v1", "clientVendor":"XYZ", "clientName":"ABC", "blocking":"false" }
Retrieving details of all completed projects
The listCompletedProjects
operation retrieves details of all completed projects.
<activecollab.listCompletedProjects/>
Sample request
Following is a sample REST/JSON request that can be handled by the listCompletedProjects
operation.
{ "email":"emailId@gmail.com", "password":"1234", "apiVersion":"v1", "clientVendor":"XYZ", "clientName":"ABC", "blocking":"false" }
completing a project
The completeProject
operation completes details of all completed projects.
<activecollab.completeProject> <projectId>{$ctx:projectId}</projectId> </activecollab.completeProject>
Properties
projectId:
Sample request
Following is a sample REST/JSON request that can be handled by the completeProject
operation.
{ "email":"emailId@gmail.com", "password":"1234", "apiVersion":"v1", "clientVendor":"XYZ", "clientName":"ABC", "blocking":"false", "projectId":"10" }
Retrieving all projects name
The listProjectNames
operation completes details of all completed projects.
<activecollab.listProjectNames/>
Sample request
Following is a sample REST/JSON request that can be handled by the listProjectNames
operation.
{ "email":"emailId@gmail.com", "password":"1234", "apiVersion":"v1", "clientVendor":"XYZ", "clientName":"ABC", "blocking":"false" }
Sample configuration
Following is a sample proxy service that illustrates how to connect to ActiveCollab with the init
operation and use the createProject
operation. The sample request for this proxy can be found in createProject sample request. You can use this sample as a template for using other operations in this category.
<proxy xmlns="http://ws.apache.org/ns/synapse" name="activecollab_createProject" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <property name="email" expression="json-eval($.email)"/> <property name="password" expression="json-eval($.password)"/> <property name="apiVersion" expression="json-eval($.apiVersion)"/> <property name="clientVendor" expression="json-eval($.clientVendor)"/> <property name="clientName" expression="json-eval($.clientName)"/> <property name="name" expression="json-eval($.name)"/> <property name="leaderId" expression="json-eval($.leaderId)"/> <property name="categoryId" expression="json-eval($.categoryId)"/> <property name="members" expression="json-eval($.members)"/> <property name="companyId" expression="json-eval($.companyId)"/> <activecollab.init> <email>{$ctx:email}</email> <password>{$ctx:password}</password> <apiVersion>{$ctx:apiVersion}</apiVersion> <clientVendor>{$ctx:clientVendor}</clientVendor> <clientName>{$ctx:clientName}</clientName> <blocking>{$ctx:blocking}</blocking> </activecollab.init> <activecollab.createProject> <companyId>{$ctx:companyId}</companyId> <name>{$ctx:name}</name> <leaderId>{$ctx:leaderId}</leaderId> <categoryId>{$ctx:categoryId}</categoryId> <members>{$ctx:members}</members> </activecollab.createProject> <respond/> </inSequence> </target> <description/> </proxy>