As of December 31st, 2023 ThreadFix 2.X has reached End of Life and is no longer supported. For any further information please contact the Success and Implementation team.
Create Defect Tracker - API
- Kyle Pippin (Unlicensed)
- Robert Shofner (Unlicensed)
- David Harrison (Unlicensed)
- Hector Ruiz (Unlicensed)
/rest/{version}/defectTrackers/new
Descriptor | Value |
---|---|
HTTP Method | POST |
Description | Create a new Defect Tracker |
Required Permission | Manage Defect Trackers |
Version Introduced | 2.4.0 |
Changes in 2.5.1 | Added "authType" field to response. |
Changes in 2.7.9.1 | Added support for Rally workspaces. |
Changes in 2.8 | Added support for TFS collections. |
Request Header Parameters
Parameter | Value | Required | Description |
---|---|---|---|
Accept | String | Yes | A value of ‘application/json’ must be provided. |
Request POST Data Parameters
Parameter | Value | Required | Description |
---|---|---|---|
defectTrackerTypeId | Integer | Yes | The type of tracker to configure. You can get the possible values with /rest/defectTrackers/types. |
name | String | Yes | Name to give the Defect Tracker configuration. |
url | String | Yes | The URL for the tracker. |
defaultUsername | String | No | A default username that can be used when attaching the tracker to an application. |
defaultPassword | String | No | A default password to use with the default username. |
defaultProductName | String | No | A default project that can be used when attaching the tracker to an application. This requires a default username and password to be provided. |
defaultRallyWorkspace | String | No | A default workspace that can be used when attaching the tracker to an application. This requires a default username and password to be provided. Only supported by Rally defect tracker. |
tfsDefaultCollection | String | No | A default collection that can be used when attaching the tracker to an application. This requires a default username and password to be provided. Only supported by TFS defect tracker. |
Sample Call:
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'defectTrackerTypeId=3&name=Created By REST&url=https://yourproject.atlassian.net/' http://localhost:8080/threadfix/rest/latest/defectTrackers/new
Sample Output:
{ Â Â Â "message": "", Â Â Â "success": true, Â Â Â "responseCode": -1, Â Â Â "object": { Â Â Â Â Â Â Â "id": 13, Â Â Â Â Â Â Â "name": " Created By REST ", Â Â Â Â Â Â Â "url": "https://yourproject.atlassian.net/", Â Â Â Â Â Â Â "defaultUsername": "username", Â Â Â Â Â Â Â "defaultProductName": null, Â Â Â Â Â Â Â "defectTrackerType": { Â Â Â Â Â Â Â Â Â Â Â "id": 3, Â Â Â Â Â Â Â Â Â Â Â "name": "JIRA", Â Â Â Â Â Â Â Â Â Â Â "urlPlaceholder": "https://yourproject.atlassian.net", "authType":"usernamePassword" Â Â Â Â Â Â Â }, Â Â Â Â Â Â Â "defaultDefectProfiles": null, Â Â Â Â Â Â Â "applicationDefectTrackers": [] Â Â Â } }
www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.
This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.