Mike Pountney
8e662462da
Correct naming of parameter: set/add/remove are actions.
...
'command' is not approprirate for the set/add/remove operations, and is
confusing. Rename to 'action' to remove this confusion.
2016-01-03 20:28:02 -08:00
Mike Pountney
ad7bb2b724
Tweak CmdLabels args so that magic happens with CLI
...
The CLI looks for commands (like 'labels') in the first two positional args. This
is how commands like 'BLOCKER blocks ISSUE' work.
As per @coryb's comments in #21 - this allows us to support set/add/remove in a
consistent way for other types: components for example.
This commit rearranges the command to be as follows:
jira (set/add/remove) labels ISSUE LABELS...
The options to CmdLabels have been reordered accordingly.
2016-01-03 20:10:49 -08:00
Mike Pountney
a8cce44178
Merge branch 'master' into label_command
2016-01-03 19:50:47 -08:00
coryb
35955a7a93
Merge pull request #22 from mikepea/library_break_out
...
Expose key functionality for library consumption
2015-12-31 12:22:09 -08:00
Mike Pountney
f349e25bb9
Expose ViewTicket as per FindIssues
...
This allows external users of the API to retreive issue details, in the same
manner that FindIssues provides for lists of issues.
2015-12-31 12:06:04 -08:00
Mike Pountney
a92a93b282
Add exposed versions of getTemplate and runTemplate
...
GetTemplate and RunTemplate allow external users to access the template system,
and in particular allow them to provide their own Buffer to write the output to.
I've implemented exposed versions calling the private functions, rather than breaking
the internal API. If this isn't a concern, we should remove getTemplate and runTemplate
in a future commit.
2015-12-31 12:03:22 -08:00
Mike Pountney
8645ef11f1
go fmt
2015-12-31 11:52:55 -08:00
Mike Pountney
e042a3e62a
Add 'labels' command to set/add/remove labels
...
This adds 'labels' command, which allows for the setting, addition and removal
of labels on an issue.
'set' action resets the issue labels to the list provided.
'add' action adds the supplied labels to the issue
'remove' action removes the supplied labels from the issue
The API already gracefully handles duplication, removal of non-existant labels, and the
supplying of an empty list of labels (which is useful in the case of 'set')
Eg
jira labels TEST-123 add label1 label2 label3
jira labels TEST-123 remove label1 label2
jira labels TEST-123 set label1 label2 label3
jira labels TEST-123 set # clears any labels on the issue
jira labels TEST-123 add # no-op
jira labels TEST-123 remove # no-op
This mirrors the functionality of the API.
2015-12-24 11:30:52 -08:00
coryb
a738d1515e
Merge pull request #20 from mikepea/add_join_template_func
...
Add a 'join' func to the template engine
2015-12-23 12:05:34 -08:00
Mike Pountney
d4f15ae5c6
Add a 'join' func to the template engine
...
I needed this so that I can display JIRA labels in my 'list' template.
2015-12-23 06:15:31 -08:00
Cory Bennett
bc70b43868
make "jira" golang package, move code from jira/cli to root, move jira/main.go to main/main.go
2015-12-22 17:56:53 -08:00
Cory Bennett
e24b431b7a
Updated Changelog
0.0.19
2015-12-09 20:58:11 -08:00
Cory Bennett
101bc1da68
fix jira trans TRANS ISSUE (case sensitivity issue), also go fmt
2015-12-09 20:57:10 -08:00
Cory Bennett
63e035c5c1
Updated Changelog
0.0.18
2015-12-03 14:47:55 -08:00
Cory Bennett
40bafc9b66
need to default "quiet" to false
2015-12-03 14:47:31 -08:00
Cory Bennett
5d863ffed4
Updated Changelog
0.0.17
2015-12-03 12:56:18 -08:00
Cory Bennett
577394b0bd
add --quiet command to not print the OK ..
...
add --saveFile option to print the issue/link to a file on create command
2015-12-03 12:55:14 -08:00
Cory Bennett
c1a7e1bbdb
fix overrides
2015-12-03 12:21:55 -08:00
Cory Bennett
f904f3c089
add abstract request wrapper to allow you to access/process random apis
...
supported by Jira but not yet supported by go-jira
2015-12-03 11:35:51 -08:00
Cory Bennett
e35e518368
Updated Changelog
0.0.16
2015-11-23 17:09:17 -08:00
Cory Bennett
159d142f37
jira edit should not require one arguemnt (allow for --query)
2015-11-23 17:08:40 -08:00
Cory Bennett
df84d47552
fix CURVER in case of building from src tar.gz
0.0.15
2015-11-23 14:35:41 -08:00
Cory Bennett
fa4ce5647d
tweak build
2015-11-23 14:23:29 -08:00
Cory Bennett
713d300a57
Updated Changelog
2015-11-23 14:17:41 -08:00
Cory Bennett
c8ae7fc685
[ #17 ] print usage on missing arguments
2015-11-23 14:17:09 -08:00
Cory Bennett
80322b648e
bump version
0.0.14
2015-11-17 12:30:11 -08:00
Cory Bennett
f2076a0977
Updated Changelog
2015-11-17 12:30:11 -08:00
coryb
886adb5db2
Merge pull request #16 from oschrenk/fix-typo
...
s/enpoint/endpoint/g
2015-10-16 08:50:52 -07:00
Oliver Schrenk
3bdbdbdaff
s/enpoint/endpoint/g
2015-10-16 11:12:25 +02:00
coryb
544b923fab
Merge pull request #14 from mikepea/ls_with_updated
...
Add 'updated' to queryfields; dateFormat template command; bug fix.
2015-10-15 08:37:47 -07:00
Mike Pountney
13a69e6f44
Implement dateFormat template command
...
Wrapper around time.Format, so that we can make concise lists without
the whole JIRA ISO timestamp, eg:
{{ dateFormat "2006-01-02T15:04" .fields.updated }}
2015-10-15 12:43:03 +01:00
Mike Pountney
fae9f94817
Add 'updated' field to default queryfields.
...
This is pretty essential if you want to get an idea of how stale a ticket is.
2015-10-15 12:35:07 +01:00
Mike Pountney
7d90672736
Fix export-templates option (typo)
2015-10-15 12:05:33 +01:00
Cory Bennett
20faa959aa
when yaml element resolves to "\n" strip it out so we dont post it to jira
2015-10-06 11:54:05 -07:00
Cory Bennett
aaff47d606
print PUT/POST data when using --dryrun to help debug
2015-10-06 11:50:47 -07:00
Cory Bennett
7bfb2946d4
bump version
2015-09-19 00:17:32 -07:00
Cory Bennett
9884281079
Updated Changelog
2015-09-19 00:17:32 -07:00
Cory Bennett
03fce96eb5
replace dead/deprecated code.google.com/p/gopass with golang.org/x/crypto/ssh/terminal for reading password from stdin
0.0.13
2015-09-19 00:17:08 -07:00
Cory Bennett
8f9e6f7d85
bump version
0.0.12
2015-09-18 23:26:16 -07:00
Cory Bennett
65c0240d34
Updated Changelog
2015-09-18 23:26:16 -07:00
Cory Bennett
ccec749a0b
fix exception from "jira create"
2015-09-18 23:24:50 -07:00
Cory Bennett
6a9901f171
add some debug messages to help diagnose login failures
2015-09-18 23:18:38 -07:00
Cory Bennett
868764ac86
bump version
0.0.11
2015-09-16 23:22:06 -07:00
Cory Bennett
f1e7514a00
Updated Changelog
2015-09-16 23:22:06 -07:00
Cory Bennett
92d10c3498
update version when we create changelog entries
2015-09-16 23:21:36 -07:00
Cory Bennett
a9c6b865b6
add --version
2015-09-16 23:16:51 -07:00
Cory Bennett
9cc55a13c1
Updated Changelog
2015-09-16 23:05:02 -07:00
Cory Bennett
b116764d3e
fix command line parser broken in 0.0.10
2015-09-16 23:04:36 -07:00
Cory Bennett
a4aa52fb58
update changelog
0.0.10
2015-09-15 23:43:57 -07:00
Cory Bennett
582f37866f
Updated Changelog
2015-09-15 23:41:20 -07:00