Retrieve the list of available statuses of a project from source.
eTask supports 4 types of sources, each of which {source} and {source-id} correspond to _id and source properties in the Get Configured Project endpoint. However, the Bucket of eSource is using a different endpoint.
GET api/fields/task/status/{source-id} or GET api/fields/bug/status/{source-id} –x-appvity-channelId: [ChannelID] –x-appvity-teamid: [TeamID] –Cookie: graphNodeCookie=[ID] |
URL Endpoint
api/fields/task/status/{source-id}
or
api/fields/bug/status/{source-id}
Method
GET.
Do not supply OData Filter syntax.
Request Header
1 | --x-appvity-channelId: [ChannelID] |
Body
This method does not supply the request body.
If successful, this method returns a 200 OK
response code and the list of statuses in source.
Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION.
Content: {error: “error message”}
Example
Request
1 | curl --location --request GET |
Respond
## Planner source## |
---|
[ { “id”: “PLSTT-NotStarted”, “name”: “Not started”, “percentComplete”: 0, “categoty”: “” }, { “id”: “PLSTT-InProgress”, “name”: “In progress”, “percentComplete”: 50, “categoty”: “” }, { “id”: “PLSTT-Completed”, “name”: “Completed”, “percentComplete”: 100, “categoty”: “” } ] |
Comment