You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(product): Make product naming consistent, rename JIRA to Jira (#286)
Atlassian names the product "Jira".
In this library, the product name is used different (JIRA) and
inconsistent (sometimes JIRA, sometimes Jira).
closes issue #284
* Create and retrieve issue transitions (status updates)
16
-
* Call every API endpoint of the JIRA, even if it is not directly implemented in this library
16
+
* Call every API endpoint of the Jira, even if it is not directly implemented in this library
17
17
18
-
This package is not JIRA API complete (yet), but you can call every API endpoint you want. See [Call a not implemented API endpoint](#call-a-not-implemented-api-endpoint) how to do this. For all possible API endpoints of JIRA have a look at [latest JIRA REST API documentation](https://docs.atlassian.com/jira/REST/latest/).
18
+
This package is not Jira API complete (yet), but you can call every API endpoint you want. See [Call a not implemented API endpoint](#call-a-not-implemented-api-endpoint) how to do this. For all possible API endpoints of Jira have a look at [latest Jira REST API documentation](https://docs.atlassian.com/jira/REST/latest/).
19
19
20
20
## Requirements
21
21
22
22
* Go >= 1.8
23
-
*JIRA v6.3.4 & v7.1.2.
23
+
*Jira v6.3.4 & v7.1.2.
24
24
25
25
## Installation
26
26
@@ -52,7 +52,7 @@ go test -v ./...
52
52
53
53
Please have a look at the [GoDoc documentation](https://godoc.org/github.com/andygrunwald/go-jira) for a detailed API description.
54
54
55
-
The [latest JIRA REST API documentation](https://docs.atlassian.com/jira/REST/latest/) was the base document for this package.
55
+
The [latest Jira REST API documentation](https://docs.atlassian.com/jira/REST/latest/) was the base document for this package.
56
56
57
57
## Examples
58
58
@@ -113,12 +113,12 @@ func main() {
113
113
114
114
#### Authenticate with session cookie [DEPRECATED]
115
115
116
-
JIRA[deprecated this authentication method.](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/) It's not longer available for use.
116
+
Jira[deprecated this authentication method.](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/) It's not longer available for use.
117
117
118
118
119
119
#### Authenticate with OAuth
120
120
121
-
If you want to connect via OAuth to your JIRA Cloud instance checkout the [example of using OAuth authentication with JIRA in Go](https://gist.github.com/Lupus/edafe9a7c5c6b13407293d795442fe67) by [@Lupus](https://github.com/Lupus).
121
+
If you want to connect via OAuth to your Jira Cloud instance checkout the [example of using OAuth authentication with Jira in Go](https://gist.github.com/Lupus/edafe9a7c5c6b13407293d795442fe67) by [@Lupus](https://github.com/Lupus).
122
122
123
123
For more details have a look at the [issue #56](https://github.com/andygrunwald/go-jira/issues/56).
124
124
@@ -175,9 +175,9 @@ func main() {
175
175
176
176
### Call a not implemented API endpoint
177
177
178
-
Not all API endpoints of the JIRA API are implemented into *go-jira*.
178
+
Not all API endpoints of the Jira API are implemented into *go-jira*.
179
179
But you can call them anyway:
180
-
Lets get all public projects of [Atlassian`s JIRA instance](https://jira.atlassian.com/).
180
+
Lets get all public projects of [Atlassian`s Jira instance](https://jira.atlassian.com/).
181
181
182
182
```go
183
183
package main
@@ -209,7 +209,7 @@ func main() {
209
209
210
210
// ...
211
211
// BAM: Bamboo
212
-
// BAMJ: Bamboo JIRA Plugin
212
+
// BAMJ: Bamboo Jira Plugin
213
213
// CLOV: Clover
214
214
// CONF: Confluence
215
215
// ...
@@ -218,15 +218,15 @@ func main() {
218
218
219
219
## Implementations
220
220
221
-
*[andygrunwald/jitic](https://github.com/andygrunwald/jitic) - The JIRA Ticket Checker
221
+
*[andygrunwald/jitic](https://github.com/andygrunwald/jitic) - The Jira Ticket Checker
222
222
223
223
## Code structure
224
224
225
225
The code structure of this package was inspired by [google/go-github](https://github.com/google/go-github).
226
226
227
227
There is one main part (the client).
228
228
Based on this main client the other endpoints, like Issues or Authentication are extracted in services. E.g. `IssueService` or `AuthenticationService`.
229
-
These services own a responsibility of the single endpoints / usecases of JIRA.
229
+
These services own a responsibility of the single endpoints / usecases of Jira.
Copy file name to clipboardExpand all lines: authentication.go
+11-11
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ const (
15
15
authTypeSession=2
16
16
)
17
17
18
-
// AuthenticationService handles authentication for the JIRA instance / API.
18
+
// AuthenticationService handles authentication for the Jira instance / API.
19
19
//
20
-
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#authentication
20
+
// Jira API docs: https://docs.atlassian.com/jira/REST/latest/#authentication
21
21
typeAuthenticationServicestruct {
22
22
client*Client
23
23
@@ -31,7 +31,7 @@ type AuthenticationService struct {
31
31
passwordstring
32
32
}
33
33
34
-
// Session represents a Session JSON response by the JIRA API.
34
+
// Session represents a Session JSON response by the Jira API.
35
35
typeSessionstruct {
36
36
Selfstring`json:"self,omitempty"`
37
37
Namestring`json:"name,omitempty"`
@@ -48,13 +48,13 @@ type Session struct {
48
48
Cookies []*http.Cookie
49
49
}
50
50
51
-
// AcquireSessionCookieWithContext creates a new session for a user in JIRA.
52
-
// Once a session has been successfully created it can be used to access any of JIRA's remote APIs and also the web UI by passing the appropriate HTTP Cookie header.
51
+
// AcquireSessionCookieWithContext creates a new session for a user in Jira.
52
+
// Once a session has been successfully created it can be used to access any of Jira's remote APIs and also the web UI by passing the appropriate HTTP Cookie header.
53
53
// The header will by automatically applied to every API request.
54
54
// Note that it is generally preferrable to use HTTP BASIC authentication with the REST API.
55
-
// However, this resource may be used to mimic the behaviour of JIRA's log-in page (e.g. to display log-in errors to a user).
55
+
// However, this resource may be used to mimic the behaviour of Jira's log-in page (e.g. to display log-in errors to a user).
56
56
//
57
-
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session
57
+
// Jira API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session
0 commit comments