Reading Issue Fields via Workfront-API

326 Views Asked by At

Please tell me how to read Issue Fields like resolveProjectID & resolveTaskID:

****.workfront.com/attask/api/OPTASK/search?id=5bf801f101b144a12aabb51f2c068caa returns:

{"data":
  [{"ID":"5bf801f101b144a12aabb51f2c068caa",
  "name":"test-dev-issue","objCode":"OPTASK",
  "plannedCompletionDate":"2018-11-27T00:00:00:000+0200",
  "status":"NEW",
  "primaryAssignment":null}]
}

According to the API-Explorer guide (https://support.workfront.com/hc/en-us/articles/220633507-API-Explorer), resolveProjectID & resolveTaskID should be located within OPTASK fields. I couldn't find anything helpful yet within their documentation.

Thank you!

1

There are 1 best solutions below

3
On

The search you're executing will work, but if you know the ID of the record you're retrieving then you should call it directly (/api/v9.0/OPTASK/5bf801f101b144a12aabb51f2c068caa).

The return value is, by default, a small set of fields providing some basic data. If you want more fields, add a parameter (fields=).