1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-07-03 00:27:05 +02:00
Commit Graph

149 Commits

Author SHA1 Message Date
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
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
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
436469b62d fix(IssueService.GetWatchers): UserService.GetByAccountID support accountId params 2020-03-11 12:57:09 -07:00
1946cac0fe feat: Implement get remote links method 2019-12-14 08:27:17 -08:00
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
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
afc96b18d1 feat: Add GetAllStatuses 2019-08-19 07:51:49 -07:00
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
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
e93c0e1785 feat: added DeleteAttachment 2019-05-21 09:13:37 -07:00
1ebd7e7f0d feat(issues): Added support for AddWorklog and GetWorklogs 2019-05-18 22:13:20 -07:00
b1589c4b06 Add 'affects versions' to issue fields 2019-04-28 20:10:26 +02:00
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
4c422a4349 Added new rendered field: Description 2019-04-22 23:43:06 +12:00
bbce4afa54 Merge pull request #177 from namely/master
Adds ability to configure whether updates notify users
2018-10-18 13:36:16 -07:00
25ead88f67 Uses nil instead of empty opts 2018-10-18 14:31:40 -04:00
5789d26f6d Fixes the api version 2018-10-17 17:10:54 -04:00
5fe2f1beda throwing prints around because I cant run tests locally 2018-10-17 17:03:54 -04:00
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
b8740711f0 using strings instead of bools 2018-10-17 16:11:24 -04:00
0f70c8e581 Makes Update call UpdateWithOptions with a blank options struct 2018-10-17 15:44:13 -04:00
8ddf76d2c9 Changes a version back that was changed erroneously 2018-10-17 15:18:45 -04:00
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
00a32a0fd7 Uses a jira client config struct 2018-10-17 14:49:25 -04:00
c6f546da3a Adds ability to configure whether updates notify users 2018-10-15 15:55:29 -04:00
b00c22d526 Add MarshalJSON method for Time type 2018-10-15 10:51:13 +02:00
5d5990ab65 add the response to the error message 2018-09-18 09:02:09 +02:00
6e5d1122fb Adding DeleteComment method and stub for some unit tests 2018-09-18 09:02:09 +02:00
b5019e7e0b Merge pull request #156 from MaksymSv/master
Added AggregateTimeEstimate, AggregateTimeSpent and AggregateTimeOriginalEstimate
2018-09-12 12:32:38 -07:00
47f48bdc59 Merge pull request #157 from oroshnivskyy/master
Add CreatedTime() (time.Time, error) func to ChangelogHistory
2018-09-12 12:30:26 -07:00
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
1baa0576ef Merge branch 'master' of github.com:andygrunwald/go-jira 2018-09-03 22:51:52 +03:00
bb1f9e1a50 Add UpdateAssignee method to allow users to change issue assignee 2018-08-26 19:44:17 +01:00
37eae9731c Updated create issue endpoint in accordance to the documentation 2018-08-13 19:04:30 +02:00
9fd9a332be Change POST method to PUT method in UpdateComment 2018-08-10 11:08:51 +08:00
e25bafc579 Add CreatedTime() (time.Time, error) func to ChangelogHistory 2018-07-24 17:58:12 +03:00
3820d4dae6 Added Percent to Progress struct 2018-07-20 15:26:26 +03:00
c621b60752 Added AggregateTimeEstimate, AggregateTimeSpent and AggregateTimeOriginalEstimate to IssueFields 2018-07-20 15:20:54 +03:00
6223ddd833 feat: Add status category constants 2018-06-25 18:35:15 +02:00
fb1ce22699 feat: Add ResolutionService to retrieve resolutions 2018-06-25 17:48:53 +02:00
1c63e25a25 feat: Add get all priorities 2018-06-08 17:57:07 +02:00
6b32ea13a0 Added support for the 'expand:renderfields' option
A couple of fields can be rendered server side, especially the ones
related to dates (that can become string like "2 hours ago"), and the
comments body that can be expanded from JIRA wiki markup into HTML.
A new type IssueRenderedFields has been introduced with a couple of
fields that can be expanded.
2018-06-03 23:42:41 +02:00
18de7ff5fd move agile issue api to sprint, change name of GetByOption to GetWithOptions 2018-04-03 14:29:29 +09:00
8a9b83c1eb Merge branch 'master' of https://github.com/andygrunwald/go-jira 2018-04-03 11:08:30 +09:00
e4572fccba Add support for ValidateQuery param in SearchAPI 2018-03-16 17:19:59 +05:30
04cbb2fe5c use pagination from design 2018-03-16 19:01:13 +09:00
1d38c6cae2 split out agile endpoint for issue get, add api for pagination support 2018-03-13 18:49:27 +09:00
98ec0fc47f if not authenticated, fallback to use api/2 for issue get 2018-03-12 18:24:21 +09:00
6e4048ba34 fix test, merge from upstream. 2018-03-12 17:41:27 +09:00