Skip to content
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

Command support for Scrum board commands #43

Closed
astrostl opened this issue Jun 16, 2016 · 4 comments
Closed

Command support for Scrum board commands #43

astrostl opened this issue Jun 16, 2016 · 4 comments

Comments

@astrostl
Copy link
Contributor

astrostl commented Jun 16, 2016

Howdy, loving the tool.

The Scrum board type (probably Kanban too, perhaps others) has three states: To Do, In Progress, Done. With spaces and caps, unfortunately. But these don't map to commands like jira resolve, nor are there discrete commands for things like jira done. I've worked around this by using jira trans with shell functions, but since this is a built-in board type, I think support in go-jira would be helpful.

@coryb
Copy link
Contributor

coryb commented Jun 16, 2016

Yeah, not sure what to do with those options.

You can create your own commands via configuration:

if you $HOME/.jira.d/config.yml looks something like:

#!/bin/bash
case $JIRA_OPERATION in
    done)
        echo "command: transition"
        echo "transition: Done";;
   in-progress)
        echo "command: transition"
        echo "transition: \"In Progress\"";;
esac

Something like that would allow you to run jira done ISSUE or jira in-progress ISSUE. I dont think this will work as-is because the TRANSITION is currently and argument rather than a property passed in, but we could probably make that work if you think it would be useful.

I am not opposed to adding new top-level commands, so we could add something like jira done, jira in-progress, and jira todo, but I have been trying not to pollute the command space more than necessary.

Perhaps we could just make jira trans easier to use by auto-mapping aliases to the TRANSITION argument? Something like jira trans [todo|done|progress|in-progress] ISSUE would internally auto-correct those to "To Do", "Done", "In Progress"?

-Cory

@astrostl
Copy link
Contributor Author

My vote would be for top-levels todo|prog|done, for brevity.

Definitely hear you on not wanting to have a total command fiesta. On the other hand, though, and as I have encountered, this is a native-to-JIRA-itself workflow. Just need to select the (default) Scrum board.

@coryb
Copy link
Contributor

coryb commented Jul 31, 2016

I have added commands for todo|done|prog, but I dont really have a way to test it. So could you give it a whirl? It it in the latest 0.0.13 release:
https://github.com/Netflix-Skunkworks/go-jira/releases/tag/v0.1.3
-Cory

@astrostl
Copy link
Contributor Author

astrostl commented Aug 1, 2016

Can confirm that works, thx!

@astrostl astrostl closed this as completed Aug 1, 2016
pdericson pushed a commit to pdericson/go-jira that referenced this issue Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants