Skip to main content

A client for the Jama Connect REST API

Project description

Jama Software

Jama Software is the definitive system of record and action for product development. The company’s modern requirements and test management solution helps enterprises accelerate development time, mitigate risk, slash complexity and verify regulatory compliance. More than 600 product-centric organizations, including NASA, Boeing and Caterpillar use Jama to modernize their process for bringing complex products to market. The venture-backed company is headquartered in Portland, Oregon. For more information, visit jamasoftware.com.

Please visit dev.jamasoftware.com for additional resources and join the discussion in our community community.jamasoftware.com.

py-jama-rest-client

py-jama-rest-client by Jama Software is a Python REST API client for Jama Connect™. The client will allow customers to easily access the REST API to retrieve, and modify data within their Jama Instance.

Please note that this client is distributed as-is as an example and will likely require modification to work for your specific use-case.

Requirements

Setup

Create a new directory and install py-jama-rest-client using pipenv.

mkdir example_project
cd example_project
pipenv --python 3.7
pipenv install py-jama-rest-client

REST Calls Supported in the Client

API information
  • GET available endpoints
Abstract Items
  • GET abstract items by document key(Deprecated)
  • GET abstract items(second method added to support all parameter options. Previous method left to preserve backwards compatibility)
Attachments
  • PUT attachment file, uploads content to an attachment object by attachmentID
  • GET a specific attachment by ID
Items
  • GET filter results, gets all results for the specified filter.
Items
  • GET all items by project
  • GET a specific item by ID
  • GET all downstream relationships for an item by item ID
  • GET all upstream relationships for an item by item ID
  • GET all children of an item
  • GET all synced items
  • GET synced item sync status
  • GET Locked state of an item
  • DELETE an Item by ID
  • PATCH an Item
  • POST an item to a project
  • POST item attachment
  • POST a tag to an item
  • PUT an item
  • PUT item lock
Relationship Types
  • GET all relationship types
  • GET a specific relationship type by ID
Item Types
  • GET all item types
  • GET a specific item type by ID
Pick lists
  • GET all pick lists
  • GET a specific pick list by ID
  • GET all pick list options for a specific pick list by pick list ID
Pick list options
  • GET a specific pick list option by pick list option ID
Projects:
  • GET all projects
  • POST new attachment item
Tags
  • GET all tags for a specific project
  • POST a new tag to a specific project
Test Cycles
  • GET test cycle by test cycle id
Test Plans
  • POST a new test cycle to a test plan by test plan id
Test Runs
  • GET all test runs associated with a particular test cycle id
  • PUT test runs by id. Allows updating of test run fields.
Relationships
  • POST relationship
  • GET relationship by id
  • GET relationships by project id
  • DELETE relationship by id

Usage Examples

Client instantiation

To instantiate a Basic authentication client:

basic_auth_client = JamaClient('https://yourdomain.jamacloud.com', credentials=('username', 'password'))

To instantiate a OAuth authenticated client:

oauth_client = JamaClient('https://yourdomain.jamacloud.com', credentials=('clientID', 'ClientSecret'), oauth=True)

Get all projects

  1. Download get_all_projets.py to your example_project directory
  2. Enter your Jama URL, username, and password into the corrisponding variables at the top of the file.
  3. To execute the script execute the following form your example_project directory:
    pipenv run python get_all_projects.py
    

Additional Documentation

https://jamasoftware.github.io/py-jama-rest-client/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-jama-rest-client-1.7.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_jama_rest_client-1.7.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file py-jama-rest-client-1.7.0.tar.gz.

File metadata

  • Download URL: py-jama-rest-client-1.7.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for py-jama-rest-client-1.7.0.tar.gz
Algorithm Hash digest
SHA256 cae7742e8c357bf683c3ba67bb6e6b9b45101c215cf27a3c89d2c5aff6fa1447
MD5 874e3fc1de6c342f1633f7a13f1d2005
BLAKE2b-256 64d6221b7a879c8b5ce2b5c3f78014b503166dc0a50fc59c621bee15fe43b22d

See more details on using hashes here.

File details

Details for the file py_jama_rest_client-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: py_jama_rest_client-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for py_jama_rest_client-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 998d78db811cf1c58f8e72452a45fef781b0bd7aed09d6595fdf3ab778616a5a
MD5 d3a8afdb52fb6319686bbd0ebbdb84d9
BLAKE2b-256 5de098e87cc6eec3a81b848d1d9b2d906ad0bd1fdac754c2d042548612e6cf22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page