my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.9 KiB

3 years ago
  1. # Jira plugin #
  2. CLI support for JIRA interaction
  3. ## Description ##
  4. This plugin provides command line tools for interacting with Atlassian's [JIRA](https://www.atlassian.com/software/jira) bug tracking software.
  5. The interaction is all done through the web. No local installation of JIRA is necessary.
  6. In this document, "JIRA" refers to the JIRA issue tracking server, and `jira` refers to the command this plugin supplies.
  7. ## Usage ##
  8. This plugin supplies one command, `jira`, through which all its features are exposed. Most forms of this command open a JIRA page in your web browser.
  9. ```
  10. jira # performs the default action
  11. jira new # opens a new issue
  12. jira dashboard # opens your JIRA dashboard
  13. jira tempo # opens your JIRA Tempo
  14. jira reported [username] # queries for issues reported by a user
  15. jira assigned [username] # queries for issues assigned to a user
  16. jira myissues # queries for you own issues
  17. jira branch # opens an existing issue matching the current branch name
  18. # The branch name may have prefixes ending in "/": "feature/MP-1234",
  19. # and also suffixes starting with "_": "MP-1234_fix_dashboard"
  20. # In both these cases, the issue opened will be "MP-1234"
  21. jira ABC-123 # opens an existing issue
  22. jira ABC-123 m # opens an existing issue for adding a comment
  23. ```
  24. #### Debugging usage ####
  25. These calling forms are for developers' use, and may change at any time.
  26. ```
  27. jira dumpconfig # displays the effective configuration
  28. ```
  29. ## Setup ##
  30. The URL for your JIRA instance is set by `$JIRA_URL` or a `.jira_url` file.
  31. Add a `.jira-url` file in the base of your project. You can also set `$JIRA_URL` in your `~/.zshrc` or put a `.jira-url` in your home directory. A `.jira-url` in the current directory takes precedence, so you can make per-project customizations.
  32. The same goes with `.jira-prefix` and `$JIRA_PREFIX`. These control the prefix added to all issue IDs, which differentiates projects within a JIRA instance.
  33. For example:
  34. ```
  35. cd to/my/project
  36. echo "https://jira.atlassian.com" >> .jira-url
  37. ```
  38. (Note: The current implementation only looks in the current directory for `.jira-url` and `.jira-prefix`, not up the path, so if you are in a subdirectory of your project, it will fall back to your default JIRA URL. This will probably change in the future though.)
  39. ### Variables ###
  40. * `$JIRA_URL` - Your JIRA instance's URL
  41. * `$JIRA_NAME` - Your JIRA username; used as the default user for `assigned`/`reported` searches
  42. * `$JIRA_PREFIX` - Prefix added to issue ID arguments
  43. * `$JIRA_RAPID_BOARD` - Set to `true` if you use Rapid Board
  44. * `$JIRA_DEFAULT_ACTION` - Action to do when `jira` is called with no arguments; defaults to "new"
  45. ### Browser ###
  46. Your default web browser, as determined by how `open_command` handles `http://` URLs, is used for interacting with the JIRA instance. If you change your system's URL handler associations, it will change the browser that `jira` uses.