Metadata-Version: 2.4
Name: stapel-atlassian
Version: 0.1.0
Summary: Jira and Confluence Cloud for Stapel: guarded client, integrations, connection provider
License: MIT
Project-URL: Homepage, https://github.com/usestapel/stapel-atlassian
Project-URL: Repository, https://github.com/usestapel/stapel-atlassian
Project-URL: Documentation, https://github.com/usestapel/stapel-atlassian#readme
Project-URL: Changelog, https://github.com/usestapel/stapel-atlassian/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/usestapel/stapel-atlassian/issues
Keywords: django,stapel,atlassian,jira,confluence
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: stapel-core<1.0,>=0.99.5
Requires-Dist: stapel-integrations-core<1.0,>=0.1.0
Requires-Dist: drf-spectacular>=0.27
Provides-Extra: all
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-django; extra == "test"
Requires-Dist: pytest-cov; extra == "test"
Dynamic: license-file

# stapel-atlassian

Jira and Confluence Cloud for Stapel: a guarded client, two integration classes and an `atlassian` connection provider.

## Install

```bash
pip install stapel-atlassian
```
Add `stapel_integrations_core` and `stapel_atlassian` to `INSTALLED_APPS`, mount `path("atlassian/", include("stapel_atlassian.urls"))`. The classes also work without Django.

## Use

```python
from stapel_atlassian import (AtlassianClient, AtlassianCredentials,
    StapelJiraIntegration, StapelConfluenceIntegration, currentUser)

client = AtlassianClient(AtlassianCredentials("https://your-team.atlassian.net", email, api_token))
jira = StapelJiraIntegration(client)
confluence = StapelConfluenceIntegration(client)

jira.filter_issues(assignee=currentUser(), status="In Progress")
task = jira.create_issue("STPL", "Prepare the release notes", description="## Scope\n- changelog")
jira.transition(task.key, "Done")

parent = confluence.find_pages("Meeting notes", space_key="STPL")[0]
page = confluence.create_page(parent.id, "Weekly sync", markdown="## Decisions\n- ship it")
jira.link_confluence_page(task.key, page.url, page.title)
```

See `MODULE.md` for the contract, `CONFIG.MD` for settings, `llms.txt` for agents.

MIT licensed.
