name: atlassian
description: Jira + Confluence + Bitbucket + Pipelines + Slack

artifacts:
  idea:
    content_owner: jira
    state_owner: jira
    canonical_id: issue_key
  prd:
    content_owner: confluence
    state_owner: jira_epic
    canonical_id: confluence_page_id
  techspec:
    content_owner: confluence
    state_owner: jira_epic
    canonical_id: confluence_page_id
  tasks:
    content_owner: jira
    state_owner: jira
    canonical_id: issue_key
  refinement:
    content_owner: confluence
    state_owner: jira
    canonical_id: confluence_page_id
  execution:
    content_owner: bitbucket
    state_owner: pull_request
    canonical_id: branch
  review:
    content_owner: bitbucket
    state_owner: pull_request
    canonical_id: pull_request_id
  memory:
    content_owner: confluence
    state_owner: traceability_map
    canonical_id: confluence_page_id

events:
  idea_created: jira_issue_created
  prd_approved: jira_transition_or_confluence_approval
  techspec_approved: jira_transition_or_confluence_approval
  refinement_approved: jira_transition
  pr_opened: bitbucket_pullrequest_created
  ci_green: bitbucket_pipeline_successful
  review_approved: bitbucket_pullrequest_approved
  deploy_done: pipeline_deploy_successful

fallbacks:
  approval: slack_button_or_jira_transition
  polling: scheduled_task_for_pr_or_pipeline
  docs: markdown_export_when_confluence_unavailable
