Commit Graph

58 Commits

Author SHA1 Message Date
Mike Pountney 43a2753451 Add --max_results option for 'ls'
This closes #10

Shifts the hardcoded maxResults value for the cmdList json body
into a 'max_results' option.

Note that testing against our JIRA instance, in a project with
more than 1000 open issues, suggests that the JIRA has an internal
limit of 1000 results in a single query.
2015-07-31 17:38:45 +01:00
Cory Bennett 87ab7291e1 udpate version 2015-07-01 09:12:40 -07:00
Cory Bennett b72040bfd4 Merge branch 'master' of github.com:Netflix-Skunkworks/go-jira 2015-07-01 08:50:40 -07:00
Andrew Haigh 10c4aef671 fix "take" command not honouring user option
"take" was simply a partial on "assign", but accidentally used the value
of $USER from the environment rather than `opts["user"]`, preventing the
user from overriding this value in config.yml or as a command-line
argument.
2015-07-01 16:21:26 +10:00
Cory Bennett b5643e545b fix typo 2015-03-02 14:54:24 -08:00
Cory Bennett abc3953448 bump version 2015-02-27 17:50:08 -08:00
Cory Bennett 52eb7f4ed7 allow --sort= to disable sort override 2015-02-24 17:49:21 -08:00
Cory Bennett a5c7a133c0 fix default JIRA_OPERATION env variable 2015-02-24 17:48:59 -08:00
Cory Bennett f42d0b6366 automatically close duplicate issues with "Duplicate" resolution 2015-02-23 12:09:40 -08:00
Cory Bennett 8040746bcf set JIRA_OPERATION to "view" when no operation used (ie: jira GOJIRA-123) 2015-02-23 12:08:54 -08:00
Cory Bennett 90a8ee7c33 add --sort option to "list" command 2015-02-23 12:08:33 -08:00
Cory Bennett 20a16e2d0c bump version 2015-02-21 23:27:53 -08:00
Cory Bennett cc5878fabc handle editor having arguments 2015-02-21 21:15:02 -08:00
Cory Bennett 60f07bcdd6 add more template error handling 2015-02-20 15:03:40 -08:00
Cory Bennett 400b53acc8 gofmt 2015-02-20 14:39:01 -08:00
Cory Bennett 18cfbb337e gofmt 2015-02-20 14:37:55 -08:00
Cory Bennett 923b7f6cc7 allow create template to specify defalt watchers with -o watchers=... 2015-02-20 14:29:33 -08:00
Cory Bennett 71f4a8012d if config files are executable then run them and parse the output 2015-02-20 13:37:24 -08:00
Cory Bennett f95aa3d261 bump version 2015-02-19 13:09:32 -08:00
Cory Bennett 4d95bde10f add --template option to export-templates to export a single template 2015-02-19 13:07:46 -08:00
Cory Bennett fd4ec5e641 add "table" template to be used with "list" command 2015-02-19 12:36:51 -08:00
Cory Bennett 8c07442645 bump version 2015-02-19 10:31:20 -08:00
Cory Bennett f3feff796f [issue #8] detect X-Seraph-Loginreason: AUTHENTICATION_DENIED header to catch login failures 2015-02-19 10:05:51 -08:00
Jay Buffington 5f7b46173a project should always be uppercase
Jira docs say as much:
https://confluence.atlassian.com/display/JIRA/Changing+the+Project+Key+Format#ChangingtheProjectKeyFormat-prerequisites
2015-02-18 19:26:36 -08:00
Jay Buffington 39a194b858 if response is 400, check json for errorMessages and log them 2015-02-18 17:39:37 -08:00
Jay Buffington 4b6329597b validate project 2015-02-18 17:32:56 -08:00
Cory Bennett 03ad7ee9b2 bump version 2015-02-18 15:02:46 -08:00
Cory Bennett af4952621b adding missing --override arguments to various transition commands
add browse command
2015-02-18 15:01:12 -08:00
Cory Bennett 6e2ee2b865 fill in issuetype before running the "create" template 2015-02-18 11:34:24 -08:00
Cory Bennett 6f0d1f5e44 minor tweak to prevent exceptions in some templates
set default for "commit" command to use editor
2015-02-17 16:03:32 -08:00
Cory Bennett 4524d89435 added created field to "view" template 2015-02-17 11:09:24 -08:00
Cory Bennett 1ac6929e56 fix view template for empty description 2015-02-17 10:40:11 -08:00
Cory Bennett 45fb06f6bf add "transition" editable template so you can modify other fields during transitions
add --noedit/--edit options for various commands
sanitize the yaml from the editor so we dont send empty strings when unedited
2015-02-17 10:19:54 -08:00
Cory Bennett 9bf7533fc2 add --watcher and --reporter options to "list" 2015-02-16 15:27:47 -08:00
Cory Bennett e9c866d38b dont write response to log unless request, otherwise response body will have
been read and unavailable to parse later in client code
2015-02-16 15:19:25 -08:00
Cory Bennett a7399c7f48 [issue #4] make sure ~/.jira.d/tmp exists before we write to it during create/edit 2015-02-16 14:31:39 -08:00
Cory Bennett 9d6fdf73e5 add --queryfields option to restrict data returned from jira search api. This is for performance
as the jira issue data can be quite large and we use almost none of it in the "list" template
2015-02-16 14:06:36 -08:00
Cory Bennett b5f62fb092 dont default issuetype unless it is a require param, otherwise "ls" is restricted 2015-02-16 13:21:15 -08:00
Cory Bennett b616e640dd adding --browse option to most command which should open the issue in your favorite browser 2015-02-16 10:34:04 -08:00
Cory Bennett 14a0ae1cc3 fix inner assignee template 2015-02-16 09:51:22 -08:00
Cory Bennett 25539efedd Merge branch 'nil-assignee' of https://github.com/jaybuff/go-jira into jaybuff-nil-assignee 2015-02-16 09:50:57 -08:00
Cory Bennett 421473140a fix indent for override coments in edit template 2015-02-16 08:53:37 -08:00
Jay Buffington d5ac5e677e default view template shouldn't fail when assignee is nil
The default view template was failing with this error whenever I tried to
view a jira that had no assignee:
assignee: 2015-02-16T08:31:58.564-08:00 ERROR [util.go:109] Failed to execute template: template: template:7:20: executing "template" at <.fields.assignee.nam...>: nil pointer evaluating interface {}.name
2015-02-16 08:48:10 -08:00
Cory Bennett 798016de78 [issue #1] trim trailing / on uri 2015-02-15 21:02:28 -08:00
Cory Bennett e1ee1fc29a tweak usage ordering
fix looking for generic "create" template
2015-02-13 16:48:10 -08:00
Cory Bennett 5c3c02f8d8 dont default endpoint make users specify it on command line or in config 2015-02-13 16:38:01 -08:00
Cory Bennett 76ec33e7e3 tweak getTemplate routine 2015-02-13 16:03:03 -08:00
Cory Bennett 97ad931f79 go fmt 2015-02-13 15:44:07 -08:00
Cory Bennett 4c1e0ec93e adding export-templates command
updated edit template to allow for -o overrides
2015-02-13 14:07:20 -08:00
Cory Bennett 7697594fe2 sort usage options, update README 2015-02-13 13:19:10 -08:00