Jira¶
You can import tasks from your Jira instance using
the jira
service name.
Additional Requirements¶
Install the following package using pip
:
jira
Example Service¶
Here’s an example of a jira project:
[my_issue_tracker]
service = jira
jira.base_uri = https://bug.tasktools.org
jira.username = ralph
jira.password = OMG_LULZ
Note
The base_uri
must not have a trailing slash.
Note
The jira.password may contain an api token.
The above example is the minimum required to import issues from Jira. You can also feel free to use any of the configuration options described in Common Service Configuration Options or described in Service Features below.
Service Features¶
The following default configuration is used:
jira.import_labels_as_tags = False
jira.import_sprints_as_tags = False
jira.label_template = {{label}}
jira.query = assignee = <jira.username> AND resolution is null
jira.verify_ssl = True
jira.version = 5
Specify the Query to Use for Gathering Issues¶
By default, the JIRA plugin will include any issues that are assigned to you
but do not yet have a resolution set, but you can fine-tune the query used
for gathering issues by setting the jira.query
parameter.
For example, to select issues assigned to ‘ralph’ having a status that is not ‘closed’ and is not ‘resolved’, you could add the following configuration option:
jira.query = assignee = ralph and status != closed and status != resolved
This query needs to be modified accordingly to the literal values of your Jira instance; if the name contains any character, just put it in quotes, e.g.
jira.query = assignee = ‘firstname.lastname’ and status != Closed and status != Resolved and status != Done
Jira v4 Support¶
If you happen to be using a very old version of Jira, add the following configuration option to your service configuration:
jira.version = 4
Do Not Verify SSL Certificate¶
If you want to ignore verifying the SSL certificate, set:
jira.verify_ssl = False
Kerberos authentication¶
If the password
is specified as @kerberos
, the service plugin will try
to authenticate against server with kerberos. A ticket must be already present
on the client (created by running kinit
or any other method).
When using API token¶
Some hosts only support API tokens to authenticate. If so, bugwarrior-pull
will respond with Err: 401 Unauthorized
. Create a token here. Handle the token like it is a password.
Provided UDA Fields¶
Field Name |
Description |
Type |
---|---|---|
|
Description |
Text (string) |
|
Issue ID |
Text (string) |
|
Summary |
Text (string) |
|
URL |
Text (string) |
|
Estimate |
Decimal (numeric) |
|
,-separated subtasks Issue IDs |
Text (string) |