Issue Tracking Systems can be accessed and modified through this API using four services: GET, POST, PUT, and PATCH. These four services allow for the retrieval, creation, complete update, and partial update of Issue Tracking Systems. You can find more information about the REST API functions on the /wiki/spaces/FLEX/pages/392986625page.
...
Property Name | Type | Required | Description | Example Property Value |
---|---|---|---|---|
JIRA_USER_NAME | String | Yes | User name to login into the JIRA server | username |
JIRA_PASSWORD | String | Yes | API token or password to login into the JIRA server. Jira Documentation contains more information on generating API tokens. | password |
JIRA_PORT | Integer | Yes | Port to access the JIRA system | 1234 |
JIRA_TICKET_REST_PATTERN | String | Yes | Pattern to update/retrieve information on a given JIRA ticket on the JIRA server | /rest/api/2/issue/{JIRA_ISSUE} |
JIRA_TICKET_URL_PATTERN | String | Yes | Pattern to link to a given JIRA ticket on the JIRA server | /browse/{JIRA_ISSUE} |
JIRA_URL | String | Yes | URL to the JIRA system | http://myjira.atlassian.net |
...
Request
Parameter | Required | Type | Description |
---|---|---|---|
Id | Yes | URL | URL parameter for the Id which is used to find and return an issue tracking system |
Include Page | ||||
---|---|---|---|---|
|
Response Codes
HTTP Code | Description |
---|---|
200 | Issue Tracking System instance was found and returned |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Issue Tracking System instance not found |
500 | Unexpected internal server error |
Expand | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
ExampleIf we had an Issue Tracking System in our database with an Id of 11101 with the following attributes
When we run a GET request at the following URL
The GET request would return the following JSON Issue Tracking System object
|
GET by Query Parameters
This GET service will return a list of Issue Tracking Systems in the form of JSON objects based on the query parameters code, name, and issue tracking system type. Issue Tracking Systems are only returned if they match ALL of the specified query parameters. If no query parameters are given this request will return the entire list of Issue Tracking Systems.
Info | ||
---|---|---|
| ||
http://host:port/flexdeploy/rest/v1/topology/integrations/itsinstance? Append the following character sequences to the above URL to specify Query parameters.Use '&' between successive query parameters:instanceCode={instanceCode} instanceName={instanceName} itsName={itsName} Examples:To specify the code parameter only:http://host:port/flexdeploy/rest/v1/topology/integrations/itsinstance?instanceCode={instanceCode} To specify the code and name parameters:http://host:port/flexdeploy/rest/v1/topology/integrations/itsinstance?instanceCode={instanceCode}&instanceName={instanceName} To specify the issue tracking system name only:http://host:port/flexdeploy/rest/v1/topology/integrations/itsinstance?itsName={itsName} |
...
Attributes | Type | Required | Description |
---|---|---|---|
instanceCode | String | Yes | The code of the Issue Tracking System. |
instanceName | String | Yes | The name of the Issue Tracking System. |
issueTrackingSystemId | Integer | Yes | The ID of the type of Issue Tracking System. |
description | String | No | The description of the Issue Tracking System. |
isActive | Boolean | Yes | Whether or not this Issue Tracking System is active. Defaults to true. |
properties | List<PropertyValue> | Depends | The properties associated with the type of Issue Tracking System: requirements depend on the Issue Tracking System selected. |
...
See more details about a PropertyValue object below. |
PropertyValue
Attributes | Type | Description |
---|---|---|
propertyName | String | This is the name of the property |
propertyValue | String | This is the value of the property |
credentialId | Long | Id of the credential associated with the property. Applicable only for encrypted properties |
Include Page | ||||
---|---|---|---|---|
|
Response Codes
...
Attributes | Type | Required | Description |
---|---|---|---|
instanceCode | String | Yes | The code of the Issue Tracking System. |
instanceName | String | Yes | The name of the Issue Tracking System. |
issueTrackingSystemId | Integer | Yes | The ID of the type of Issue Tracking System. |
description | String | No | The description of the Issue Tracking System. |
isActive | Boolean | Yes | Whether or not this Issue Tracking System is active. Defaults to true. |
properties | List<PropertyValue> | Depends | The properties associated with the type of Issue Tracking System: requirements depend on the Issue Tracking System selected. The JSON object must have all of the properties of the instance's ITS. Value for properties not included in input request will be cleared.of the properties of the instance's ITS. Value for properties not included in input request will be cleared. More details about the PropertyValue object are included below. |
PropertyValue
Attributes | Type | Description |
---|---|---|
propertyName | String | This is the name of the property |
propertyValue | String | This is the value of the property |
credentialId | Long | Id of the credential associated with the property. Applicable only for encrypted properties |
Include Page | ||||
---|---|---|---|---|
|
Response Codes
HTTP Code | Description |
---|---|
200 | Issue Tracking System instance was found and updated |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Issue Tracking System instance not found |
500 | Unexpected internal server error |
Expand | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
ExampleIf we had an issue tracking system in our database with an Id of 11223 and had the following attributes
When we run a PUT request at the following URL
And the PUT request receives the following JSON issue tracking system object,
The PUT request would then update the Issue Tracking System with Id 11223 and return the following JSON Issue Tracking System object.
|
PATCH
...
Attributes | Type | Required | Description |
---|---|---|---|
instanceCode | String | No | The code of the Issue Tracking System. |
instanceName | String | No | The name of the Issue Tracking System. |
issueTrackingSystemId | Integer | No | The ID of the type of Issue Tracking System. |
description | String | No | The description of the Issue Tracking System. |
isActive | Boolean | No | Whether or not this Issue Tracking System is active. Defaults to true. |
properties | List<PropertyValue> | No | The properties associated with the type of Issue Tracking System: requirements depend on the Issue Tracking System selected. The JSON object doesn't need to have all of the properties of the ITS. Values provided in input list are the only ones updated. More details about the PropertyValue object are included below. |
PropertyValue
Attributes | Type | Description |
---|---|---|
propertyName | String | This is the name of the property |
propertyValue | String | This is the value of the property |
credentialId | Long | Id of the credential associated with the property. Applicable only for encrypted properties |
Include Page | ||||
---|---|---|---|---|
|
Response Codes
HTTP Code | Description |
---|---|
200 | Issue Tracking System instance was found and updated |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Issue Tracking System instance not found |
500 | Unexpected internal server error |
Expand | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
ExampleIf we had an issue tracking system in our database with an Id of 11223 and had the following attributes
When we run a PATCH request at the following URL
And the PATCH request receives the following JSON issue tracking system object,
The PATCH request would then update the issue tracking system with Id 11223 and return the following JSON issue tracking system object.
|