Skip to content

Commit

Permalink
Merge pull request #8 from juandesant/main
Browse files Browse the repository at this point in the history
Added missing `self.client` references. Fixes #7.
  • Loading branch information
austinhallett authored Feb 12, 2024
2 parents 08eac5d + ef5d648 commit 3444a6d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions py_jama_client/apis/items_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def get_tagged_items(
"""
resource_path = f"tags/{tag_id}/items"
return self.get_all(
return self.client.get_all(
resource_path,
params,
allowed_results_per_page=allowed_results_per_page,
Expand All @@ -395,7 +395,7 @@ def get_items_upstream_relationships(
"""
resource_path = "items/" + str(item_id) + "/upstreamrelationships"
return self.get_all(
return self.client.get_all(
resource_path,
params,
allowed_results_per_page=allowed_results_per_page,
Expand All @@ -421,7 +421,7 @@ def get_items_downstream_related(
"""
resource_path = f"items/{item_id}/downstreamrelated"
return self.get_all(
return self.client.get_all(
resource_path,
params,
allowed_results_per_page=allowed_results_per_page,
Expand All @@ -446,7 +446,7 @@ def get_items_downstream_relationships(
"""
resource_path = f"items/{item_id}/downstreamrelationships"
return self.get_all(
return self.client.get_all(
resource_path, allowed_results_per_page=allowed_results_per_page
)

Expand All @@ -463,7 +463,7 @@ def get_items_upstream_related(
"""
resource_path = f"items/{item_id}/upstreamrelated"
return self.get_all(resource_path, params, **kwargs)
return self.client.get_all(resource_path, params, **kwargs)

def get_item_workflow_transitions(
self,
Expand All @@ -483,7 +483,7 @@ def get_item_workflow_transitions(
"""
resource_path = f"items/{item_id}/workflowtransitionoptions"
return self.get_all(resource_path, params, **kwargs)
return self.client.get_all(resource_path, params, **kwargs)

def get_item_children(
self,
Expand All @@ -502,7 +502,7 @@ def get_item_children(
Returns: a List of Objects that represent the children of the item passed in.
"""
resource_path = f"items/{item_id}/children"
return self.get_all(
return self.client.get_all(
resource_path,
params,
allowed_results_per_page=allowed_results_per_page,
Expand All @@ -529,7 +529,7 @@ def get_items_synceditems(
"""
resource_path = f"items/{item_id}/synceditems"
return self.get_all(
return self.client.get_all(
resource_path, allowed_results_per_page=allowed_results_per_page
)

Expand Down Expand Up @@ -576,7 +576,7 @@ def get_item_versions(
Returns: JSON array with all versions for the item
"""
resource_path = f"items/{item_id}/versions"
return self.get_all(resource_path, params)
return self.client.get_all(resource_path, params)

def get_item_version(
self,
Expand Down Expand Up @@ -648,7 +648,7 @@ def get_item_versions(
Returns: JSON array with all versions for the item
"""
resource_path = f"items/{item_id}/versions"
return self.get_all(
return self.client.get_all(
resource_path, params, allowed_results_per_page=allowed_results_per_page
)

Expand Down Expand Up @@ -761,7 +761,7 @@ def get_item_tags(
"""
resource_path = f"items/{item_id}/tags"
return self.get_all(
return self.client.get_all(
resource_path,
params,
allowed_results_per_page=allowed_results_per_page,
Expand Down

0 comments on commit 3444a6d

Please sign in to comment.