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="126.96.36.1992"/>
<Project name="Test project" projectID="EU240933">
<Task internalTaskID="5023049" name="Task" outlineLevel="1">
Every time we XOG in the XML to update the task ( or assignment information) it creates a duplicate task on the project.
There is an idea posted for this -
Task XOG should not use non-mandatory field
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
And, for future, you can auto-number the task id field
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