-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make "worklogs" command print output through template
allow "add worklog" command to open edit template
- Loading branch information
Showing
5 changed files
with
136 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
eval "$(curl -q -s https://raw.githubusercontent.com/coryb/osht/master/osht.sh)" | ||
cd $(dirname $0) | ||
jira="../jira --project BASIC" | ||
export JIRA_LOG_FORMAT="%{level:-5s} %{message}" | ||
|
||
PLAN 8 | ||
|
||
# reset login | ||
RUNS $jira logout | ||
echo "gojira123" | RUNS $jira login | ||
|
||
# cleanup from previous failed test executions | ||
($jira ls | awk -F: '{print $1}' | while read issue; do ../jira done $issue; done) | sed 's/^/# CLEANUP: /g' | ||
|
||
############################################################################### | ||
## Create an issue | ||
############################################################################### | ||
RUNS $jira create -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 | ||
|
||
############################################################################### | ||
## Add a worklog to an issue | ||
############################################################################### | ||
RUNS $jira add worklog $issue --comment "work is hard" --time-spent "1h 12m" --noedit | ||
DIFF <<EOF | ||
OK $issue http://localhost:8080/browse/$issue | ||
EOF | ||
|
||
############################################################################### | ||
## Verify worklog got added to issue | ||
############################################################################### | ||
RUNS $jira worklog $issue | ||
DIFF <<EOF | ||
- # gojira, a minute ago | ||
comment: work is hard | ||
timeSpent: 1h 12m | ||
EOF |