mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 05:23:33 +02:00
when running "dups" on a Process Management Project type, you have to start/stop the task to resolve it
This commit is contained in:
+2
-1
@@ -7,4 +7,5 @@ src/github.com/op/
|
|||||||
src/gopkg.in/
|
src/gopkg.in/
|
||||||
jira
|
jira
|
||||||
jira.exe
|
jira.exe
|
||||||
schemas/*.json
|
schemas/*.json
|
||||||
|
t/issue.props
|
||||||
+8
-4
@@ -376,13 +376,17 @@ Command Options:
|
|||||||
opts["resolution"] = "Duplicate"
|
opts["resolution"] = "Duplicate"
|
||||||
trans, err := c.ValidTransitions(args[0])
|
trans, err := c.ValidTransitions(args[0])
|
||||||
if err == nil {
|
if err == nil {
|
||||||
close := trans.Find("close")
|
if trans.Find("close") != nil {
|
||||||
if close != nil {
|
|
||||||
err = c.CmdTransition(args[0], "close")
|
err = c.CmdTransition(args[0], "close")
|
||||||
} else {
|
} else if trans.Find("done") != nil {
|
||||||
// for now just assume if there is no "close", then
|
// for now just assume if there is no "close", then
|
||||||
// there is a "done" state
|
// there is a "done" state
|
||||||
err = c.CmdTransition(args[0], "done")
|
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")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -435,7 +439,7 @@ Command Options:
|
|||||||
case "in-progress":
|
case "in-progress":
|
||||||
requireArgs(1)
|
requireArgs(1)
|
||||||
setEditing(false)
|
setEditing(false)
|
||||||
err = c.CmdTransition(args[0], "In Progress")
|
err = c.CmdTransition(args[0], "Progress")
|
||||||
case "comment":
|
case "comment":
|
||||||
requireArgs(1)
|
requireArgs(1)
|
||||||
setEditing(true)
|
setEditing(true)
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ export JIRA_LOG_FORMAT="%{level:-5s} %{message}"
|
|||||||
PLAN 84
|
PLAN 84
|
||||||
|
|
||||||
# cleanup from previous failed test executions
|
# 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
|
# reset login
|
||||||
RUNS $jira logout
|
RUNS $jira logout
|
||||||
|
|||||||
-132
@@ -1,132 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
eval "$(curl -q -s https://raw.githubusercontent.com/coryb/osht/master/osht.sh)"
|
|
||||||
cd $(dirname $0)
|
|
||||||
jira=../jira
|
|
||||||
|
|
||||||
PLAN 24
|
|
||||||
|
|
||||||
RUNS $jira create --project BASIC -o summary=summary -o description=description --noedit --saveFile issue.props
|
|
||||||
issue=$(awk '/issue/{print $2}' issue.props)
|
|
||||||
DIFF <<EOF
|
|
||||||
OK $issue http://localhost:8080/browse/$issue
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira view $issue
|
|
||||||
DIFF <<EOF
|
|
||||||
issue: $issue
|
|
||||||
created: a minute ago
|
|
||||||
status: To Do
|
|
||||||
summary: summary
|
|
||||||
project: BASIC
|
|
||||||
issuetype: Bug
|
|
||||||
assignee: gojira
|
|
||||||
reporter: gojira
|
|
||||||
priority: Medium
|
|
||||||
description: |
|
|
||||||
description
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira create --project SCRUM -o summary=summary -o description=description --noedit --saveFile issue.props
|
|
||||||
issue=$(awk '/issue/{print $2}' issue.props)
|
|
||||||
DIFF <<EOF
|
|
||||||
OK $issue http://localhost:8080/browse/$issue
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira view $issue
|
|
||||||
DIFF <<EOF
|
|
||||||
issue: $issue
|
|
||||||
created: a minute ago
|
|
||||||
status: To Do
|
|
||||||
summary: summary
|
|
||||||
project: SCRUM
|
|
||||||
issuetype: Bug
|
|
||||||
assignee: gojira
|
|
||||||
reporter: gojira
|
|
||||||
priority: Medium
|
|
||||||
description: |
|
|
||||||
description
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira create --project KANBAN -o summary=summary -o description=description --noedit --saveFile issue.props
|
|
||||||
issue=$(awk '/issue/{print $2}' issue.props)
|
|
||||||
DIFF <<EOF
|
|
||||||
OK $issue http://localhost:8080/browse/$issue
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira view $issue
|
|
||||||
DIFF <<EOF
|
|
||||||
issue: $issue
|
|
||||||
created: a minute ago
|
|
||||||
status: Backlog
|
|
||||||
summary: summary
|
|
||||||
project: KANBAN
|
|
||||||
issuetype: Bug
|
|
||||||
assignee: gojira
|
|
||||||
reporter: gojira
|
|
||||||
priority: Medium
|
|
||||||
description: |
|
|
||||||
description
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira create --project PROJECT -o summary=summary -o description=description --noedit --saveFile issue.props
|
|
||||||
issue=$(awk '/issue/{print $2}' issue.props)
|
|
||||||
DIFF <<EOF
|
|
||||||
OK $issue http://localhost:8080/browse/$issue
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira view $issue
|
|
||||||
DIFF <<EOF
|
|
||||||
issue: $issue
|
|
||||||
created: a minute ago
|
|
||||||
status: To Do
|
|
||||||
summary: summary
|
|
||||||
project: PROJECT
|
|
||||||
issuetype: Task
|
|
||||||
assignee: gojira
|
|
||||||
reporter: gojira
|
|
||||||
priority: Medium
|
|
||||||
description: |
|
|
||||||
description
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira create --project PROCESS -o summary=summary -o description=description --noedit --saveFile issue.props
|
|
||||||
issue=$(awk '/issue/{print $2}' issue.props)
|
|
||||||
DIFF <<EOF
|
|
||||||
OK $issue http://localhost:8080/browse/$issue
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira view $issue
|
|
||||||
DIFF <<EOF
|
|
||||||
issue: $issue
|
|
||||||
created: a minute ago
|
|
||||||
status: Open
|
|
||||||
summary: summary
|
|
||||||
project: PROCESS
|
|
||||||
issuetype: Task
|
|
||||||
assignee: gojira
|
|
||||||
reporter: gojira
|
|
||||||
priority: Medium
|
|
||||||
description: |
|
|
||||||
description
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira create --project TASK -o summary=summary -o description=description --noedit --saveFile issue.props
|
|
||||||
issue=$(awk '/issue/{print $2}' issue.props)
|
|
||||||
DIFF <<EOF
|
|
||||||
OK $issue http://localhost:8080/browse/$issue
|
|
||||||
EOF
|
|
||||||
|
|
||||||
RUNS $jira view $issue
|
|
||||||
DIFF <<EOF
|
|
||||||
issue: $issue
|
|
||||||
created: a minute ago
|
|
||||||
status: To Do
|
|
||||||
summary: summary
|
|
||||||
project: TASK
|
|
||||||
issuetype: Task
|
|
||||||
assignee: gojira
|
|
||||||
reporter: gojira
|
|
||||||
priority: Medium
|
|
||||||
description: |
|
|
||||||
description
|
|
||||||
EOF
|
|
||||||
Reference in New Issue
Block a user