Read the Atlassian API key from the platform config tool.
()
| 3833 | |
| 3834 | |
| 3835 | async def get_atlassian_api_key() -> str: |
| 3836 | """Read the Atlassian API key from the platform config tool.""" |
| 3837 | async with async_session() as db: |
| 3838 | result = await db.execute(select(Tool).where(Tool.name == "atlassian_rovo")) |
| 3839 | tool = result.scalar_one_or_none() |
| 3840 | if tool and tool.config: |
| 3841 | return tool.config.get("api_key", "") |
| 3842 | return "" |
no test coverage detected