in connectors/sources/jira.py [0:0]
def get_default_configuration(cls):
"""Get the default configuration for Jira
Returns:
dictionary: Default configuration.
"""
return {
"data_source": {
"display": "dropdown",
"label": "Jira data source",
"options": [
{"label": "Jira Cloud", "value": JIRA_CLOUD},
{"label": "Jira Server", "value": JIRA_SERVER},
{"label": "Jira Data Center", "value": JIRA_DATA_CENTER},
],
"order": 1,
"type": "str",
"value": JIRA_CLOUD,
},
"username": {
"depends_on": [{"field": "data_source", "value": JIRA_SERVER}],
"label": "Jira Server username",
"order": 2,
"type": "str",
},
"password": {
"depends_on": [{"field": "data_source", "value": JIRA_SERVER}],
"label": "Jira Server password",
"sensitive": True,
"order": 3,
"type": "str",
},
"data_center_username": {
"depends_on": [{"field": "data_source", "value": JIRA_DATA_CENTER}],
"label": "Jira Data Center username",
"order": 4,
"type": "str",
},
"data_center_password": {
"depends_on": [{"field": "data_source", "value": JIRA_DATA_CENTER}],
"label": "Jira Data Center password",
"sensitive": True,
"order": 5,
"type": "str",
},
"account_email": {
"depends_on": [{"field": "data_source", "value": JIRA_CLOUD}],
"label": "Jira Cloud email address",
"order": 6,
"type": "str",
"tooltip": "Email address associated with Jira Cloud account. E.g. jane.doe@gmail.com",
},
"api_token": {
"depends_on": [{"field": "data_source", "value": JIRA_CLOUD}],
"label": "Jira Cloud API token",
"order": 7,
"sensitive": True,
"type": "str",
},
"jira_url": {
"label": "Jira host url",
"order": 8,
"type": "str",
},
"projects": {
"display": "textarea",
"label": "Jira project keys",
"order": 9,
"tooltip": "This configurable field is ignored when Advanced Sync Rules are used.",
"type": "list",
},
"ssl_enabled": {
"display": "toggle",
"label": "Enable SSL",
"order": 10,
"type": "bool",
"value": False,
},
"ssl_ca": {
"depends_on": [{"field": "ssl_enabled", "value": True}],
"label": "SSL certificate",
"order": 11,
"type": "str",
},
"retry_count": {
"default_value": 3,
"display": "numeric",
"label": "Retries for failed requests",
"order": 12,
"required": False,
"type": "int",
"ui_restrictions": ["advanced"],
},
"concurrent_downloads": {
"default_value": MAX_CONCURRENT_DOWNLOADS,
"display": "numeric",
"label": "Maximum concurrent downloads",
"order": 13,
"required": False,
"type": "int",
"ui_restrictions": ["advanced"],
"validations": [
{"type": "less_than", "constraint": MAX_CONCURRENT_DOWNLOADS + 1}
],
},
"use_document_level_security": {
"display": "toggle",
"label": "Enable document level security",
"order": 14,
"tooltip": "Document level security ensures identities and permissions set in Jira are maintained in Elasticsearch. This enables you to restrict and personalize read-access users and groups have to documents in this index. Access control syncs ensure this metadata is kept up to date in your Elasticsearch documents. Only 1000 users can be fetched for Jira Data Center.",
"type": "bool",
"value": False,
},
"use_text_extraction_service": {
"display": "toggle",
"label": "Use text extraction service",
"order": 15,
"tooltip": "Requires a separate deployment of the Elastic Text Extraction Service. Requires that pipeline settings disable text extraction.",
"type": "bool",
"ui_restrictions": ["advanced"],
"value": False,
},
}