Querying the Work Items That Can Be Added to the Current Plan
Function
This API is used to query the work items that can be added to the current plan.
Calling Method
For details, see Calling APIs.
URI
POST /v3/plan/{project_id}/{plan_id}/addable-issues
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
plan_id |
Yes |
String |
Definition: Plan ID, which can be obtained by calling the Querying All Plans Visible to the Current User in Pagination Mode API. The value of id in the response message body is the plan ID. Constraints: The value must contain 32 characters. Digits and letters are allowed. Value range: N/A Default value: N/A |
project_id |
Yes |
String |
Definition: 32-character UUID of a project, which uniquely identifies a project. Obtain the value of this parameter from the project_id field in the response body of the Querying the Project List API. Constraints: The value must contain 32 characters. Digits and letters are allowed. Value range: N/A Default value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition: User token. Obtain a token by calling the IAM API forobtaining a user token. The value of X-Subject-Token in the response header is the user token. Constraints: Mandatory. Value range: Minimum length: 10 characters. Maximum length: 32,768 characters. Default value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
subject |
No |
String |
Definition: Filter criteria for querying the work item list. Constraints: N/A Value range: N/A Default value: N/A |
page_no |
No |
String |
Definition: Page index. Constraints: N/A Value range: N/A Default value: N/A |
page_size |
No |
String |
Definition: Page size. Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
result object |
Definition: Returned result. |
status |
String |
Definition: Returned status. Value range: success: Command execution succeeds. error: Command execution failed. |
Parameter |
Type |
Description |
---|---|---|
total_count |
Integer |
Definition: Total number of work items. Value range: N/A |
issue_cur_count |
Integer |
Definition: Number of current work items. Value range: N/A |
issues |
Array of Issue objects |
Definition: Work item. |
Parameter |
Type |
Description |
---|---|---|
updated_on |
String |
Definition: Date when a work item is updated. The value is in timestamp format, for example, 1839340800000. Value range: N/A |
story_point |
StoryPoint object |
Definition: Story point of a work item. Value range: N/A |
subject |
String |
Definition: Owner of a work item. Value range: N/A |
project |
Project object |
Definition: Project. Value range: N/A |
is_parent |
Boolean |
Definition: Whether there are child work items. Value range: true (with child work items) false (no child work items) |
done_ratio |
Integer |
Definition: Work item completion rate. Value range: N/A |
findReleaseDev |
String |
Definition: Publisher. Value range: N/A |
tracker |
Tracker object |
Definition: Work item type. Value range: N/A |
id |
Integer |
Definition: Work item list ID. Value range: N/A |
start_date |
String |
Definition: Start date of a work item. The value is in timestamp format, for example, 1839340800000. Value range: N/A |
assigned_to |
IssueAssignedVO object |
Definition: Work item owner. Value range: N/A |
status_attribute |
Object |
Definition: Work item status. Value range: N/A |
severity |
Severity object |
Definition: Severity. Value range: N/A |
releaseDev |
String |
Definition: Work item release version number. Value range: N/A |
author |
IssueAuthorVO object |
Definition: Work item owner. Value range: N/A |
module |
Object |
Definition: Module of a work item. Value range: N/A |
due_date |
String |
Definition: End date of a work item, in timestamp format, for example, 1839340800000. Value range: N/A |
expected_work_hours |
Integer |
Definition: Estimated workloads of a work item (unit: person-hour). Value range: N/A |
priority |
Priority object |
Definition: Priority. Value range: N/A |
actual_work_hours |
Integer |
Definition: Actual workloads of a work item (unit: person-hour). Value range: N/A |
is_watcher |
Boolean |
Definition: Favorited or not. Value range: true: favorited. false: not favorited. |
deleted |
Boolean |
Definition: Whether to delete. Value range: true: delete false: not delete |
fixed_version |
Object |
Definition: Version where the issue is resolved. Value range: N/A |
is_archived |
Boolean |
Definition: Archived or not. Value range: true: yes false: no. |
created_on |
String |
Definition: Work item creation time, in timestamp format, for example, 1839340800000. Value range: N/A |
domain |
Object |
Definition: Domain of a work item. Value range: N/A |
developer |
Object |
Definition: Developer of a work item. Value range: N/A |
closeder |
Object |
Definition: Closing personnel. Value range: N/A |
position |
String |
Definition: Position of a work item in the list. Value range: N/A |
closed_flag |
Integer |
Definition: Closing flag. Value range: 0 (enabled) 1 (disabled) |
assigned_cc_user |
String |
Definition: Cc recipient of a work item. Value range: N/A |
custom_value_new |
Object |
Definition: Custom field. Value range: N/A |
status |
Status object |
Definition: Work item status. Value range: N/A |
Parameter |
Type |
Description |
---|---|---|
id |
Integer |
Definition: Story point ID. Value range: N/A |
name |
String |
Definition: Story point name. Value range: N/A |
Parameter |
Type |
Description |
---|---|---|
identifier |
String |
Definition: Project UUID. Value range: N/A |
name |
String |
Definition: Project name. Value range: N/A |
id |
Integer |
Definition: Digital ID of a project. Value range: N/A |
type |
String |
Definition: Project type. Value range: Scrum |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Definition: Type name. Value range: 2 (task) 3 (bug) 5 (epic) 6 (feature) 7 (story) |
id |
Integer |
Definition: Type ID. Value range: 2, 3, 5, 6, and 7 |
Parameter |
Type |
Description |
---|---|---|
first_name |
String |
Definition: Username. Value range: N/A |
last_name |
String |
Definition: Last name of the user. Value range: N/A |
identifier |
String |
Definition: 32–character UUID of a user. Value range: N/A |
image_id |
String |
Definition: User avatar ID. Value range: N/A |
assigned_nick_name |
String |
Definition: User alias. Value range: N/A |
name |
String |
Definition: Username. Value range: N/A |
id |
Integer |
Definition: Digital ID of a user. Value range: N/A |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Definition: Work item severity. Value range: 10: critical 11: major 12: minor 13: trivial |
id |
Integer |
Definition: Severity ID. Value range: 10, 11, 12, and 13 |
Parameter |
Type |
Description |
---|---|---|
first_name |
String |
Definition: Username. Value range: N/A |
last_name |
String |
Definition: Last name of the user. Value range: N/A |
identifier |
String |
Definition: Unique ID of the author. Value range: N/A |
image_id |
String |
Definition: User avatar ID. Value range: N/A |
assigned_nick_name |
String |
Definition: User alias. Value range: N/A |
name |
String |
Definition: Username with tenant information, in the format of Tenant name_Username. Value range: N/A |
id |
Integer |
Definition: User ID. Value range: N/A |
Example Requests
{endpoint}/v3/plan/381fcca9c056482d92da3e8b9da71db5/c573497c87414e97a29444c0054c1361/addable-issues { "subject" : "", "page_no" : "1", "page_size" : "15" }
Example Responses
Status code: 200
The successful response of the interface querying the list of work items that can be added to the current plan.
{ "result" : { "total_count" : 321, "issue_cur_count" : 0, "issues" : [ { "updated_on" : "1753695191000", "subject" : "Another work item", "project" : { "identifier" : "c15cc54e338d4506afd9bd8103071ff0", "name" : "Scrum0610ceshi", "id" : 34883337 }, "done_ratio" : 0, "find_release_dev" : "", "tracker" : { "name" : "Epic", "id" : 5 }, "id" : 9191004, "start_date" : "1753660800000", "assigned_to" : { "assigned_nick_name" : "Sam 1", "name" : "devcloud_devcloud_s00404480_01", "last_name" : "devcloud_devcloud_s00404480_01", "id" : 4091, "image_id" : "photo01.png", "first_name" : "devcloud_devcloud_s00404480_01" }, "status_attribute" : { }, "severity" : { "name" : "Minor", "id" : 12 }, "release_dev" : "", "author" : { "name" : "devcloud_devcloud_s00404480_01", "last_name" : "devcloud_devcloud_s00404480_01", "id" : 4091, "image_id" : "photo01.png", "first_name" : "devcloud_devcloud_s00404480_01" }, "module" : { }, "due_date" : "1753747200000", "expected_work_hours" : 0, "priority" : { "name" : "Medium", "id" : 2 }, "actual_work_hours" : 0, "is_watcher" : false, "deleted" : false, "fixed_version" : { }, "is_archived" : false, "created_on" : "1753695183000", "domain" : { }, "developer" : { }, "closeder" : { }, "position" : "9191004.0000000000", "closed_flag" : 0, "assigned_cc_user" : [ ], "custom_value_new" : { }, "status" : { "name" : "New", "id" : 1 } }, { "updated_on" : "1752465766000", "subject" : "Work item", "project" : { "identifier" : "c15cc54e338d4506afd9bd8103071ff0", "name" : "Scrum0610ceshi", "id" : 34883337 }, "done_ratio" : 0, "find_release_dev" : "", "tracker" : { "name" : "Epic", "id" : 5 }, "id" : 9168625, "start_date" : "1752451200000", "assigned_to" : { "assigned_nick_name" : "Sam 1", "name" : "devcloud_devcloud_s00404480_01", "last_name" : "devcloud_devcloud_s00404480_01", "id" : 4091, "image_id" : "photo01.png", "first_name" : "devcloud_devcloud_s00404480_01" }, "status_attribute" : { }, "severity" : { "name" : "Minor", "id" : 12 }, "release_dev" : "", "author" : { "name" : "devcloud_devcloud_s00404480_01", "last_name" : "devcloud_devcloud_s00404480_01", "id" : 4091, "image_id" : "photo01.png", "first_name" : "devcloud_devcloud_s00404480_01" }, "module" : { }, "due_date" : "1752537600000", "expected_work_hours" : 0, "priority" : { "name" : "Medium", "id" : 2 }, "actual_work_hours" : 0, "is_watcher" : false, "deleted" : false, "fixed_version" : { }, "is_archived" : false, "created_on" : "1752465765000", "domain" : { }, "developer" : { }, "closeder" : { }, "position" : "9168625.0000000000", "closed_flag" : 0, "assigned_cc_user" : [ ], "custom_value_new" : { }, "status" : { "name" : "New", "id" : 1 } } ] }, "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
The successful response of the interface querying the list of work items that can be added to the current plan. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot