Store development information
Changed onStores development information provided in the request to make it available when viewing issues in Jira. Existing repository and entity data for the same ID will be replaced if the updateSequenceId of existing data is less than the incoming data. Submissions are performed asynchronously. Submitted data will eventually be available in Jira; most updates are available within a short period of time, but may take some time during peak load and/or maintenance times.
Request
- Base URLhttps://your-domain.atlassian.net
- URLhttps://your-domain.atlassian.net/rest/devinfo/0.10/bulk
- Auth
- HTTP basic
- or OAuth 2Authorization code: https://auth.atlassian.com/authorizeToken URL: https://auth.atlassian.com/oauth/token scopes: write:dev-info:jira
Headers
All requests must be signed with either a Connect JWT token or OAuth token for an on-premise integration that corresponds to an app installed in Jira. If the JWT token corresponds to a Connect app that does not define the jiraDevelopmentTool module it will be rejected with a 403. See https://developer.atlassian.com/blog/2015/01/understanding-jwt/ for more details about Connect JWT tokens. See https://developer.atlassian.com/cloud/jira/software/integrate-jsw-cloud-with-onpremises-tools/ for details about on-premise integrations.
Request body
Example request
{
"repositories": [
{
"name": "atlassian-connect-jira-example",
"description": "The repository which stores code of the Atlassian Connect Add-on Devinfo application.",
"forkOf": "56c7c750-cee2-48e2-b920-d7706dfd11f7",
"url": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example",
"commits": [
{
"id": "a7727ee6350c33cdf90826dc21abaa26a5704370",
"associations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
],
"updateSequenceId": 1523494301248,
"message": "README.md edited online with Bitbucket",
"author": {
"name": "Jane Doe",
"email": "jane_doe@atlassian.com",
"username": "jdoe",
"url": "https://atlassian.com/account/jane_doe",
"avatar": "https://atlassian.com/account/jane_doe/avatar/32"
},
"fileCount": 1,
"url": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/commits/a7727ee6350c33cdf90826dc21abaa26a5704370",
"files": [
{
"path": "/home/user/src/atlassian-connect-jira-example/README.md",
"url": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/a7727ee6350c33cdf90826dc21abaa26a5704370/README.md",
"changeType": "MODIFIED",
"linesRemoved": 1
}
],
"authorTimestamp": "2016-10-31T23:27:25+00:00",
"displayId": "a7727ee"
}
],
"branches": [
{
"id": "c6c7c750-cee2-48e2-b920-d7706dfd11f9",
"associations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
],
"updateSequenceId": 1523494301248,
"name": "master",
"lastCommit": {
"id": "a7727ee6350c33cdf90826dc21abaa26a5704370",
"updateSequenceId": 1523494301248,
"message": "README.md edited online with Bitbucket",
"author": {
"name": "Jane Doe",
"email": "jane_doe@atlassian.com",
"username": "jdoe",
"url": "https://atlassian.com/account/jane_doe",
"avatar": "https://atlassian.com/account/jane_doe/avatar/32"
},
"fileCount": 1,
"url": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/commits/a7727ee6350c33cdf90826dc21abaa26a5704370",
"files": [
{
"path": "/home/user/src/atlassian-connect-jira-example/README.md",
"url": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/a7727ee6350c33cdf90826dc21abaa26a5704370/README.md",
"changeType": "MODIFIED",
"linesRemoved": 1
}
],
"authorTimestamp": "2016-10-31T23:27:25+00:00",
"displayId": "a7727ee"
},
"createPullRequestUrl": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/pull-requests/new",
"url": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/branch/master"
}
],
"pullRequests": [
{
"id": "c6c7c750-cee2-48e2-b920-d7706dfd11f9",
"associations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
],
"updateSequenceId": 1523494301248,
"status": "OPEN",
"title": "Pull request 2, fixing all the issues caused by pull request #1",
"author": {
"name": "Jane Doe",
"email": "jane_doe@atlassian.com",
"username": "jdoe",
"url": "https://atlassian.com/account/jane_doe",
"avatar": "https://atlassian.com/account/jane_doe/avatar/32"
},
"commentCount": 42,
"sourceBranch": "ISSUE-1-feature-branch",
"sourceBranchUrl": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/branch/ISSUE-1-feature-branch",
"lastUpdate": "2016-10-31T23:27:25+00:00",
"destinationBranch": "master",
"destinationBranchUrl": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/src/master",
"reviewers": [
{
"name": "Jane Doe",
"approvalStatus": "APPROVED",
"url": "https://atlassian.com/account/jane_doe",
"avatar": "https://atlassian.com/account/jane_doe/avatar/32",
"email": "jane_doe@example.com",
"accountId": "655363:e4ca5e2d-a901-40e3-877e-bf5d22c0f130"
}
],
"url": "https://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/pull-requests/2",
"displayId": "Pull request 2"
}
],
"avatar": "http://bitbucket.org/atlassianlabs/atlassian-connect-jira-example/avatar/32",
"avatarDescription": "Avatar description",
"id": "c6c7c750-cee2-48e2-b920-d7706dfd11f9",
"updateSequenceId": 1523494301248
}
],
"operationType": "NORMAL",
"providerMetadata": {
"product": "Bitbucket Server 6.7.2"
}
}Response
Submission accepted. Each submitted repository and entity that is of a valid format will be eventually available in Jira.
Example response
{
"unknownAssociations": [
{
"associationType": "issueIdOrKeys",
"values": [
"ABC-123",
"ABC-456"
]
}
]
}Changes
- breaking
removed the enum value
DRAFTof the request property//// - breaking
removed the enum value
NEEDSWORKof the request property////// - warning
removed the request property
//// - info
the endpoint scheme security
OAuth2was added to the API - info
the endpoint scheme security
basicAuthwas added to the API - info
added the new optional request property
//// - info
added the new optional request property
//// - info
added the new optional request property
//// - info
the request property
////became optional - info
the request property
////became optional - info
the request property
////became optional - info
request property
////deprecated - info
request property
////deprecated - info
request property
////deprecated - info
added the optional property
to the response with the status
- breaking
- info
added the new optional request property
//// - info
added the new
DRAFTenum value to the request property//// - info
added the new
NEEDSWORKenum value to the request property//////
- info