Skip to content

Latest commit

 

History

History
691 lines (529 loc) · 33.5 KB

File metadata and controls

691 lines (529 loc) · 33.5 KB

testit_api_client.ProjectWorkItemsApi

All URIs are relative to http://localhost

Method HTTP request Description
api_v2_projects_project_id_work_items_search_grouped_post POST /api/v2/projects/{projectId}/workItems/search/grouped Search for work items and group results by attribute
api_v2_projects_project_id_work_items_search_id_post POST /api/v2/projects/{projectId}/workItems/search/id Search for work items and extract IDs only
api_v2_projects_project_id_work_items_search_post POST /api/v2/projects/{projectId}/workItems/search Search for work items
api_v2_projects_project_id_work_items_search_work_item_id_index_post POST /api/v2/projects/{projectId}/workItems/search/{workItemId}/index Get work item index (position) in a collection by its id.
api_v2_projects_project_id_work_items_tags_get GET /api/v2/projects/{projectId}/workItems/tags Get WorkItems Tags
get_work_items_by_project_id GET /api/v2/projects/{projectId}/workItems Get project work items

api_v2_projects_project_id_work_items_search_grouped_post

[WorkItemGroupModel] api_v2_projects_project_id_work_items_search_grouped_post(project_id)

Search for work items and group results by attribute

Example

  • Api Key Authentication (PrivateToken):
  • Api Key Authentication (Identity.Application):
import time
import testit_api_client
from testit_api_client.api import project_work_items_api
from testit_api_client.model.api_v2_projects_project_id_work_items_search_grouped_post_request import ApiV2ProjectsProjectIdWorkItemsSearchGroupedPostRequest
from testit_api_client.model.problem_details import ProblemDetails
from testit_api_client.model.work_item_group_model import WorkItemGroupModel
from testit_api_client.model.validation_problem_details import ValidationProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = testit_api_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: PrivateToken
configuration.api_key['PrivateToken'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['PrivateToken'] = 'Bearer'

# Configure API key authorization: Identity.Application
configuration.api_key['Identity.Application'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Identity.Application'] = 'Bearer'

# Enter a context with an instance of the API client
with testit_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = project_work_items_api.ProjectWorkItemsApi(api_client)
    project_id = "projectId_example" # str | Unique or global ID of the project
    skip = 1 # int | Amount of items to be skipped (offset) (optional)
    take = 1 # int | Amount of items to be taken (limit) (optional)
    order_by = "OrderBy_example" # str | SQL-like  ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
    search_field = "SearchField_example" # str | Property name for searching (optional)
    search_value = "SearchValue_example" # str | Value for searching (optional)
    api_v2_projects_project_id_work_items_search_grouped_post_request = ApiV2ProjectsProjectIdWorkItemsSearchGroupedPostRequest(None) # ApiV2ProjectsProjectIdWorkItemsSearchGroupedPostRequest |  (optional)

    # example passing only required values which don't have defaults set
    try:
        # Search for work items and group results by attribute
        api_response = api_instance.api_v2_projects_project_id_work_items_search_grouped_post(project_id)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_search_grouped_post: %s\n" % e)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Search for work items and group results by attribute
        api_response = api_instance.api_v2_projects_project_id_work_items_search_grouped_post(project_id, skip=skip, take=take, order_by=order_by, search_field=search_field, search_value=search_value, api_v2_projects_project_id_work_items_search_grouped_post_request=api_v2_projects_project_id_work_items_search_grouped_post_request)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_search_grouped_post: %s\n" % e)

Parameters

Name Type Description Notes
project_id str Unique or global ID of the project
skip int Amount of items to be skipped (offset) [optional]
take int Amount of items to be taken (limit) [optional]
order_by str SQL-like ORDER BY statement (column1 ASC DESC , column2 ASC
search_field str Property name for searching [optional]
search_value str Value for searching [optional]
api_v2_projects_project_id_work_items_search_grouped_post_request ApiV2ProjectsProjectIdWorkItemsSearchGroupedPostRequest [optional]

Return type

[WorkItemGroupModel]

Authorization

PrivateToken, Identity.Application

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Unprocessable Entity -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_v2_projects_project_id_work_items_search_id_post

[str] api_v2_projects_project_id_work_items_search_id_post(project_id)

Search for work items and extract IDs only

Example

  • Api Key Authentication (PrivateToken):
  • Api Key Authentication (Identity.Application):
import time
import testit_api_client
from testit_api_client.api import project_work_items_api
from testit_api_client.model.problem_details import ProblemDetails
from testit_api_client.model.validation_problem_details import ValidationProblemDetails
from testit_api_client.model.api_v2_projects_project_id_work_items_search_id_post_request import ApiV2ProjectsProjectIdWorkItemsSearchIdPostRequest
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = testit_api_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: PrivateToken
configuration.api_key['PrivateToken'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['PrivateToken'] = 'Bearer'

# Configure API key authorization: Identity.Application
configuration.api_key['Identity.Application'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Identity.Application'] = 'Bearer'

# Enter a context with an instance of the API client
with testit_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = project_work_items_api.ProjectWorkItemsApi(api_client)
    project_id = "projectId_example" # str | Unique or global ID of the project
    skip = 1 # int | Amount of items to be skipped (offset) (optional)
    take = 1 # int | Amount of items to be taken (limit) (optional)
    order_by = "OrderBy_example" # str | SQL-like  ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
    search_field = "SearchField_example" # str | Property name for searching (optional)
    search_value = "SearchValue_example" # str | Value for searching (optional)
    api_v2_projects_project_id_work_items_search_id_post_request = ApiV2ProjectsProjectIdWorkItemsSearchIdPostRequest(None) # ApiV2ProjectsProjectIdWorkItemsSearchIdPostRequest |  (optional)

    # example passing only required values which don't have defaults set
    try:
        # Search for work items and extract IDs only
        api_response = api_instance.api_v2_projects_project_id_work_items_search_id_post(project_id)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_search_id_post: %s\n" % e)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Search for work items and extract IDs only
        api_response = api_instance.api_v2_projects_project_id_work_items_search_id_post(project_id, skip=skip, take=take, order_by=order_by, search_field=search_field, search_value=search_value, api_v2_projects_project_id_work_items_search_id_post_request=api_v2_projects_project_id_work_items_search_id_post_request)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_search_id_post: %s\n" % e)

Parameters

Name Type Description Notes
project_id str Unique or global ID of the project
skip int Amount of items to be skipped (offset) [optional]
take int Amount of items to be taken (limit) [optional]
order_by str SQL-like ORDER BY statement (column1 ASC DESC , column2 ASC
search_field str Property name for searching [optional]
search_value str Value for searching [optional]
api_v2_projects_project_id_work_items_search_id_post_request ApiV2ProjectsProjectIdWorkItemsSearchIdPostRequest [optional]

Return type

[str]

Authorization

PrivateToken, Identity.Application

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
400 Bad Request -
401 Unauthorized -
403 Read permission for test library is required -
404 Not Found -
409 Conflict -
422 Unprocessable Entity -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_v2_projects_project_id_work_items_search_post

[WorkItemShortApiResult] api_v2_projects_project_id_work_items_search_post(project_id)

Search for work items

Example

  • Api Key Authentication (PrivateToken):
  • Api Key Authentication (Identity.Application):
import time
import testit_api_client
from testit_api_client.api import project_work_items_api
from testit_api_client.model.problem_details import ProblemDetails
from testit_api_client.model.api_v2_projects_project_id_work_items_search_post_request import ApiV2ProjectsProjectIdWorkItemsSearchPostRequest
from testit_api_client.model.validation_problem_details import ValidationProblemDetails
from testit_api_client.model.work_item_short_api_result import WorkItemShortApiResult
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = testit_api_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: PrivateToken
configuration.api_key['PrivateToken'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['PrivateToken'] = 'Bearer'

# Configure API key authorization: Identity.Application
configuration.api_key['Identity.Application'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Identity.Application'] = 'Bearer'

# Enter a context with an instance of the API client
with testit_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = project_work_items_api.ProjectWorkItemsApi(api_client)
    project_id = "projectId_example" # str | Unique or global ID of the project
    skip = 1 # int | Amount of items to be skipped (offset) (optional)
    take = 1 # int | Amount of items to be taken (limit) (optional)
    order_by = "OrderBy_example" # str | SQL-like  ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
    search_field = "SearchField_example" # str | Property name for searching (optional)
    search_value = "SearchValue_example" # str | Value for searching (optional)
    api_v2_projects_project_id_work_items_search_post_request = ApiV2ProjectsProjectIdWorkItemsSearchPostRequest(None) # ApiV2ProjectsProjectIdWorkItemsSearchPostRequest |  (optional)

    # example passing only required values which don't have defaults set
    try:
        # Search for work items
        api_response = api_instance.api_v2_projects_project_id_work_items_search_post(project_id)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_search_post: %s\n" % e)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Search for work items
        api_response = api_instance.api_v2_projects_project_id_work_items_search_post(project_id, skip=skip, take=take, order_by=order_by, search_field=search_field, search_value=search_value, api_v2_projects_project_id_work_items_search_post_request=api_v2_projects_project_id_work_items_search_post_request)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_search_post: %s\n" % e)

Parameters

Name Type Description Notes
project_id str Unique or global ID of the project
skip int Amount of items to be skipped (offset) [optional]
take int Amount of items to be taken (limit) [optional]
order_by str SQL-like ORDER BY statement (column1 ASC DESC , column2 ASC
search_field str Property name for searching [optional]
search_value str Value for searching [optional]
api_v2_projects_project_id_work_items_search_post_request ApiV2ProjectsProjectIdWorkItemsSearchPostRequest [optional]

Return type

[WorkItemShortApiResult]

Authorization

PrivateToken, Identity.Application

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
400 Bad Request -
401 Unauthorized -
403 Read permission for test library is required -
404 Not Found -
409 Conflict -
422 Unprocessable Entity -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_v2_projects_project_id_work_items_search_work_item_id_index_post

WorkItemIndexApiResult api_v2_projects_project_id_work_items_search_work_item_id_index_post(project_id, work_item_id)

Get work item index (position) in a collection by its id.

Example

  • Api Key Authentication (PrivateToken):
  • Api Key Authentication (Identity.Application):
import time
import testit_api_client
from testit_api_client.api import project_work_items_api
from testit_api_client.model.problem_details import ProblemDetails
from testit_api_client.model.work_item_index_api_result import WorkItemIndexApiResult
from testit_api_client.model.api_v2_projects_project_id_work_items_search_post_request import ApiV2ProjectsProjectIdWorkItemsSearchPostRequest
from testit_api_client.model.validation_problem_details import ValidationProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = testit_api_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: PrivateToken
configuration.api_key['PrivateToken'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['PrivateToken'] = 'Bearer'

# Configure API key authorization: Identity.Application
configuration.api_key['Identity.Application'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Identity.Application'] = 'Bearer'

# Enter a context with an instance of the API client
with testit_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = project_work_items_api.ProjectWorkItemsApi(api_client)
    project_id = "projectId_example" # str | Internal (UUID) or global (integer) identifier
    work_item_id = "workItemId_example" # str | 
    skip = 1 # int | Amount of items to be skipped (offset) (optional)
    take = 1 # int | Amount of items to be taken (limit) (optional)
    order_by = "OrderBy_example" # str | SQL-like  ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
    search_field = "SearchField_example" # str | Property name for searching (optional)
    search_value = "SearchValue_example" # str | Value for searching (optional)
    api_v2_projects_project_id_work_items_search_post_request = ApiV2ProjectsProjectIdWorkItemsSearchPostRequest(None) # ApiV2ProjectsProjectIdWorkItemsSearchPostRequest |  (optional)

    # example passing only required values which don't have defaults set
    try:
        # Get work item index (position) in a collection by its id.
        api_response = api_instance.api_v2_projects_project_id_work_items_search_work_item_id_index_post(project_id, work_item_id)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_search_work_item_id_index_post: %s\n" % e)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Get work item index (position) in a collection by its id.
        api_response = api_instance.api_v2_projects_project_id_work_items_search_work_item_id_index_post(project_id, work_item_id, skip=skip, take=take, order_by=order_by, search_field=search_field, search_value=search_value, api_v2_projects_project_id_work_items_search_post_request=api_v2_projects_project_id_work_items_search_post_request)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_search_work_item_id_index_post: %s\n" % e)

Parameters

Name Type Description Notes
project_id str Internal (UUID) or global (integer) identifier
work_item_id str
skip int Amount of items to be skipped (offset) [optional]
take int Amount of items to be taken (limit) [optional]
order_by str SQL-like ORDER BY statement (column1 ASC DESC , column2 ASC
search_field str Property name for searching [optional]
search_value str Value for searching [optional]
api_v2_projects_project_id_work_items_search_post_request ApiV2ProjectsProjectIdWorkItemsSearchPostRequest [optional]

Return type

WorkItemIndexApiResult

Authorization

PrivateToken, Identity.Application

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Unprocessable Entity -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

api_v2_projects_project_id_work_items_tags_get

[TagShortApiResult] api_v2_projects_project_id_work_items_tags_get(project_id)

Get WorkItems Tags

Use case User sets project internal identifier User runs method execution System returns work items tags

Example

  • Api Key Authentication (PrivateToken):
  • Api Key Authentication (Identity.Application):
import time
import testit_api_client
from testit_api_client.api import project_work_items_api
from testit_api_client.model.tag_short_api_result import TagShortApiResult
from testit_api_client.model.problem_details import ProblemDetails
from testit_api_client.model.validation_problem_details import ValidationProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = testit_api_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: PrivateToken
configuration.api_key['PrivateToken'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['PrivateToken'] = 'Bearer'

# Configure API key authorization: Identity.Application
configuration.api_key['Identity.Application'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Identity.Application'] = 'Bearer'

# Enter a context with an instance of the API client
with testit_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = project_work_items_api.ProjectWorkItemsApi(api_client)
    project_id = "projectId_example" # str | Project internal (UUID) identifier
    is_deleted = True # bool |  (optional)

    # example passing only required values which don't have defaults set
    try:
        # Get WorkItems Tags
        api_response = api_instance.api_v2_projects_project_id_work_items_tags_get(project_id)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_tags_get: %s\n" % e)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Get WorkItems Tags
        api_response = api_instance.api_v2_projects_project_id_work_items_tags_get(project_id, is_deleted=is_deleted)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->api_v2_projects_project_id_work_items_tags_get: %s\n" % e)

Parameters

Name Type Description Notes
project_id str Project internal (UUID) identifier
is_deleted bool [optional]

Return type

[TagShortApiResult]

Authorization

PrivateToken, Identity.Application

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
409 Conflict -
422 Unprocessable Entity -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_work_items_by_project_id

[WorkItemShortModel] get_work_items_by_project_id(project_id)

Get project work items

Use case User sets project internal or global identifier [Optional] User sets isDeleted field value User runs method execution System search project [Optional] If User sets isDeleted field value as true, System search all deleted workitems related to project [Optional] If User sets isDeleted field value as false, System search all workitems related to project which are not deleted If User did not set isDeleted field value, System search all workitems related to project System returns array of found workitems (listed in response model)

Example

  • Api Key Authentication (PrivateToken):
  • Api Key Authentication (Identity.Application):
import time
import testit_api_client
from testit_api_client.api import project_work_items_api
from testit_api_client.model.problem_details import ProblemDetails
from testit_api_client.model.work_item_short_model import WorkItemShortModel
from testit_api_client.model.validation_problem_details import ValidationProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = testit_api_client.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: PrivateToken
configuration.api_key['PrivateToken'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['PrivateToken'] = 'Bearer'

# Configure API key authorization: Identity.Application
configuration.api_key['Identity.Application'] = 'YOUR_API_KEY'

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Identity.Application'] = 'Bearer'

# Enter a context with an instance of the API client
with testit_api_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = project_work_items_api.ProjectWorkItemsApi(api_client)
    project_id = "projectId_example" # str | Project internal (UUID) or global (integer) identifier
    is_deleted = False # bool | If result must consist of only actual/deleted work items (optional) if omitted the server will use the default value of False
    tag_names = [
        "tagNames_example",
    ] # [str] | List of tags to filter by (optional)
    include_iterations = True # bool |  (optional) if omitted the server will use the default value of True
    skip = 1 # int | Amount of items to be skipped (offset) (optional)
    take = 1 # int | Amount of items to be taken (limit) (optional)
    order_by = "OrderBy_example" # str | SQL-like  ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional)
    search_field = "SearchField_example" # str | Property name for searching (optional)
    search_value = "SearchValue_example" # str | Value for searching (optional)

    # example passing only required values which don't have defaults set
    try:
        # Get project work items
        api_response = api_instance.get_work_items_by_project_id(project_id)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->get_work_items_by_project_id: %s\n" % e)

    # example passing only required values which don't have defaults set
    # and optional values
    try:
        # Get project work items
        api_response = api_instance.get_work_items_by_project_id(project_id, is_deleted=is_deleted, tag_names=tag_names, include_iterations=include_iterations, skip=skip, take=take, order_by=order_by, search_field=search_field, search_value=search_value)
        pprint(api_response)
    except testit_api_client.ApiException as e:
        print("Exception when calling ProjectWorkItemsApi->get_work_items_by_project_id: %s\n" % e)

Parameters

Name Type Description Notes
project_id str Project internal (UUID) or global (integer) identifier
is_deleted bool If result must consist of only actual/deleted work items [optional] if omitted the server will use the default value of False
tag_names [str] List of tags to filter by [optional]
include_iterations bool [optional] if omitted the server will use the default value of True
skip int Amount of items to be skipped (offset) [optional]
take int Amount of items to be taken (limit) [optional]
order_by str SQL-like ORDER BY statement (column1 ASC DESC , column2 ASC
search_field str Property name for searching [optional]
search_value str Value for searching [optional]

Return type

[WorkItemShortModel]

Authorization

PrivateToken, Identity.Application

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
400 - `orderBy` statement must have one `.` and no `,` characters - `orderBy` statement has invalid length - `orderBy` statement must have UUID as attribute key - Search field was not found -
401 Unauthorized -
403 Read permission for test library is required -
404 Project with provided ID was not found -
409 Conflict -
422 Unprocessable Entity -

[Back to top] [Back to API list] [Back to Model list] [Back to README]