Projects
Returns one task in full.
Everything the project’s task list returns, plus the fields that live only on the task itself: linked assets, blocking relationships in both directions, the reason behind its status, and time recorded against it.
A task in a project you cannot see returns 404, the same as one that does not exist.
GET
/
v1
/
projects
/
{projectId}
/
tasks
/
{taskId}
Returns one task in full.
curl --request GET \
--url https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"StatusCode": 100,
"IsSuccess": true,
"Data": {
"Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"Title": "<string>",
"Number": 123,
"DisplayNumber": "<string>",
"SectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"LeadAssigneeId": 123,
"AssistingAssigneeIds": [
123
],
"WatcherIds": [
123
],
"PrimaryGroupId": 123,
"Status": {
"Id": 1,
"Name": "<string>"
},
"StatusUpdatedOn": "2023-11-07T05:31:56Z",
"StatusReason": "<string>",
"Priority": {
"Id": 1,
"Name": "<string>"
},
"DueDate": "2023-11-07T05:31:56Z",
"ChecklistSummary": {
"Completed": 123,
"Total": 123,
"ProgressPercent": 123
},
"IsUnread": true,
"IsWaitingOnThem": true,
"BlockedByTaskIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"BlockingTaskIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"LastUpdate": {
"UpdateType": "<string>",
"Summary": "<string>",
"On": "2023-11-07T05:31:56Z"
},
"CreatedOn": "2023-11-07T05:31:56Z",
"UpdatedOn": "2023-11-07T05:31:56Z",
"ClosedOn": "2023-11-07T05:31:56Z",
"ProjectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ClientId": 123,
"StatusDetails": {
"Reason": "<string>",
"UpdatedById": 123,
"UpdatedOn": "2023-11-07T05:31:56Z"
},
"AgentAssetIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"CustomAssetIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"UptimeIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"Time": {
"ActualHours": 123,
"AdjustedHours": 123,
"Breakdown": {
"Billable": {
"ActualHours": 123,
"AdjustedHours": 123
},
"NotBillable": {
"ActualHours": 123,
"AdjustedHours": 123
},
"NotBillableHidden": {
"ActualHours": 123,
"AdjustedHours": 123
}
}
},
"Products": {
"Count": 123,
"TotalAmount": 123
},
"BillingOverride": {
"ServiceLine": {
"Id": 1,
"Name": "<string>"
},
"BillingRole": {
"Id": 1,
"Name": "<string>"
},
"WorkType": {
"Id": 1,
"Name": "<string>"
},
"BillableStatus": {
"Id": 1,
"Name": "<string>"
}
},
"Shipments": [
{
"TrackingNumber": "<string>",
"Carrier": "<string>",
"Status": {
"Id": 1,
"Name": "<string>"
},
"Name": "<string>"
}
],
"Banner": "<string>"
},
"DataContext": null,
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}授权
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
响应
OK
可用选项:
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511 此页面对您有帮助吗?
⌘I
Returns one task in full.
curl --request GET \
--url https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usw.gorelo.io/v1/projects/{projectId}/tasks/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"StatusCode": 100,
"IsSuccess": true,
"Data": {
"Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"Title": "<string>",
"Number": 123,
"DisplayNumber": "<string>",
"SectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"LeadAssigneeId": 123,
"AssistingAssigneeIds": [
123
],
"WatcherIds": [
123
],
"PrimaryGroupId": 123,
"Status": {
"Id": 1,
"Name": "<string>"
},
"StatusUpdatedOn": "2023-11-07T05:31:56Z",
"StatusReason": "<string>",
"Priority": {
"Id": 1,
"Name": "<string>"
},
"DueDate": "2023-11-07T05:31:56Z",
"ChecklistSummary": {
"Completed": 123,
"Total": 123,
"ProgressPercent": 123
},
"IsUnread": true,
"IsWaitingOnThem": true,
"BlockedByTaskIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"BlockingTaskIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"LastUpdate": {
"UpdateType": "<string>",
"Summary": "<string>",
"On": "2023-11-07T05:31:56Z"
},
"CreatedOn": "2023-11-07T05:31:56Z",
"UpdatedOn": "2023-11-07T05:31:56Z",
"ClosedOn": "2023-11-07T05:31:56Z",
"ProjectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ClientId": 123,
"StatusDetails": {
"Reason": "<string>",
"UpdatedById": 123,
"UpdatedOn": "2023-11-07T05:31:56Z"
},
"AgentAssetIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"CustomAssetIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"UptimeIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"Time": {
"ActualHours": 123,
"AdjustedHours": 123,
"Breakdown": {
"Billable": {
"ActualHours": 123,
"AdjustedHours": 123
},
"NotBillable": {
"ActualHours": 123,
"AdjustedHours": 123
},
"NotBillableHidden": {
"ActualHours": 123,
"AdjustedHours": 123
}
}
},
"Products": {
"Count": 123,
"TotalAmount": 123
},
"BillingOverride": {
"ServiceLine": {
"Id": 1,
"Name": "<string>"
},
"BillingRole": {
"Id": 1,
"Name": "<string>"
},
"WorkType": {
"Id": 1,
"Name": "<string>"
},
"BillableStatus": {
"Id": 1,
"Name": "<string>"
}
},
"Shipments": [
{
"TrackingNumber": "<string>",
"Carrier": "<string>",
"Status": {
"Id": 1,
"Name": "<string>"
},
"Name": "<string>"
}
],
"Banner": "<string>"
},
"DataContext": null,
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}{
"StatusCode": 100,
"IsSuccess": true,
"Data": null,
"DataContext": {
"TraceId": "<string>"
},
"Notifications": [
{
"Code": "070101",
"Message": "<string>",
"PropertyName": "<string>",
"ActionHint": "<string>",
"DocUrl": "<string>"
}
]
}