Skip to content

doing issue create

Create an issue.

doing issue create [flags]

Example usage

doing issue create "I found a bug"
doing issue create "I found a bug" -a "john.doe@company.com"
doing issue create "I found a bug" -a @me
doing issue create "I found a bug" -m
doing issue create "I found a bug" --labels "tag1, tag2"
doing issue create "I found a bug" --description "More details on the bug"
doing issue create "I found a bug" --type "Bug"
doing issue create "This is a task" --type "Task" --parent 12345 
doing issue create "This is a task" --story_points 10
doing issue create "This is a task" --web

Options

Usage: doing issue create [OPTIONS] ISSUE

  Create an issue.

  ISSUE is the title to be used for the new work item.

Options:
  -m, --mine / --not-mine         Assign issue to yourself. Shorthand for '-a
                                  @me'.  [env var: DOING_ISSUE_CREATE_MINE]
  -a, --assignee TEXT             Emailadres or alias of person to assign.
                                  Defaults to empty (unassigned). Use '@me' to
                                  self-assign.  [env var:
                                  DOING_ISSUE_CREATE_ASSIGNEE]
  -b, --body TEXT                 Optional description of the work item.  [env
                                  var: DOING_ISSUE_CREATE_BODY]
  -t, --type TEXT                 Type of work item. Defaults to 'User Story'.
                                  [env var: DOING_ISSUE_CREATE_TYPE]
  -l, --label TEXT                Attach tags (labels) to work item. Comma
                                  separate multiple tags.  [env var:
                                  DOING_ISSUE_CREATE_LABEL]
  -p, --parent TEXT               To create a child work item, specify the ID
                                  of the parent work item.  [env var:
                                  DOING_ISSUE_CREATE_PARENT]
  -w, --web / --no-web            Open newly created issue in the web browser.
                                  [env var: DOING_ISSUE_CREATE_WEB]
  -s, --story_points TEXT         The number of story points to assign. Not
                                  assigned if not specified.  [env var:
                                  DOING_ISSUE_CREATE_STORY_POINTS]
  --add-to-current-sprint / --do-not-add-to-current-sprint
                                  If the item needs to be added to the current
                                  sprint. Defaults to false  [env var:
                                  DOING_ISSUE_CREATE_ADD_TO_CURRENT_SPRINT]
  --help                          Show this message and exit.

In use

Setting custom defaults in the config file:

doing issue create 'fixing a small typo'
# > Created issue #146545 'fixing a small typo' (Task)
#     > added area-path '{your area path}'
#     > added iteration-path '{your iteration path}'
#     > added assignee 'john.doe@domain.com'
# .   > assigned 5 story points
# ... other (required) config items...
default_reviewers: 'john.doe@domain.com'
defaults:
    DOING_CREATE_ISSUE_TYPE: 'Task'
    DOING_WORKON_TYPE: 'Task'
    DOING_ISSUE_CREATE_STORY_POINTS: 5
    DOING_WORKON_STORY_POINTS: 5

Overriding the existing config using environment variables:

export DOING_ISSUE_CREATE_ASSIGNED_TO='jane@company.com'
doing issue create 'fixing a small typo'
# > Created issue #146545 'fixing a small typo' (User Story)
#     > added area-path '{your area path}'
#     > added iteration-path '{your iteration path}'
#     > added assignee 'jane@company.com'
# ... other (required) config items...
default_reviewers: 'john.doe@domain.com'

Using user_aliases set in the config file:

doing issue create 'fixing a small typo' -a john
# > Created issue #146545 'fixing a small typo' (User Story)
#     > added area-path '{your area path}'
#     > added iteration-path '{your iteration path}'
#     > added assignee 'john.doe@domain.com'
# ... other (required) config items...
user_aliases:
    john: John.Doe@company.com
    jane: Jane.Doe@email.net