API for Issues (Task)

Welcome to the zipBoard platform REST API reference. This API is essential for connecting remotely with zipBoard, regardless of whether you are building an application, scripting interactions with zipBoard or building some other integration. 

This page documents the REST resources available in the zipBoard platform, along with the expected HTTP response codes and sample requests for interacting with zipBoard Tasks.

Before you start working with the API, you will need to generate an API key and also get an idea of the URI Structure that needs to be followed. Please follow this article for more information on that.

Get Tasks

GEThttps://app.zipboard.co/api/v1/issues/tasks/

  • To get the corresponding tasks related to the project of files.
  • For tasks to be visible, the user must be logged in and authenticated. If no user is logged in, the tasks will not be visible.
  • To get corresponding tasks related to the project of files.
  • Task Status values (Open, Waiting on Client, In Progress, Defer, Resolved/Fixed, QA Verify, Won’t Fix, Duplicate, Reopen).
  • Task Priority values (Critical, High, Medium, Low).
  • Task Type values (Bug, Enhancement, Feature, Task).

HEADERS

Content-Type                          application/json

Authorization                          Authorization token

URL Params        

Required:

None

Optional:

id:                                     String                                         id of the task to fetch

Body Prams

        Required:

                At least one is required, either projectid or fileid.

        Optional:

                projectid                         String                                          id of the project whose task to fetch

fileid                                String                                          id of the file whose task to fetch

status                              String                                          fetch task by status

priority                             String                                          fetch task by priority

type                                 String                                          fetch task by type

Request

var http = require('http'); 
Http.request({    
	method: 'GET',    
	url: `https://app.zipboard.co/api/v1/isssues/tasks`,    
	body: {         
		projectid:"rC9Ym63SgYKurDuWk"    
	},  
});

Response

{
    "status": "Success",
    "status code": 200,
    "message": "Successfully retrieved tasks.",
    "data": [
        {
            "_id": "9QPkEqjACxBcqhqL3",
            "browsername": "Chrome 79.0.3945.130",
            "commentCreatedAt": "2020-02-17T07:53:28.223Z",
            "commentId": "9QPkEqjACxBcqhqL3",
            "commentText": "task 123",
            "commentType": "comment",
            "fileId": -1,
            "file_name": "",
            "osName": "Windows NT 4.0",
            "phaseId": "",
            "phase_name": "",
            "project_id": "3y55wtEkJqvN5AKD9",
            "project_title": "Project 1",
            "screenId": -1,
            "screenResolution": "",
            "screenTitle": "",
            "taskAssignedToId": "",
            "taskAssignedToName": "Unassigned",
            "taskDescription": "",
            "taskId": "T0010001",
            "taskPriority": "Low",
            "taskStatus": "Open",
            "taskType": "Bug",
            "taskUrl": "http://localhost:3000/project/3y55wtEkJqvN5AKD9/-1/tasks/-1",
            "type": "TASK",
            "updatedAt": "2020-02-18T09:25:24.347Z",
            "userId": "PLGMkdHJsgk5ZcFCY",
            "userName": "Nippun",
            "taskFeed": [
                {
                    "taskFeedId": "01cb61a8618f1a481e6c928e",
                    "taskFeedCreatedAt": "2020-02-17T07:53:28.223Z",
                    "taskFeedCreatedBy": "PLGMkdHJsgk5ZcFCY",
                    "taskFeedText": "Nippun created the task"
                }
            ]
        }
    ]
}

Create Tasks 

POSThttps://app.zipboard.co/api/v1/issues/tasks/

  • Creates new tasks for the user, data required (title, projectid).
  • To add a task to the project, the role of the current user should be ‘Owner’ or ‘Manager’ or ‘Reviewer’ in the project.
  • Returns the data of the newly created task.

HEADERS

Content-Type                          application/json

Authorization                          Authorization token

URL Params        

Required:

None

          Optional:

None

Body Prams

        Required:

                projectid                        String                                                id of the project where task should be created

title                                String                                                Title of the task

        Optional:

                type                              String                                                task type 

priority                          String                                                task priority 

status                           String                                                task status 

description                   String                                                task description 

Request

var http = require('http'); 
Http.request({    
	method: 'POST',    
	url: `https://app.zipboard.co/api/v1/issues/tasks`,    
	body: {      
		projectid: "rC9Ym63SgYKurDuWk",             
		title: "Task-002"    
	},  
});

Response

 {
    "status": "Success",
    "status code": 201,
    "message": "New Task Created",
    "data": [
        {
            "_id": "5zRC8WepFQ9TkHhhA",
            "commentType": "comment",
            "commentCreatedAt": "2020-02-18T09:46:39.345Z",
            "updatedAt": "2020-02-18T09:46:39.345Z",
            "commentText": "Task-003",
            "commentLeft": "",
            "commentTop": "",
            "userId": "PLGMkdHJsgk5ZcFCY",
            "userName": "Nippun",
            "taskId": "T0010003",
            "taskDescription": "",
            "taskType": "Bug",
            "taskStatus": "Open",
            "taskPriority": "Low",
            "taskAssignedToId": "",
            "taskAssignedToName": "Unassigned",
            "browsername": "",
            "osName": "",
            "phaseId": "",
            "phase_name": "",
            "fileId": "-1",
            "screenId": "-1",
            "screenResolution": "",
            "type": "TASK",
            "project_title": "Project 1",
            "project_id": "3y55wtEkJqvN5AKD9",
            "commentId": "5zRC8WepFQ9TkHhhA",
            "taskUrl": "http://localhost:3000/NaN3y55wtEkJqvN5AKD9/-1/tasks/-1/5zRC8WepFQ9TkHhhA",
            "taskFeed": [
                {
                    "taskFeedId": "4b7790a2aad95d925786a093",
                    "taskFeedCreatedAt": "2020-02-18T09:46:39.345Z",
                    "taskFeedCreatedBy": "PLGMkdHJsgk5ZcFCY",
                    "taskFeedText": "Nippun created the task"
                }
            ]
        }
    ]
}

Update Task       

PUThttps://app.zipboard.co/api/v1/issues/tasks/:id

  • Updates the existing task for the user, data required (project id).
  • To update the task, the role of the current user should be ‘Owner’ or ‘Manager’ or ‘Reviewer’.
  • Returns the updated task message.

HEADERS

Content-Type                          application/json

Authorization                          Authorization token

URL Params        

Required:

id:                            String                                              id of the task to be updated(string)

Body Prams

        Required:

              At least one is required from optional Body Params.

        Optional:

                     title                            String                                              task title

                type                          String                                               task type

priority                       String                                               task priority

status                        String                                               task status

description                String                                               task description

Request        

var http = require('http'); 
Http.request({    
	method: 'PUT',    
	url: `https://app.zipboard.co/api/v1/issues/tasks/1a9615b1d57d3e12e555c561`,    
	body: {      
		title: "task-003",          
	},  
});

Response

  {
    "status": "Success",
    "status code": 200,
    "message": "Task successfully updated.",
    "data": [
        {
            "_id": "5zRC8WepFQ9TkHhhA",
            "commentType": "comment",
            "commentCreatedAt": "2020-02-18T09:46:39.345Z",
            "updatedAt": "2020-02-18T09:47:15.855Z",
            "commentText": "Task-004",
            "commentLeft": "",
            "commentTop": "",
            "userId": "PLGMkdHJsgk5ZcFCY",
            "userName": "Nippun",
            "taskId": "T0010003",
            "taskDescription": "",
            "taskType": "Bug",
            "taskStatus": "Open",
            "taskPriority": "Low",
            "taskAssignedToId": "",
            "taskAssignedToName": "Unassigned",
            "browsername": "",
            "osName": "",
            "phaseId": "",
            "phase_name": "",
            "fileId": "-1",
            "screenId": "-1",
            "screenResolution": "",
            "type": "TASK",
            "project_title": "Project 1",
            "project_id": "3y55wtEkJqvN5AKD9",
            "commentId": "5zRC8WepFQ9TkHhhA",
            "taskUrl": "http://localhost:3000/NaN3y55wtEkJqvN5AKD9/-1/tasks/-1/5zRC8WepFQ9TkHhhA",
            "taskFeed": [
                {
                    "taskFeedId": "4b7790a2aad95d925786a093",
                    "taskFeedCreatedAt": "2020-02-18T09:46:39.345Z",
                    "taskFeedCreatedBy": "PLGMkdHJsgk5ZcFCY",
                    "taskFeedText": "Nippun created the task"
                },
                {
                    "taskFeedId": "1134ab7208a15df483aa3a38",
                    "taskFeedCreatedAt": "2020-02-18T09:47:15.855Z",
                    "taskFeedCreatedBy": "PLGMkdHJsgk5ZcFCY",
                    "taskFeedText": " Nippun updated updated the task title."
                }
            ]
        }
    ]
}

Delete Task       

DELETEhttps://app.zipboard.co/api/v1/issues/tasks/:id

  • Deletes the existing tasks for the user, data required (issues id for the task).
  • To delete a task, the role of the current user should be ‘Owner’ or ‘Manager’ or ‘task creator’.
  • Returns the project data of the deleted project.

HEADERS

Content-Type                         application/json

Authorization                          Authorization token

URL Params        

Required:

id:                           String                                             id of the task to be deleted

          Optional:

none

Request

var http = require('http'); 
Http.request({    
	method: 'DELETE',    
	url: `https://app.zipboard.co/api/v1/issues/tasks/6a965c2c258bf7d41596fdc2`  
});

Response

{
    "status": "Success",
    "status code": 200,
    "message": "Task successfully deleted"
}

If you have any questions, you can check out our Forum.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us