vvas
vvas

Reputation: 61

Rally rest API - updating task estimate fails

Here is a code snippet:

  task["WorkProduct"] = storyref;
  task["Project"] = projectRef;
  task["Workspace"] = workspaceRef;
  task["Estimate"] = Convert.ToString  equalTaskEst);
  OperationResult result = restApi.Update(task["_ref"], task);

I'm bale to delete and create tasks with no issues. But update, does not give error nor it updates any column values

Upvotes: 0

Views: 157

Answers (2)

Kyle Morse
Kyle Morse

Reputation: 8410

Is the task completed? I don't think it will allow you to update estimates or todo values if the task is already marked as done. Also, Estimate is a numeric field so you probably do not want to submit it as a string value as your code above seems to be doing...

Upvotes: 0

w0ns88
w0ns88

Reputation: 345

Check the errors you are getting from the OperationResult:

Like so:

if (!OperationResult.Success)
{
    OperationResult.Errors.ToList().ToString();
}

With Console.log or whatever way you want to display them.

Getting the exact errors from Rally might shed some light on your errors.

Upvotes: 1

Related Questions