{% extends 'base/layout.html' %} {% load form_helpers %} {% block title %}Atlassian Plugin Settings{% endblock %} {% block content %}
Atlassian Plugin Configuration
Settings are read-only here. To configure the plugin, edit your NetBox configuration.py file.
Jira Configuration
URL: {% if config.jira_url %} {{ config.jira_url }} {% else %} Not configured {% endif %}
Username: {{ config.jira_username|default:"Not configured" }}
Password: {% if config.jira_password %}********{% else %}Not configured{% endif %}
Verify SSL: {{ config.jira_verify_ssl|yesno:"Yes,No" }}
Max Results: {{ config.jira_max_results|default:10 }}
Projects Filter: {{ config.jira_projects|join:", "|default:"All projects" }}
Confluence Configuration
URL: {% if config.confluence_url %} {{ config.confluence_url }} {% else %} Not configured {% endif %}
Username: {{ config.confluence_username|default:"Not configured" }}
Password: {% if config.confluence_password %}********{% else %}Not configured{% endif %}
Verify SSL: {{ config.confluence_verify_ssl|yesno:"Yes,No" }}
Max Results: {{ config.confluence_max_results|default:10 }}
Spaces Filter: {{ config.confluence_spaces|join:", "|default:"All spaces" }}

Search Configuration
{% for field in config.search_fields %} {% empty %} {% endfor %}
Field Name Device Attribute Enabled
{{ field.name }} {{ field.attribute }} {% if field.enabled %} Yes {% else %} No {% endif %}
No search fields configured
General Settings
Timeout: {{ config.timeout|default:30 }} seconds
Cache Timeout: {{ config.cache_timeout|default:300 }} seconds
Device Type Filter: {{ config.device_types|join:", "|default:"All device types" }}
Configuration Example

Add to your configuration.py:

PLUGINS_CONFIG = {
    "netbox_atlassian": {
        # Jira settings (on-prem)
        "jira_url": "https://jira.example.com",
        "jira_username": "api_user",
        "jira_password": "api_token_or_password",
        "jira_verify_ssl": True,
        "jira_projects": [],  # Empty = all projects, or ["PROJ1", "PROJ2"]

        # Confluence settings (on-prem)
        "confluence_url": "https://confluence.example.com",
        "confluence_username": "api_user",
        "confluence_password": "api_token_or_password",
        "confluence_verify_ssl": True,
        "confluence_spaces": [],  # Empty = all spaces, or ["SPACE1", "SPACE2"]

        # Search configuration - searches use OR logic
        "search_fields": [
            {"name": "Hostname", "attribute": "name", "enabled": True},
            {"name": "Serial", "attribute": "serial", "enabled": True},
            {"name": "Asset Tag", "attribute": "asset_tag", "enabled": False},
            {"name": "Role", "attribute": "role.name", "enabled": False},
            {"name": "Primary IP", "attribute": "primary_ip4.address", "enabled": False},
        ],

        # Results limits
        "jira_max_results": 10,
        "confluence_max_results": 10,

        # General
        "timeout": 30,
        "cache_timeout": 300,
        "device_types": [],  # Empty = all devices, or ["cisco", "juniper"]
    }
}
{% endblock %}