works

Get Post

POST
Gets a work item's information.

Request

This endpoint expects an object.
id
stringRequired
The work's ID.

Response

This endpoint returns an object
work
union
POST
1curl -X POST https://api.devrev.ai/works.get \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "string"
6}'
200Successful
1{
2 "work": {
3 "type": "issue",
4 "id": "string",
5 "owned_by": [
6 {
7 "type": "dev_user",
8 "id": "string",
9 "display_id": "string",
10 "display_name": "string",
11 "display_picture": {
12 "id": "string",
13 "display_id": "string"
14 },
15 "email": "string",
16 "full_name": "string",
17 "state": "active"
18 }
19 ],
20 "title": "string",
21 "applies_to_part": {
22 "type": "capability",
23 "id": "string",
24 "name": "string",
25 "display_id": "string"
26 },
27 "artifacts": [
28 {
29 "id": "string",
30 "display_id": "string"
31 }
32 ],
33 "body": "string",
34 "created_by": {
35 "type": "dev_user",
36 "id": "string",
37 "display_id": "string",
38 "display_name": "string",
39 "display_picture": {
40 "id": "string",
41 "display_id": "string"
42 },
43 "email": "string",
44 "full_name": "string",
45 "state": "active"
46 },
47 "created_date": "2023-01-01T00:00:00Z",
48 "custom_fields": {
49 "string": {}
50 },
51 "custom_schema_fragments": [
52 "string"
53 ],
54 "developed_with": [
55 {
56 "type": "capability",
57 "id": "string",
58 "name": "string",
59 "display_id": "string"
60 }
61 ],
62 "display_id": "string",
63 "modified_by": {
64 "type": "dev_user",
65 "id": "string",
66 "display_id": "string",
67 "display_name": "string",
68 "display_picture": {
69 "id": "string",
70 "display_id": "string"
71 },
72 "email": "string",
73 "full_name": "string",
74 "state": "active"
75 },
76 "modified_date": "2023-01-01T00:00:00Z",
77 "priority": "p0",
78 "reported_by": [
79 {
80 "type": "dev_user",
81 "id": "string",
82 "display_id": "string",
83 "display_name": "string",
84 "display_picture": {
85 "id": "string",
86 "display_id": "string"
87 },
88 "email": "string",
89 "full_name": "string",
90 "state": "active"
91 }
92 ],
93 "stage": {
94 "name": "string"
95 },
96 "stock_schema_fragment": "string",
97 "subtype": "string",
98 "tags": [
99 {
100 "tag": {
101 "id": "string",
102 "name": "string",
103 "display_id": "string"
104 },
105 "value": "string"
106 }
107 ],
108 "target_close_date": "2023-01-01T00:00:00Z",
109 "target_start_date": "2023-01-01T00:00:00Z"
110 }
111}