jira-cli
jira-cli copied to clipboard
How do I attach file to an issue?
Not sure if I missed anything but I didn't find a way to attach a file, this is the primary purpose for me to pose info to JIRA from command-line, it'd be great if we can attach files.
mew:~ jyeh$ jira-cli --ver
2.2
mew:~ jyeh$ jira-cli update --help
usage: jira-cli update [-h] [--jira-url JIRA_URL] [--format FORMAT]
[--oneline] [-v] [-u USERNAME] [-p PASSWORD]
[--protocol {soap,rest}] [--comment [ISSUE_COMMENT]]
[--priority ISSUE_PRIORITY]
[--component ISSUE_COMPONENTS]
[--assign ISSUE_ASSIGNEE]
[--transition ISSUE_TRANSITION] [--label [LABELS]]
[--resolution RESOLUTION] [--fix-version [FIX_VERSION]]
[--remove-fix-version [REMOVE_FIX_VERSION]]
[--affects-version [AFFECTS_VERSION]]
[--remove-affects-version [REMOVE_AFFECTS_VERSION]]
[--extra [EXTRA_FIELDS]]
issue
positional arguments:
issue the jira issue to act on
optional arguments:
-h, --help show this help message and exit
--jira-url JIRA_URL the base url for the jira instance
--format FORMAT format for displaying ticket information. allowed
tokens: status,priority,updated,votes,components,proje
ct,reporter,created,fixVersions,summary,environment,as
signee,key,affectsVersions,type.Use the % character
before each token (example: issue id: %key
[%priority])
--oneline built in format to display each ticket on one line
-v amount of detail to show for issues
-u USERNAME, --username USERNAME
username to login as
-p PASSWORD, --password PASSWORD
password for jira instance
--protocol {soap,rest}
the protocol to use to communicate with jira
--comment [ISSUE_COMMENT]
add a comment to an existing issue
--priority ISSUE_PRIORITY, --priority ISSUE_PRIORITY
change the priority of an issue
--component ISSUE_COMPONENTS
add components(s) to an issue (use list components to
view available components)
--assign ISSUE_ASSIGNEE
assign the issue to a user
--transition ISSUE_TRANSITION
transition the issue to a new state (use list
transitions to view available transitions for an
issue)
--label [LABELS] label to add to the ticket
--resolution RESOLUTION
set the resolution for the issue
--fix-version [FIX_VERSION]
add a version that this issue fixes
--remove-fix-version [REMOVE_FIX_VERSION]
remove a version specified as being fixed by the issue
--affects-version [AFFECTS_VERSION]
add a version that this issue affects
--remove-affects-version [REMOVE_AFFECTS_VERSION]
remove a version specified as being affected by the
issue
--extra [EXTRA_FIELDS]
extra fields to update in the ticket