1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2024-12-14 10:23:11 +02:00
Commit Graph

49 Commits

Author SHA1 Message Date
Bidesh Thapaliya
9543ada034 Fixes the structs tags. Adds test to verify empty fields are ommitted 2016-10-07 10:52:40 +02:00
Bidesh Thapaliya
7219fd57e4 Remove some comments not applicable 2016-10-05 18:07:59 +02:00
Bidesh Thapaliya
1f368f8fe0 Adds method to init issue with meta and fieldConfig. Adds related tests 2016-10-05 18:04:48 +02:00
Bidesh Thapaliya
0ef71af2e8 Preserve resp body in case of error in Create function. 2016-10-05 14:53:30 +02:00
Andy Grunwald
31508ce192 Fixed a few fmt and debug outputs 2016-10-03 13:33:46 +02:00
Andy Grunwald
8d3b47871f Merge branch 'master' of https://github.com/bidesh/go-jira into bidesh-master
* 'master' of https://github.com/bidesh/go-jira:
  Adds test for authentication on expected json. Adds test to metaissue
  Removes check for statuscode as jiraclient already does it. Adds test for nonok status code returned
  Adds test for GetProjectWithName and GetIssueTypeWithName
  Omit more empty attributes when converting from struct to map
  Adds unknown map for arbitrary fields in IssueFields. Adds Custom Marshall,Unmarshall. Adds structs tag where necessary
  Adds metaissue support.
  Completes the APi for session. Adds logout and GetCurrentUser
2016-10-03 13:15:05 +02:00
Bidesh Thapaliya
5ce765977f Adds unknown map for arbitrary fields in IssueFields. Adds Custom Marshall,Unmarshall. Adds structs tag where necessary 2016-09-23 16:19:07 +02:00
Rao Li
4ad59bb4e7 Attempt to retrieve the actual string value of a complex type custom field instead of blindly converting to string. 2016-09-06 16:14:15 -07:00
attack7
7d216396c6 Add epic data to returned issue fields 2016-07-28 16:06:52 -04:00
Andy Grunwald
f1a11a0302 go doc and go lint 2016-07-17 11:41:50 +02:00
Andy Grunwald
a2df25c45a go fmt 2016-07-17 11:24:23 +02:00
Andy Grunwald
4b9e96b367 Moved transition service into issue service, because it relates to the issue api calls 2016-07-17 11:23:49 +02:00
Ignasi Fosch
f7ea942ed3 Comments unmarshaling fixed 2016-07-08 01:21:14 +02:00
Andy Grunwald
c0b29dac50 Adjusted PR
* go doc
* go fmt
* Usage of already existing structs
* Adjustments related to the wrapping response
2016-06-19 15:08:53 +02:00
Andy Grunwald
083961b1b6 Go docs 2016-06-19 14:36:10 +02:00
Maciej Kwiek
a1cf5b494a Add pagination options to Search. 2016-06-16 11:10:30 +02:00
Maciej Kwiek
facc86872b Wrap http.Response in Response struct
The Response struct has StartAt, MaxResults and Total fields, which are
returned from JIRA API in issue search responses. They are now
accessible in Response object.
2016-06-15 17:09:13 +02:00
Brian McKinney
e11c960b6c When creating issue links, the id and self should be omitted along with comment if none is provided 2016-06-14 08:19:14 -06:00
Kenny Levinsen
4b095a159b Expose comment ID 2016-06-07 22:14:56 +02:00
Kenny Levinsen
f416dd0221 Make issue link direction visible 2016-06-07 22:14:56 +02:00
Douglas Chimento
743ca165a1 using Time for WorklogRecord.Started 2016-06-05 10:00:32 -04:00
Andy Grunwald
1628d1b1d3 Adjusted a few things to be in line with other methods 2016-06-04 10:41:34 +02:00
Douglas Chimento
31fcf682f6 Adding tests 2016-06-03 20:51:44 -04:00
Andy Grunwald
7ac3d14dbc go fmt, go doc and reuse of Project struct 2016-06-03 23:25:18 +02:00
Andy Grunwald
883aca79c0 Refactored struct types by reusing already existing components 2016-06-03 23:14:27 +02:00
Evgen Kostenko
c75a2ca567 Merge branch 'master' of https://github.com/andygrunwald/go-jira
# Conflicts:
#	issue.go
2016-06-01 16:08:30 +03:00
Douglas Chimento
7fc559153e using native time.Time 2016-05-29 15:10:19 -04:00
Evgen Kostenko
bbc0470766 Implement workload in issue and Project list 2016-05-29 19:42:38 +03:00
Douglas Chimento
fe0595ab45 updating with search and worklogs 2016-05-29 11:30:45 -04:00
Andy Grunwald
0d2b98ade7 go lint 2016-05-27 14:19:35 +02:00
Andy Grunwald
6eec2f6048 go fmt 2016-05-27 14:15:02 +02:00
Andy Grunwald
c92a43e43d Applied a few smaller code changes, cleanups and removed DoNoClose, because a similar function was merged in between 2016-05-27 14:14:09 +02:00
Andy Grunwald
b1d5d70b51 Merge branch 'attachment' of https://github.com/jasonob/go-jira into jasonob-attachment
* 'attachment' of https://github.com/jasonob/go-jira:
  Increase test coverage slightly and add some robustness
  Add test cases for DoNoClose()
  Add test cases for PostAttachment() and DownloadAttachment(). Fix PostAttachment() to handle response as a JSON array of Attachments. Add Author *Assignee and Thumbnail definition to Attachment structure. Clarify comments on DoNoClose() call
  Ensure Authenticated test validates the path where the AuthenticationService hasn't been initialized
  Moved Authentication() test into AuthenticationService, and add test case to validate it operates correctly
  * Add ability to add and download attachments, including multi-part form handling * Add method to report if the current session is authenticated or not
2016-05-27 13:57:00 +02:00
avadhutp
c6b506ba46 Enable labels for IssueFields 2016-05-25 10:54:34 +01:00
Jason O'Broin
657e960a8f Increase test coverage slightly and add some robustness 2016-05-25 00:47:10 -07:00
Jason O'Broin
3335a9c77f Add test cases for PostAttachment() and DownloadAttachment(). Fix PostAttachment() to handle response as a JSON array of Attachments. Add Author *Assignee and Thumbnail definition to Attachment structure. Clarify comments on DoNoClose() call 2016-05-25 00:04:23 -07:00
Jason O'Broin
2bc0c88214 * Add ability to add and download attachments, including multi-part form handling
* Add method to report if the current session is authenticated or not
2016-05-19 14:11:21 -07:00
avadhutp
506085244e Modified to handle worklog, comment, and updated in JIRA's newest version (6.4) 2016-04-06 11:45:37 +01:00
Andy Grunwald
36ff795367 Updated JIRA API doc links 2016-03-27 14:24:48 +02:00
Andy Grunwald
ec697566b2 go fmt 2016-03-27 14:18:31 +02:00
Elena Grahovac
c920de25cf Add method to link issues
The original cherry-pick was modified.
Thanks for the initial version to @rumyantseva
2016-03-27 14:17:38 +02:00
Andy Grunwald
f40a31fe85 Added AddComment to IssueService 2016-03-27 14:03:40 +02:00
Andy Grunwald
bc2f1e8320 Remove update fields, because this is more like edit issue and this method was not fully complete 2016-03-27 13:53:15 +02:00
Elena Grahovac
1d62c4bf25 POST for comments and PUT for issues - Thanks to @rumyantseva 2016-03-27 13:50:04 +02:00
Daniel Imfeld
10af43a35a Add FixVersions to IssueFields - Thanks to @dimfeld 2016-03-27 13:15:52 +02:00
Andy Grunwald
e14293c196 FIxed test names in ath tests 2016-03-26 23:37:57 +01:00
Andy Grunwald
38d3b84d16 Marked Project, Assignee and Description as omitempty 2015-10-29 15:43:05 +01:00
Andy Grunwald
64eaf9d9d9 Renames IssueType in Issue 2015-09-03 13:35:36 +02:00
Andy Grunwald
e848968f58 Added the first go code 2015-09-03 12:25:21 +02:00