Skip to content

Instantly share code, notes, and snippets.

@op-ct
Last active October 3, 2016 21:08
Show Gist options
  • Save op-ct/f3b864a58e12b6b46704a8e42480085f to your computer and use it in GitHub Desktop.
Save op-ct/f3b864a58e12b6b46704a8e42480085f to your computer and use it in GitHub Desktop.
jira-cli example to submit a bunch of Jira subtasks
# requires jira-cli gem (from https://github.com/drn/jira-cli; 0.3.6 in example)
PARENT_ISSUE=SIMP-1054
JIRA_ASSIGNEE=chris.tessmer
# Create a batch of new issues
for i in `cat x`; do jira new -p SIMP -c pupmod-simp-$i -s "Fix STRICT_VARIABLES=yes for pupmod-simp-$i" -a ${JIRA_ASIGNEE} -i Sub-task --parent=${PARENT_ISSUE}; done
# requires jira-cli gem (from https://github.com/ruby-jira/jira-cli; 0.3.6 in example)
# Tranisiton a batch of issues to "In Progress"
for i in `seq 1597 1657`; do jira transition "SIMP-$i" -t 'In Progress'; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment