Querying Fields
Function
This API is used to query the field list by page. Keywords, including title, field type, and creator, can be used for query.
Calling Method
For details, see Calling APIs.
URI
GET /v1/ipdprojectservice/projects/{project_id}/fields
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
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: Regular expression: ^[A-Za-z0-9]{32}$ Options: N/A Default value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
keyword |
No |
String |
Definition: Keyword search by title, field type, and creator. Constraints: N/A Options: N/A Default value: N/A |
offset |
Yes |
Integer |
Definition: Pagination offset. Constraints: The value must be a multiple of limit. Options: Minimum value: 0. Default value: N/A |
limit |
Yes |
Integer |
Definition: Number of records displayed on each page Constraints: N/A Options: Minimum value: 1. Default value: N/A |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
status |
String |
Definition: Request status. Options: N/A |
message |
String |
Definition: Request failure information. Options: N/A |
result |
FieldListResult object |
Definition: Field list. |
Parameter |
Type |
Description |
---|---|---|
data |
Array of FieldEntity objects |
Definition: Field list. |
total |
Integer |
Definition: Total number of fields in a project. Options: N/A |
Parameter |
Type |
Description |
---|---|---|
display_name |
String |
Definition: Field display name. Options: N/A |
code |
String |
Definition: Field code. Options: N/A |
id |
String |
Definition: Field ID. Options: N/A |
description |
String |
Definition: Field description. Options: N/A |
created_by |
String |
Definition: Display name of the field creator. Options: N/A |
created_date |
String |
Definition: Creation time of a field. Options: N/A |
modified_by |
String |
Definition: Display name of the last updater. Options: N/A |
definition_type |
String |
Definition: Field level. Value range: 1, 2, 3 (system-preset field) 4 (tenant-defined field) 5 (project-defined field) |
field_type_name |
String |
Definition: Field type name. Options: N/A |
required |
Boolean |
Definition: Whether the field is mandatory in the work item. If the field is inconsistent with the workflow configuration, the workflow prevails. Options: true (mandatory) false (optional) |
controlled |
Boolean |
Definition: Whether the field is controlled in the work item. If the controlled field in the baselined work item is changed, the change review process is required. If the field is inconsistent with the workflow configuration, the workflow prevails. Options: true (controlled) false (non-controlled) |
immutable |
Boolean |
Definition: Whether a field can be modified in the work item. If the value is inconsistent with the workflow configuration, the workflow prevails. Options: true (unchangeable) false (changeable) |
no |
Integer |
Definition: Field sequence number. Options: N/A |
all_options |
Array of OptionEntity objects |
Definition: Field option. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Option ID. |
code |
String |
Option code value. |
display_value |
String |
Option display name. |
value |
String |
Unique ID of an option. |
level |
Integer |
Option level, which is used to distinguish field levels. A maximum of four levels are supported. |
sequence |
Integer |
Option sequence. |
parent_id |
String |
Parent option ID. |
Example Requests
Querying fields by keyword
https://{endpoint}/v1/ipdprojectservice/projects/b54914d464d1498a97d683ef198ec448/fields?offset=0&limit=1
Example Responses
Status code: 200
OK
{ "status" : "success", "result" : { "data" : [ { "display_name" : "Subtitle", "code" : "c7186197833374113792", "id" : "994277015639076864", "description" : "222222222222", "created_by" : "Test alias", "created_date" : "1715305846000", "modified_by" : "Test alias", "definition_type" : "4", "field_type_name" : "Multi-line text", "required" : false, "controlled" : false, "immutable" : false, "no" : 9999 } ], "total" : 1 } }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
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