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.
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.
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
{
"values": [
{
"changes": {
"values": {},
"size": 2154,
"isLastPage": true,
"nextPageStart": 2154,
"start": 2154,
"limit": 2154
},
"fromCommit": {
"displayId": "abcdef0",
"id": "abcdef0123abcdef4567abcdef8987abcdef6543"
},
"toCommit": {
"committer": {
"emailAddress": "charlie@example.com",
"name": "Charlie"
},
"authorTimestamp": 1359075920,
"committerTimestamp": 1449075830,
"author": {
"emailAddress": "charlie@example.com",
"name": "Charlie"
},
"message": "More work on feature 1",
"parents": [
{
"displayId": "abcdef0",
"id": "abcdef0123abcdef4567abcdef8987abcdef6543"
}
],
"displayId": "abcdef0",
"id": "abcdef0123abcdef4567abcdef8987abcdef6543"
},
"repository": {
"scmId": "git",
"hierarchyId": "e3c939f9ef4a7fae272e",
"statusMessage": "Available",
"partition": 2154,
"origin": {
"scmId": "git",
"hierarchyId": "e3c939f9ef4a7fae272e",
"statusMessage": "Available",
"partition": 2154,
"archived": true,
"forkable": true,
"defaultBranch": "main",
"relatedLinks": {},
"slug": "my-repo",
"name": "My repo",
"public": true,
"id": 2154,
"state": "AVAILABLE",
"description": "My repo description",
"scope": "REPOSITORY"
},
"archived": true,
"forkable": true,
"defaultBranch": "main",
"relatedLinks": {},
"slug": "my-repo",
"name": "My repo",
"public": true,
"id": 2154,
"state": "AVAILABLE",
"description": "My repo description",
"scope": "REPOSITORY"
}
}
],
"size": 1,
"isLastPage": true,
"nextPageStart": 2154,
"start": 2154,
"limit": 25
}
Retrieves the enchanced primary entitylink
The authenticated user must have PROJECT_READ permission for the project having the primary enhanced entitylink.
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
{
"displayUrl": "example.com/jira",
"projectName": "My Project",
"applicationLinkId": "a1b54cs4wsd45",
"projectId": 10000,
"projectKey": "MPROJ"
}
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.
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: