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!

    Zoho Developer Community






                              Zoho Desk Resources

                              • Desk Community Learning Series


                              • Digest


                              • Functions


                              • Meetups


                              • Kbase


                              • Resources


                              • Glossary


                              • Desk Marketplace


                              • MVP Corner


                              • Word of the Day



                                  Zoho Marketing Automation
                                          • Sticky Posts

                                          • 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.
                                          • Blueprint in Zoho Projects

                                            Often, we stumble upon tasks having the same status workflow. Repetitive task processes are tedious to handle, right? That’s why we have introduced Blueprint for task automation. Blueprint is a tool to organize tasks and automate them based on the workflow you design and the criteria you define.    How do I associate tasks with a blueprint? You can set the criteria while creating the blueprint such that when you publish a blueprint, the tasks that satisfy the criteria will be associated with the


                                          Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now