Updating status from Task via API

Updating status from Task via API

Hello!

I have been integrating my Zoho Desk with Zoho Projects. More specifically, i’m able to create a Task on my Desk and it creates on Zoho Projects too.

Now i’m trying to make the Status of the tasks reflect on the other platform as well, so if i close my task on Zoho Desk, it should close on Projects too.

The problem i’m encountering is on the stage where i’m trying to update the Zoho Projects task status. No matter the values or format i’m inputting it simply doesn’t update.

Using the Get Tasks API, i’m getting the following format for the status field in the response:


I’m using the Projects Update Task API, all the scopes from the documentation are listed in the connection and i tried different methods from Maps to arrays to try and update the correct values, but had no success so far.

Here are some examples of methods that i tried using to update the value, note that i tried using both the zoho.projects.update function and the API via invokeurl:
  1. sList = list();
  2. sMap = map();
  3. sMap.put("name","Open");
  4. sMap.put("id","----------");
  5. sMap.put("type","open");
  6. sMap.put("color_code","#74cb80");
  7. sList.add(sMap);
  8. status = {"name":"Open","id":"----------","type":"open","color_code":"#74cb80"};
  9. params = Map();
  10. params.put("status",sList);
  11. updateTask = invokeurl
  12. [
  13. url :"https://projectsapi.zoho.com/restapi/portal/" + portal + "/projects/" + projectId + "/tasks/" + taskId + "/"
  14. type :POST
  15. parameters:params (tried using the status variable too)
  16.                 connection:"-----"
  17. ];
  18. info updateTask;

  19. update_pro = zoho.projects.update(portal, projectId, "Tasks", taskId, status,"fullprojects");
  20. info update_pro;
Is there a correct format that i need to input? Or is this field locked? 

Thank you in advance!

      • Sticky Posts

      • Tip: How to print the Gantt View

        Though we move from the traditional project management system (using papers) to an online project management system, we still prefer to have a printed copy of the activities/tasks that are to be done in the project. This way, we can carry the to-do lists with us for the meetings and refer when we are offline. The print option, available at the right side of the page, allows the users to print the project information across all the modules. However, this option failed to print all the tasks & milestones
      • Project Management via Emails in Zoho Projects

        We write mails to communicate. In Zoho Projects, we can write mails to collaborate. Yes, Zoho Projects supports Email based project management. The mails that you send turn into tasks, bugs, project comments, forum replies, etc. The following are some of the frequently asked questions that might be of some help to you. What are the pre-requisites to manage my projects through Emails? You need to have a personal / business mail ID that is registered and confirmed with accounts.zoho.com To learn more
      • Four types of task dependencies

        "Nothing is particularly hard if you divide it into small jobs."                                                                                                                  - Henry Ford Projects, small or large, are driven by simple work units called tasks. Monitoring standalone tasks might look simple but as the workflow becomes elaborate, tasks may start relying on one another. In project management, this relationship between tasks is termed as "Task Dependencies". Dependency between tasks arise
      • Task and Project numbering

        Zoho Projects now generates a unique number for each project, task, and issue added. The auto-generated ID is a combination of a prefix and a number which is assigned by Zoho Projects. The unique IDs for projects, tasks, and issues will be useful to track, identify, and search easily. You can modify the settings to enable or disable the Project and Task IDs.  Learn more on how to modify Prefix & ID settings for projects and tasks. Issue IDs cannot be disabled, only its prefix can be changed (tasks
      • Task Inline Editing Enhancement

        Hi All, Today, we have made an enhancement in task inline editing. In 4.0, task edit is moved in a single screen in a pop-up. We designed this in-order to make the task edit across the product to be the same. Let it be in Feeds, Tasks & My Tasks tab, Calendar & My Calendar tab, a click on the task title will open the popup and user can edit the values. Customers pointed us the inline editing was very useful to them & how much they miss that in 4.0. Based on the feedback, we have rolled out this enhancement.