Skip to content

Commit

Permalink
when running "dups" on a Process Management Project type, you have to…
Browse files Browse the repository at this point in the history
… start/stop the task to resolve it
  • Loading branch information
coryb committed Aug 12, 2016
1 parent a328c2d commit 2c91905
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 138 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ src/github.com/op/
src/gopkg.in/
jira
jira.exe
schemas/*.json
schemas/*.json
t/issue.props
12 changes: 8 additions & 4 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,17 @@ Command Options:
opts["resolution"] = "Duplicate"
trans, err := c.ValidTransitions(args[0])
if err == nil {
close := trans.Find("close")
if close != nil {
if trans.Find("close") != nil {
err = c.CmdTransition(args[0], "close")
} else {
} else if trans.Find("done") != nil {
// for now just assume if there is no "close", then
// there is a "done" state
err = c.CmdTransition(args[0], "done")
} else if trans.Find("start") != nil {
err = c.CmdTransition(args[0], "start")
if err == nil {
err = c.CmdTransition(args[0], "stop")
}
}
}

Expand Down Expand Up @@ -435,7 +439,7 @@ Command Options:
case "in-progress":
requireArgs(1)
setEditing(false)
err = c.CmdTransition(args[0], "In Progress")
err = c.CmdTransition(args[0], "Progress")
case "comment":
requireArgs(1)
setEditing(true)
Expand Down
2 changes: 1 addition & 1 deletion t/100basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export JIRA_LOG_FORMAT="%{level:-5s} %{message}"
PLAN 84

# cleanup from previous failed test executions
$jira ls | awk -F: '{print $1}' | while read issue; do ../jira done $issue; done
($jira ls | awk -F: '{print $1}' | while read issue; do ../jira done $issue; done) | sed 's/^/# CLEANUP: /g'

# reset login
RUNS $jira logout
Expand Down
132 changes: 0 additions & 132 deletions t/100create.t

This file was deleted.

0 comments on commit 2c91905

Please sign in to comment.