foxythemes / jira-cli Goto Github PK
View Code? Open in Web Editor NEWA jira user friendly command line client
Home Page: https://jiracli.com
License: MIT License
A jira user friendly command line client
Home Page: https://jiracli.com
License: MIT License
I see then when invoking jira user
(node:14984) UnhandledPromiseRejectionWarning: StatusCodeError: 400 - {"errorMessages":["The query parameter 'username' is not supported in GDPR strict mode."],"errors":{}}
Anything I can do to work around it?
~$ jira issue $ISSUE_NAME
TypeError: Cannot read property 'length' of undefined
~$
Just took a very quick look at the source, maybe it's coming from
Lines 287 to 295 in f75d6ea
I'm just proposing that a feature be added to pass queries to commands like jira i
or jira s
to filter the results. Perhaps something like:
jira i -q "project in (P1, P2) and type in (task, \"User Story\") order by key asc"
I admit I don't know if this is possible through the API.
Is it possible to show only issues from a particular active sprint that are also assigned to the current user?
Hi, Using curl/httpie (https://httpie.io) I can access our local self hosted instance, with bearer token. However jira-cli fails.
I've tried using the token and password with jira-cli, also with no username and with a username, i.e. with this .jira-cli.json
.
{"protocol":"https","host":"host.name.org","username":"username","password":"MYTOKEN","apiVersion":"2","strictSSL":true}
Note if I remove the user and password, as follows, anonymous access works with jira-cli:
{"protocol":"https","host":"host.name.org","apiVersion":"2","strictSSL":true}
Then jira p
, returns a few results, with no error:
$ jira p
Key Name
DLM Document Library Maintenance
ELPM E-Learning Presentation Maintenance
SELM Spanish E-Learning Maintenance
As I said this script using httpie in bash works:
HOST=https://out.host.org
TOKEN=MY_API_TOKEN
https GET "${HOST}/rest/api/2/project" -A bearer -a "${TOKEN}"
What am I doing wrong? Or is this an issue with self hosting (I have no access to change the local host config :-(
Hello π
10 months ago I made a companion app for jira-cli
β jira-config. The intention is to make it possible to have more than one configuration for jira-cli
, however >1.2.1
will no longer work because the configuration file name has changed (which it depends on).
I just wanted to let you know! :-)
Also, maybe you want this feature as a part of jira-cli
? I can help out :)
EDIT: Forgot the most important thing: Thank you very much for an awesome package, it's been a part of my local dev environment for over a year and works great!
I would expect the following command to transition my issue to "In Progress"
jira i OHANA-1105 --transition "In Progress"
However, it does not... I am just presented with a list of transitions and can select one.
Hello, first of all thank you for this awesome tool. I would like to ask whether it is possible to output e.g. jira issue show DS-1234
in a json format (or yaml) instead of unstructured output. I was not able to find it in documentation, however I would expect that jira API is returning some json anyway, so I would expect this functionality to be working. Thank you.
###
### The "request" library is not installed automatically anymore.
### But is a dependency of "request-promise".
### Please install it with:
### npm install request --save
###
/Users/tyler.thrailkill/.node/pnpm-global/2/node_modules/.registry.npmjs.org/request-promise/4.2.4/node_modules/request-promise/lib/rp.js:23
throw err;
^
Error: Cannot find module 'request'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:20:18)
at /Users/tyler.thrailkill/.node/pnpm-global/2/node_modules/.registry.npmjs.org/request-promise/4.2.4/node_modules/request-promise/lib/rp.js:11:16
at module.exports (/Users/tyler.thrailkill/.node/pnpm-global/2/node_modules/.registry.npmjs.org/stealthy-require/1.1.1/node_modules/stealthy-require/lib/index.js:62:23)
at Object.<anonymous> (/Users/tyler.thrailkill/.node/pnpm-global/2/node_modules/.registry.npmjs.org/request-promise/4.2.4/node_modules/request-promise/lib/rp.js:10:19)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/tyler.thrailkill/.node/pnpm-global/2/node_modules/.registry.npmjs.org/jira-cl/1.2.1/node_modules/jira-cl/lib/jira.js:43:23)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:20:18)
It appears that the request library needs to be added to package.json.
Likely a blocker for many users. This password is often the same as the corporate VPN.
Storing the password in the user's keychain seems like a better option than #1.
The documentation lists two ways to create an issue:
jira issue create
and jira create
.
When I run the first form, jira issue create
, I get an error:
Error: Issue does not exist or you do not have permission to see it.
I assume the docs are out of date?
Hey! First of all, this project looks awesome π but I'm trying to use this CLI at work, but the proxy is messing everything up.
I've installed jira-cl
, configured my credentials via jira
command and when I type jira i
I'm given the following error message:
> jira i
> (node:14832) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'length' of undefined
> (node:14832) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
When I try jira u
the error message is slightly different:
> jira u
> (node:14871) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): StatusCodeError: 407 - "<PROXY FAIL PAGE CONTENT>"
I would like to pass parameters to jira create
, so instead of going over the interactive options:
β― jira create
? Project: Ops
? Issue type: Task
? Please provide the issue name : Set up Jira CLI
New issue: OPS-7829
I would type a more direct:
β― jira create -p OPS -t task -m "Set up Jira CLI"
Thanks!
Hi,
I've noticed that when I issue jira o <issue>
, the process doe not terminate. I have to manually quit it with CTRL+C. Is that the expected behaviour?
Thank you.
When trying to assign an issue I get the following error:
Error: 'accountId' must be the only user identifying query parameter in GDPR strict mode.
A small change to PR #51 would probably make this a fairly quick fix.
Update the default help command with the latest options
To be clear doesnt appear windows platform per se, as using bash via windows works fine.
Commands like "jira search", etc, work fine via powershell or cmd.exe
Interestingly... when I first attempted and ran "jira" and it began initial config it led me through all the prompts and only hung after the very last one. Pressing ctrl+break aborted it, but the "~/.jira-cli.json" had been successfully created. This seems relevant in case it's a more generic issue with the "prompt the user"
Is there any key in .jira-cli.json
for login with Google account?
It could be something like this jira i -r
and jira i -r <Project Key>
Looking at the documentation on Boards - https://docs.jiracli.com/#general_boards there is nothing clear on how to access a particular board. As it stands the jira command on lists all issues without the ability to filter based on status and I think that being able to view by boards would be useful.
Repro steps:
npm install -g jira-cl
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
added 282 packages, and audited 283 packages in 14s
When showing an issue in the console, the raw text is shown including markup characters.
Since the markup is minimally invasive, this isn't an issue most of the time. With URL's however, this can pose a bit of an issue.
In the raw text, a URL is represented by the markup [link text|URL]
. When link text
is not explicitly set by the user, the link text
is the same as the URL, resulting in [URL|URL]
. For example:
[http://example.org/foo|http://example.org/foo]
My console sees this as the URL http://example.org/foo|http://example.org/foo
and sends my browser to a non-existing page.
It would be nice if jira-cli could pre-process the markup language and render a console friendly representation.
Note: when the user sets a link text
that doesn't look like a URL, this markup doesn't cause an issue.
[Example|http://example.org/foo]
My console correctly sends me to http://example.org/foo
when clicking the link.
In this part of the documentation, it says the command to list users is jira issue
or jira i
.
I would have fixed it but I cannot find the repository for the documentation.
I cloned the project and when I run "npm install" I get an error when babel is being executed:
` rimraf lib && babel src --out-dir lib
src/boards.js -> lib/boards.js
src/config.js -> lib/config.js
src/index.js -> lib/index.js
SyntaxError: src/issues.js: Unexpected token, expected ; (502:31)
500 | * Add comment to issue
501 | */
502 | addComment( issueId, comment ){
| ^
503 | return jira.api.addComment( issueId, comment ).then(function (res) {
504 | console.log(' Issue ' + issueId + ' successfully updated with comment:\n ' + comment);
505 | }).catch(function (err) {
`
I wanted to add some options that are in my jira environment, but I'm having trouble compiling the project :/
Are there any place where I can see the steps required to run the project when you clone it?
I'm not able to authenticate with the current user/pass combo since my jira instance uses SSO. How do I log in with SSO?
request-promise
can allow insecure connections with option insecure: true
Hello! I'd like to be able to create new projects on jira through the cli. Do you think it's doable?
hey, i was wondering if there was a way to auto complete issue keys or jira commands when pressing tab. i'm using oh-my-zsh on OSX
I need to connect to a Jira behind a corporate firewall. Additionally, there are separate instances via a special suffix. I assume that suffix has to be appended.
Also i had to manually add the https protocol, as the config did not set it in the wizard. Also the setting later did work not always right. Anyways: If i then connect, i get the following error message, but no detailed message:
Error retreiving issues list: 401: Unable to connect to JIRA during search.
Is there a way to get a better error log?
Thx
using electron for e.g. will achieve a better result and a binary package that won't required to install nodejs toolchain.
also simpler to maintain and less problematic to deal with a dependency different npm version, node version and so on....
would be possible or are you interested at least in the idea?
Command -
jira i <issueId> -a <user>
Requirement -
It should allow to present the list of users matching user parameter as most of the time we don't know the exact user name. The list to be presented as selectable options.
Find required fields, and allow inputting required ones
Fails to create a new issue because some fields are required for new issues on our Jira projects.
After looking into the Jira API a bit, the expand
query string can be set to get all fields on an issue type. However, with many projects this can be massive. I would suggest waiting to fetch a more detailed set of metadata until after the user has selected the project at the very least, maybe even better to wait until they have selected the type. The request can then be filtered down by project name and issue type to limit the returned data (see https://docs.atlassian.com/software/jira/docs/api/REST/8.1.2/#api/2/issue-getCreateIssueMeta)
When ask the user for initial config data also prompt a password field to encrypt the file.
is there a way to log time for an issue?
also is there a way to see all the options for a given command?
If I don't have the .jira-cli/config.cfg file with my creds in the directory from which i'm executing jira then it fails authentication.
hi,
great work, it's a wonderful tool !
Refer to #30, it will be so usefull to have the option to add labels with "jira create" .
Regards
Like #23 my login is failing, but unlike #23 a reset of the password doesn't work.
Currently I am encountering the same issue, where all attempts at logging in with basic auth is failing over curl. I've tried resetting my password, using curl, but it appears that basic auth fails with my org. Is there any way you could add support for api keys? I think that might fix the issue.
There are some pending fixes; it would be great to get them released.
I'm trying to pipe out the result from jira i
so I can filter with fzf and/or making some script on top of it. Strip out all decoration stuffs will make tasks easier.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.