As we reach the end of September 2024, ThreadFix version 3.x on-premises has officially reached its End-of-Life. Therefore, there is no longer support or updates for this version of the product. We have fully transitioned our product and development teams to focus ThreadFix SaaS and migrating all customers over from the on-premises versions. Our Customer Success and Support teams are here to help you in migrating to ThreadFix SaaS and maximizing the value you see from this improved offering from Coalfire. This is the next phase of ThreadFix and our team is looking forward to continuing to support you on this journey.
Add Defect Tracker to Application 3.0 - API
/rest/{version}/applications/{appId}/appTrackers/addDefectTracker
Descriptor | Value |
---|---|
HTTP Method | POST |
Description | Attach a defect tracker to the application with the specified appId. |
Required Permission | Manage Applications |
Version Introduced | 2.4.0 |
Changes in 2.5.1 | Added "authType" to response. |
Changes in 2.7.9 | Added ability to use project ID in call. |
Changes in 2.7.9.1 | Added workspace parameters for Rally integrations. |
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 |
---|---|---|---|
defectTrackerId | Integer | Yes | ID of the Defect Tracker to attach to the application. |
username | String | Yes* | Username to access the Defect Tracker with. |
password | String | Yes* | Password for the username to access the Defect Tracker with. |
projectName | String | No** | Name of Defect Tracker project to file defects to. |
projectId | String | No** | Native ID of Defect Tracker project to file defects to. |
useDefaultCredentials | Boolean | No | If the Defect Tracker has default credentials, set this to true to use those instead of passing in the users. |
useDefaultProject | Boolean | No | If the Defect Tracker has a default project, set this to true to use it instead of passing in the users. |
defaultRallyWorkspace | String | Yes* | Name of Rally workspace that contains the project the user wishes to map to. |
useDefaultRallyWorkspace | Boolean | No | If the Defect Tracker has a default workspace, set this to true to use it instead of passing in the users. Only for use with Rally defect tracker. |
* ‘username’ and ‘password’ are not required if using ‘useDefaultCredentials’. ‘projectName’ is not required if using ‘useDefaultProject’. 'defaultRallyWorkspace' is not required if using 'useDefaultRallyWorkspace'.
** 'projectName' or 'projectId' required. 'projectId' is currently supported with Jira and Rally defect trackers.
Sample Call:
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'defectTrackerId=10&username=yourUsername&password=yourPassword&projectName=yourPoject' http://localhost:8080/threadfix/rest/latest/applications/1/appTrackers/addDefectTracker
Sample Call Using Default Credentials:
curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'defectTrackerId=10&useDefaultCredentials=true&useDefaultProject=true' http://localhost:8080/threadfix/rest/latest/applications/1/appTrackers/addDefectTracker
Sample Output:
{
"message": "",
"success": true,
"responseCode": -1,
"object": {
"id": 14,
"projectName": "ThreadFix",
"defectTracker": {
"id": 10,
"name": "Created By REST",
"url": "https://yourproject.atlassian.net/",
"defaultUsername": null,
"defaultProductName": null,
"defectTrackerType": {
"id": 3,
"name": "JIRA",
"urlPlaceholder": "https://yourproject.atlassian.net",
"authType":"usernamePassword"
},
"defaultDefectProfiles": []
},
"mainDefaultDefectProfile": null,
"useDefaultCredentials": false,
"useDefaultProject": false
}
}
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.