This section provides information on how to use the REST API with TestFLO elements.
To be able to use TestFLO elements, we have added our dedicated REST API, which is available at https://app.swaggerhub.com/apis-docs/DevinitiApps/testflo-public-api/8.9.0
Since TestFLO 8.1 version the URL pattern has been changed to $jira_context/rest/tms/1.0/api/$api_endpoint. The old URL pattern is compatible but we recommend changing to the new pattern.
You can also use the Jira REST API to perform such operations as create issues, update fields, change issue status and others. For more information on using REST API in Jira, see official Atlassian documentation. Below you will find some examples of using Jira’s REST API and elements from TestFLO:
This endpoint allows you to create Test Case with Steps. Body request should be passed as JSON.
Method: POST
URL: $jira_context/rest/api/2/issue
Body request properties:
See the sample file with a structure (configuration of three columns in Steps) - tc_create_with_steps.json
This endpoint allows you to create Test Case Templates with Steps. Body request should be passed as JSON.
Method: POST
URL: $jira_context/rest/api/2/issue
Body request properties:
See the sample file with a structure (configuration of three columns in Steps) - tct_create_with_steps.json
This endpoint allows you to create Test Case Templates with Preconditions. Body request should be passed as JSON.
Method: POST
URL: $jira_context/rest/api/2/issue
Body request properties:
See the sample file with a structure - tct_create_with_preconditions.json
This endpoint allows you to update Steps at issue. Body request should be passed as JSON.
Method: PUT
URL: $jira_context/rest/api/2/issue/{ISSUE-KEY}
Body request properties:
See the sample file with a structure (configuration of three columns in Steps) - update_steps_at_issue.json
This endpoint allows you to update Preconditions at issue. Body request should be passed as JSON.
Method: PUT
URL: $jira_context/rest/api/2/issue/{ISSUE-KEY}
Body request properties:
See the sample file with a structure - update_preconditions_at_issue.json
This endpoint allows you to modify Enhanced Issues Picker custom field (Requirement custom field). Body request should be passed as JSON.
Below you will find an example creating Test Case Template with Requirement value.
Method: POST
URL: $jira_context/rest/api/2/issue
Body request properties:
See the sample file with a structure - modify-eip.json