- Add support to add comments to issues,
jirash issue comment ISSUE <file|->
- Add
jirash version delete ...
andJirashApi.deleteVersion
.
- Add rudimentary support to modify issues,
jirash issue edit ...
- Fix
jirash issue list ...
crash on an issue that does not have a "priority" field.
jirash issue list ...
supports paging through results. Before this it was limited to 50 results.- Add
<JirashApi>.createSearchStream()
of issue search results.
- Support
jirash issue create -f -
to read content from stdin.
-
Support passing a JSON object describing a new JIRA issue to create via:
jirash issue create -E -f JSON-FILE PROJECT
. This can be used to specify custom fields, e.g. the following for "Target Fix Version/s" in Joyent's internal JIRA:"customfield_10070": [ { "name": "2018-05-24 Sector 7" } ]
This is still a little wonky as you need to use
-E, --no-edit
to ensure the editor form handling doesn't get used, because it can lose fidelity. -
Add
sharedWidth
column tojirash filter list
output. -
Add
jirash filters
shortcut forjirash filter list
. -
Change "edit in $EDITOR" handling to put the cursor at the end of the given line, if the editor looks like it is Vi(m).
-
Fix crash in handling error in
jirash create
editor form:$ jirash create TRITON Issue form was saved to "./jirash-20180328T193857-TRITON.issue". Use "jirash create -f ./jirash-20180328T193857-TRITON.issue TRITON" to retry. assert.js:81 throw new assert.AssertionError({ ^ AssertionError: idx should be equal to ndone at next (/Users/trentm/tm/jirash/node_modules/vasync/lib/vasync.js:805:14) at onEdit (/Users/trentm/tm/jirash/lib/cli/do_issue/do_create.js:286:17) at ChildProcess.onKidExit (/Users/trentm/tm/jirash/lib/common.js:472:9) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
jirash issue list FILTER
now includes a components column.
jirash issue get ISSUE
now includes component names in the default summary text.
jirash issue link ISSUE RELATION ISSUE
.jirash issue linktypes
.- [dev] Add prettier (code formatting) to
make check
andmake fmt
. - [dev] Add eslint to
make check
. jirash issues -S,--short ...
option to just show key and full summary, because the clipped summary from default columns is a bit annoying.
- Add
jirash issue create ...
(jirash create ...
as a shortcut). - Fix
jirash issue ls FILTER
case-senstive matching of FILTER against filter names. jirash issues FILTER
shortcut forjirash issue ls FILTER
.- Add hidden
jirash api ...
for doing raw JIRA REST API requests. This is mainly helpful for jirash development.
- Fix "Cannot find module 'VError'" errors.
- Add
jirash version update PROJECT VERSION FIELD=VALUE ...
. - Add
jirash version create PROJECT VERSION-NAME
. - Improve
jirash issue ls FILTER
matching of the "FILTER" term to full filter names: try case-sensitive whole word match to help disambiguate, add a any-substring match attempt.
- Install
jirash
bin innpm install
.
-
jirash 2.x. This is a re-write to use the JIRA REST API. I'll also re-write in node.js because that'll be easier for me and avoids a problem with the default Mac Python 2.7 (/usr/bin/python on macOS 10.12) that uses an old OpenSSL 0.9.8 that doesn't support the TLS version required by, at least my company's, latest JIRA version.
Some commands will be dropped, some added, and some changed. A quick survey at work showed the following are used:
jirash issue
->jirash issue get KEY
,jirash KEY
.jirash issues -f FILTER
->jirash issue list FILTER
jirash createissue
->jirash issue create
(TODO)jirash link KEY-1 RELATION KEY-2
, e.g.jirash link KEY-1 duplicates KEY-2
(TODO)jirash version list PROJ
,jirash version archive PROJ NAME
,jirash version release PROJ NAME
jirash issue -s,--short KEY
Add the short option to display a short issue summary:$key $title
. This is a somewhat biased "short" form that is used at Joyent for commit messages.
-
Change the one-line ("flat") string representation of an issue to no longer have the colon separating the ID and the ticket title. E.g.:
# old $ jirash DOCKER-404 DOCKER-404: when provision fails we should return only req_id and not VM info (josh -> josh, Bug, Normal, Resolved) # new $ jirash DOCKER-404 DOCKER-404 when provision fails we should return only req_id and not VM info (josh -> josh, Bug, Normal, Resolved)
This is motivated by https://github.com/joyent/eng/blob/master/docs/index.md#commit-comments.
jirash createissue ...
intended to default to not passing an assignee, i.e. use the defualt for the project. However, accidentally, when using the editor to create the issue data, it defaulted to 'me'. I don't want that.
- [issue #24]
jirash createissue
improvements around editing the summary/description in your editor:-
jirash createissue -e ...
to explicitly use editor -
jirash createissue -E file ...
to also specify a template file -
If the issue creation fails the editted file will be saved out so you don't lose your changes. The following is printed in that case:
$ jirash createissue VMAPI Note: Your edits have been saved to VMAPI-NNN.1431114917.jirash, reload with: jirash createissue -E VMAPI-NNN.1431114917.jirash ... Traceback (most recent call last): File "/Users/trentm/tm/jirash/lib/jirashell.py", line 1294, in <module> ...
-
- Add support for
"createissue_use_editor": true
in "~/.jirash.json" config which will changejirash createissue PROJECT ...
to open your$EDITOR
to edit the issuesummary
anddescription
.
-
Update
jirash issues -f FILTER
handling of FILTER to prefer a full word match against existing filter names. E.g. A filter of "OPS" would prefer the filter named "OPS: open issues" over "DCOPS: open issues". -
TOOLS-525:
jirash createissue -t TYPE
to specify issue type
-
jirash link <issue> <relation-from-linktypes> <issue>
, e.g.jirash link PROJ-123 depends on PROJ-101
, to link issues. -
jirash linktypes
to list issue link types. -
[issue #10] "createissue_no_browse" config var to skip opening newly created issues in the browser.
-
[issue #16] Make the list of status names meaning "open" for
jirash issues -o
configurable via "open_status_names". See https://github.com/trentm/jirash#configuration.
-
[issue #13] Align column headers in output of 'projects' and 'user' subcommands. By https://github.com/jacques.
-
[issue #11] Prompt for user password if not in "~/.jirash.json" file. I.e. you don't have to save your password in a text file. By https://github.com/jschauma.
TODO: Really should support https://pypi.python.org/pypi/keyring. Pull request (hint hint).
- [issue #8] Remove debugging 'XXX' left in from #6 work.
- [issue #6] Better error handling for running with a Python that doesn't have pyexpat installed (and only when needed for Jira SOAP API calls).
- '-o' flag to 'jirash issues' to include open tickets, but NOT just "Open". Also include "Reopened" and "In Progress".
- Fix case-insensitive searching of statuses in 'jirash issues -s ...'.
jirash issues ...
outputs with tighter representation to fit in console width. Use-l, --long
for more fields and wider output.jirash priorities
-
[issue #2] Hack to avoid UnicodeDecodeError in implicit str + unicode addition in Python 2.7's httplib.py.
-
[issue #3] Add '-c COMPONENT' option to
jirash createissue
. Necessary because some projects require a component. -
[issue #1] Fix create issue with no given assignee
-
jirash resolve FOO-123
No support for setting the resolution (e.g. "Fixed" vs. "Won't Fix") because that's not possible via the Jira APIs. -
jirash resolutions
-
Monkey-patch xmlrpclib to not bork on invalid UTF-8 XML response from Jira's XML-RPC API. Side-effect is that an invalid text field will have decode errors replaced with '?'.
-
jirash statuses
-
jirash issues TERMS...
,jirash issues -f FILTER
-
Bash completion of sub-command names:
$ complete -C 'jirash --bash-completion' jirash # setup bash completion $ jirash cre<TAB> # completes to "jirash createissue"
-
'-a|--assignee' optiotn to 'jirash createissue'
-
jirash filters
-
jirash user USERNAME
(first version)