Clarity

 View Only
  • 1.  Update Task information with blank task id(PREXTERNALID)

    Posted Jun 25, 2015 04:52 AM

    Is there a way to update assignment information on a task via XOG using the internal ID of a task if the prexternal ID is blank.

     

     

    We have a number of tasks in our system that have blank prexternalid (i.e Task ID attribute on Clarity). We want to use XOG to update the assignment information. As the taskID ( prexternalid) is blank for these task,We are not able to update the assignment information on any of these tasks using the internal taskID. Is there a way to update the assignment information via XOG using the internal task ID alone.

     

    A cut down sample XML is below. This XML is to update a project task having an internal task id of 5023049. Please note that the external task ID is blank on this task.

     

    <?xml version="1.0" encoding="UTF-8"?>

    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_project.xsd">

      <Header action="write" externalSource="NIKU" objectType="project" version="13.2.0.472"/>

      <Projects>

        <Project name="Test project" projectID="EU240933">

          <Tasks>

            <Task internalTaskID="5023049" name="Task" outlineLevel="1">

            </Task>

          </Tasks>

        </Project>

      </Projects>

    </NikuDataBus>

     

    Every time we XOG in the XML to update the task ( or assignment information) it creates a duplicate task on the project.



  • 2.  Re: Update Task information with blank task id(PREXTERNALID)

    Posted Jun 25, 2015 05:13 AM

    There is an idea posted for this -

     

    Task XOG should not use non-mandatory field

    Task XOG should not use non-mandatory field

     

     

    NJ



  • 3.  Re: Update Task information with blank task id(PREXTERNALID)

    Posted Jun 25, 2015 05:14 AM

    So, the way I see it, as of now, you will need to fill up the prexternalid for those tasks (with unique ids) and then use the xog to update it

     

    NJ



  • 4.  Re: Update Task information with blank task id(PREXTERNALID)

    Posted Jun 25, 2015 05:20 AM

    And, for future, you can auto-number the task id field

     

    NJ



  • 5.  Re: Update Task information with blank task id(PREXTERNALID)

    Posted Jun 26, 2015 09:38 AM

    Hi Bika,

    yes whenever we XOG task data we make sure that field is not blank by updating it (via DB) with the 5000000 ID (as that is a unique identifier).

    hope that helps