-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functionality to support marking unreleased relaseses released #36
Comments
Hi @tjterris , By any chance did you try it without quotes? (spitballing here - because jira is very particular). Usually the way I get to the bottom of these issues is to output the actual API command to the console and then repeat the command in postman so I can parse through the very verbose error messages given back to us by the api. Judging from ( https://docs.atlassian.com/software/jira/docs/api/REST/8.1.0/#api/2/version-createVersion ) which is a post command ( https://github.com/danshumaker/jira-cli/blob/master/lib/jira/release.js#L15 ), the update command ( https://docs.atlassian.com/software/jira/docs/api/REST/8.1.0/#api/2/version-updateVersion ) should be a put. So we might need to change updates (how you are wanting to use it) to be put commands. sorry for any delays this might cause you waiting for a new version. Feel free to submit patches or pull requests. Help is always welcome. |
Hey @danshumaker Thanks so much for the reply. I tested it again with and without quotes and I wasn't able to be successful. I ended up rolling 2 functions myself to achieve the desired behavior. You're correct, a PUT command was required. I would be happy to contribute to your project since it's such a great tool, but unfortunately I'm incompetent with Javascript! Here are the functions I ended up using, in Python.
|
Man I love python.. Kudos @tjterris for rolling your own. Glad to know the put request worked. As soon as I resolve some merge conflicts+updates for another PR, I'll add put to the release update js command. |
I'm not sure if this functionality is already intended to be working or I'm misunderstanding the use of the
-r, --released
flag, but let's say I create a release via:jira release -d "test 12" -p DEVOPS eid-releases-automator-v1.9.9
which I want to remain marked as "Unreleased" in JIRA.
Then some time later when that release has been deployed to Prod I want to mark it as "Released" in JIRA.
Should this work?
jira release -p DEVOPS -r "eid-releases-automator-v1.9.9"
When I execute the above it just prints the help menu:
Perhaps it's not intended to support updating the status of a release as released or unreleased after the initial release has been created?
Thanks!
The text was updated successfully, but these errors were encountered: