Create a Jira issue and associate it with a comment on a pull request.
This resource can only be used with comments on a pull request. Attempting to call this resource with a different type of comment (for example, a comment on a commit) will result in an error.
The authenticated user must have REPO_READ permission for the repository containing the comment to call this resource.
The JSON structure for the create issue format is specified by Jira's REST v2 API.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
A String representation of the JSON format Jira create issue request see: Jira REST API
string
The created Jira issue key and the associated comment ID
1
2
3
4
5
curl --request POST \
--url 'http://{baseurl}/rest/jira/latest/comments/{commentId}/issues' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '"<string>"'
1
2
3
4
{
"commentId": 1,
"issueKey": "TEST-123"
}
Retrieve a page of changesets associated with the given issue key.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
number
number
A page of detailed changesets
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/jira/latest/issues/{issueKey}/commits' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"isLastPage": true,
"limit": 25,
"nextPageStart": 2154,
"size": 1,
"start": 2154,
"values": [
{
"changes": {
"isLastPage": true,
"limit": 2154,
"nextPageStart": 2154,
"size": 2154,
"start": 2154,
"values": {}
},
"fromCommit": {
"displayId": "abcdef0",
"id": "abcdef0123abcdef4567abcdef8987abcdef6543"
},
"repository": {
"archived": true,
"description": "My repo description",
"forkable": true,
"hierarchyId": "e3c939f9ef4a7fae272e",
"id": 2154,
"name": "My repo",
"origin": {
"archived": true,
"description": "My repo description",
"forkable": true,
"hierarchyId": "e3c939f9ef4a7fae272e",
"id": 2154,
"name": "My repo",
"partition": 2154,
"project": {
"avatar": "<string>",
"description": "The description for my cool project",
"id": 2154,
"key": "PRJ",
"name": "My Cool Project",
"public": true,
"scope": "PROJECT",
"type": "NORMAL"
},
"public": true,
"relatedLinks": {},
"scmId": "git",
"scope": "REPOSITORY",
"slug": "my-repo",
"state": "AVAILABLE",
"statusMessage": "Available"
},
"partition": 2154,
"project": {
"avatar": "<string>",
"description": "The description for my cool project",
"id": 2154,
"key": "PRJ",
"name": "My Cool Project",
"public": true,
"scope": "PROJECT",
"type": "NORMAL"
},
"public": true,
"relatedLinks": {},
"scmId": "git",
"scope": "REPOSITORY",
"slug": "my-repo",
"state": "AVAILABLE",
"statusMessage": "Available"
},
"toCommit": {
"author": {
"emailAddress": "charlie@example.com",
"name": "Charlie"
},
"authorTimestamp": 1359075920,
"committer": {
"emailAddress": "charlie@example.com",
"name": "Charlie"
},
"committerTimestamp": 1449075830,
"displayId": "abcdef0",
"id": "abcdef0123abcdef4567abcdef8987abcdef6543",
"message": "More work on feature 1",
"parents": [
{
"displayId": "abcdef0",
"id": "abcdef0123abcdef4567abcdef8987abcdef6543"
}
]
}
}
]
}
Retrieves the enchanced primary entitylink
The authenticated user must have PROJECT_READ permission for the project having the primary enhanced entitylink.
Forge and OAuth2 apps cannot access this REST resource.
string
RequiredThe primary enhanced entitylink.
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/jira/latest/projects/{projectKey}/primary-enhanced-entitylink' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
{
"applicationLinkId": "a1b54cs4wsd45",
"displayUrl": "example.com/jira",
"projectId": 10000,
"projectKey": "MPROJ",
"projectName": "My Project"
}
Retrieves Jira issue keys that are associated with the commits in the specified pull request. The number of commits checked for issues is limited to a default of 100.
Forge and OAuth2 apps cannot access this REST resource.
string
Requiredstring
Requiredstring
RequiredA list of Jira issues keys for the pull request
array<RestJiraIssue>
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/jira/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/issues' \
--header 'Accept: application/json;charset=UTF-8'
Rate this page: