1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-01-20 02:59:58 +02:00

159 Commits

Author SHA1 Message Date
Ahmad Salimi
5601d2bfe2
Feature: Implement delete issue link api (#341) 2021-02-06 16:09:14 +01:00
kernelfail
607c9e4b9a fix RemoteLinkStatus 2020-06-18 23:13:01 +03:00
Cynthia Baran
f50cb07b29
fix: removing the use of username field in searching for users (#297) 2020-05-22 09:38:17 +02:00
Andy Grunwald
146229d2ab
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
2020-05-14 17:18:31 +02:00
Andy Grunwald
ef6d633ae1 style: Fix typos
go-jira/examples/renderedfields/main.go
	Line 51: warning: "Targetting" is a misspelling of "Targeting" (misspell)

go-jira/authentication.go
	Line 169: warning: "authenticaiton" is a misspelling of "authentication" (misspell)

go-jira/issue.go
	Line 802: warning: "specifiying" is a misspelling of "specifying" (misspell)
2020-05-03 17:46:02 +02:00
Suhaib Mujahid
e1f4265e2b
feat(context): Add support for context package 2020-05-03 15:38:32 +02:00
Andy Grunwald
8b64c7f005
fix(issue): IssueService.Search() with a not empty JQL triggers 400 bad request (#292)
The JQL search term is escaped twice.

closes issue #291
2020-05-03 10:05:39 +02:00
Kyle Bradford
4b91cf2b13
feat(IssueService): allow empty JQL (#268) 2020-05-02 23:14:19 +02:00
Andy Grunwald
43e8242f2c
style: Fix staticcheck (static analysis) errors for this library (#283)
* style: Fix staticcheck errors for "error strings should not be capitalized (ST1005)"

staticcheck is a static analysis tool for go.
It reports several "error strings should not be capitalized (ST1005)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "printf-style function with dynamic format ... (SA1006)"

staticcheck is a static analysis tool for go.
It reports several "printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "type X is unused (U1000)"

staticcheck is a static analysis tool for go.
It reports several "type X is unused (U1000)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "should use X instead (S1003 & SA6005)"

staticcheck is a static analysis tool for go.
It reports several

- should use !bytes.Contains(b, []byte(`"password":"bar"`)) instead (S1003)
- should use strings.EqualFold instead (SA6005)

messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "unnecessary use of fmt.Sprintf (S1039)"

staticcheck is a static analysis tool for go.
It report several "unnecessary use of fmt.Sprintf (S1039)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "this value of X is never used (SA4006)"

staticcheck is a static analysis tool for go.
It report several "this value of X is never used (SA4006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "redundant return statement (S1023)"

staticcheck is a static analysis tool for go.
It report several "redundant return statement (S1023)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "possible nil pointer dereference (SA5011)"

staticcheck is a static analysis tool for go.
It report several

    file.go:Line:character: possible nil pointer dereference (SA5011)
        file.go:Line:character: this check suggests that the pointer can be nil

messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280

* style: Fix staticcheck errors for "this value of X is never used (SA4006)"

staticcheck is a static analysis tool for go.
It report several "this value of X is never used (SA4006)" messages.
Here, we fix it to be more compliant with the go coding styleguide.

Related: #280
2020-05-02 23:08:01 +02:00
Luke Young
1fc10e0606
feat: Add Names support on Issue struct (#278) 2020-05-02 10:43:01 +02:00
mehanizm
8c77107df3 fix: change millisecond time format
If millisecond in go time is empty
they will be not exist in result string
if using "999" in format. And jira api
will response with error in the case.

Using "000" fix the problem.

Add test for time marshaling.
2020-04-14 20:55:02 +02:00
mehanizm
f200e158b9 feat: add AddRemoteLink method
– add method AddRemoteLink to add remote links to issue

  - add test for the method

See docs: https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-issue-issueIdOrKey-remotelink-post
2020-04-10 09:55:04 -07:00
Dick Appel
19d3fc0aec fix: paging with load balancer going to endless loop
When used with a load balanced Jira, the SearchPages method would end
up in an endless loop. This was caused by a bug where Jira would not
handle the MaxResults=50 that is sent by defaul properly, thus retur-
ning no issues. The SearchPages method didn't check for empty results
and ended up in an endless loop.

Fixed this by
1. Pre-escaping '&maxResults' to '&MaxResults'.
2. Adding a check in SearchPages to see if the issues array is empty
   before going into the endless 'for'.

Also fixed the appropriate tests.

Fixes issue #260.
2020-03-15 14:02:52 -07:00
clement
436469b62d fix(IssueService.GetWatchers): UserService.GetByAccountID support accountId params 2020-03-11 12:57:09 -07:00
Roman Volodin
1946cac0fe feat: Implement get remote links method 2019-12-14 08:27:17 -08:00
prugala
9ff562ae3e feat: add worklog update method
Allows updating work log entries

API reference url: https://docs.atlassian.com/software/jira/docs/api/REST/7.1.2/#api/2/issue-updateWorklog
2019-12-07 15:08:10 -08:00
Korenevskiy Denis
7530b7cd82 feat: provide access to issue transitions loaded from JIRA API
JIRA API is able to provide clients with list of transitions available
for issue in its current state (https://docs.atlassian.com/software/
jira/docs/api/REST/latest/#api/2/issue-getIssue)

Go-Jira client ignored the 'transitions' information in JIRA API JSON
response. Now it provides full access to transitions available for
current user in issue's current state
2019-12-04 07:07:43 -08:00
Omar
afc96b18d1 feat: Add GetAllStatuses 2019-08-19 07:51:49 -07:00
Roman Volodin
8383e2f5f1 fix: Fix fixversion description tag
There's an error: description filed has structs:name, instead of structs:description
2019-07-10 10:37:33 -07:00
Mark Ramotowski
b3bf8c2d09 fix: empty SearchOptions causing malformed request
prevents empty SearchOptions from being interpolated into the JIRA REST
request when calling Search on the Issue Service
2019-05-22 19:28:25 -07:00
Edwin Kyalangalilwa
e93c0e1785 feat: added DeleteAttachment 2019-05-21 09:13:37 -07:00
falnyr
1ebd7e7f0d feat(issues): Added support for AddWorklog and GetWorklogs 2019-05-18 22:13:20 -07:00
David Url
b1589c4b06 Add 'affects versions' to issue fields 2019-04-28 20:10:26 +02:00
David Url
18969b05a0 Unify FixVersion and Version types
The FixVersion type was missing some fields. Now it is a complete copy
of the more complete Version struct, with the only difference that the
bool fields are pointers (for compatibility reasons).

Fixes #208
2019-04-28 20:10:14 +02:00
Mark Ramotowski
4c422a4349
Added new rendered field: Description 2019-04-22 23:43:06 +12:00
rbriski
bbce4afa54
Merge pull request #177 from namely/master
Adds ability to configure whether updates notify users
2018-10-18 13:36:16 -07:00
spmassot
25ead88f67 Uses nil instead of empty opts 2018-10-18 14:31:40 -04:00
spmassot
5789d26f6d Fixes the api version 2018-10-17 17:10:54 -04:00
spmassot
5fe2f1beda throwing prints around because I cant run tests locally 2018-10-17 17:03:54 -04:00
spmassot
f87c8b0ab5 Moves error handle up so we see the error, instead of just seeing that the value didnt get populated 2018-10-17 16:25:06 -04:00
spmassot
b8740711f0 using strings instead of bools 2018-10-17 16:11:24 -04:00
spmassot
0f70c8e581 Makes Update call UpdateWithOptions with a blank options struct 2018-10-17 15:44:13 -04:00
spmassot
8ddf76d2c9 Changes a version back that was changed erroneously 2018-10-17 15:18:45 -04:00
spmassot
9049c9ff74 Instead of baking config into the client, adds a method call that allows options to be passed in 2018-10-17 15:17:08 -04:00
spmassot
00a32a0fd7 Uses a jira client config struct 2018-10-17 14:49:25 -04:00
spmassot
c6f546da3a Adds ability to configure whether updates notify users 2018-10-15 15:55:29 -04:00
Jannis Andrija Schnitzer
b00c22d526 Add MarshalJSON method for Time type 2018-10-15 10:51:13 +02:00
Thiago Oliveira
5d5990ab65 add the response to the error message 2018-09-18 09:02:09 +02:00
Cory B. White
6e5d1122fb Adding DeleteComment method and stub for some unit tests 2018-09-18 09:02:09 +02:00
rbriski
b5019e7e0b
Merge pull request #156 from MaksymSv/master
Added AggregateTimeEstimate, AggregateTimeSpent and AggregateTimeOriginalEstimate
2018-09-12 12:32:38 -07:00
rbriski
47f48bdc59
Merge pull request #157 from oroshnivskyy/master
Add CreatedTime() (time.Time, error) func to ChangelogHistory
2018-09-12 12:30:26 -07:00
rbriski
5161c44da2
Merge pull request #159 from Tom-Xie/master
Change POST method to PUT method in UpdateComment
2018-09-12 12:26:07 -07:00
Oleh Roshnivskyi
1baa0576ef Merge branch 'master' of github.com:andygrunwald/go-jira 2018-09-03 22:51:52 +03:00
Nate Mara
bb1f9e1a50 Add UpdateAssignee method to allow users to change issue assignee 2018-08-26 19:44:17 +01:00
Machiel Molenaar
37eae9731c Updated create issue endpoint in accordance to the documentation 2018-08-13 19:04:30 +02:00
xiegongshang
9fd9a332be Change POST method to PUT method in UpdateComment 2018-08-10 11:08:51 +08:00
Oleh Roshnivskyi
e25bafc579 Add CreatedTime() (time.Time, error) func to ChangelogHistory 2018-07-24 17:58:12 +03:00
Maksym Savchenko
3820d4dae6 Added Percent to Progress struct 2018-07-20 15:26:26 +03:00
Maksym Savchenko
c621b60752 Added AggregateTimeEstimate, AggregateTimeSpent and AggregateTimeOriginalEstimate to IssueFields 2018-07-20 15:20:54 +03:00
Thibaut Rousseau
6223ddd833
feat: Add status category constants 2018-06-25 18:35:15 +02:00